[Android] 3liteking148:
I'm getting these errors while trying to build cm13 for gt-i8190 how do i fix it>

Thanks in advance

In file included from frameworks/base/core/jni/android_opengl_EGL14.cpp:26:0:
frameworks/base/include/android_runtime/android_view_Surface.h:77:8: error: 'android_dataspace' does not name a type
extern android_dataspace android_view_Surface_mapPublicFormatToHalDataspace(
^
frameworks/base/include/android_runtime/android_view_Surface.h:84:21: error: 'android_dataspace' has not been declared
int format, android_dataspace dataSpace);
^
In file included from hardware/libhardware/include/hardware/gralloc.h:21:0,
from frameworks/native/include/ui/ANativeObjectBase.h:23,
from frameworks/native/include/ui/Fence.h:23,
from frameworks/native/include/gui/IGraphicBufferProducer.h:28,
from frameworks/native/include/gui/Surface.h:20,
from frameworks/base/core/jni/android_opengl_EGL14.cpp:33:
system/core/include/system/window.h:814:9: error: 'android_dataspace_t' has not been declared
android_dataspace_t dataSpace)
^
In file included from frameworks/native/include/gui/Surface.h:20:0,
from frameworks/base/core/jni/android_opengl_EGL14.cpp:33:
frameworks/native/include/gui/IGraphicBufferProducer.h:280:17: error: 'android_dataspace' has not been declared
android_dataspace dataSpace, const Rect& crop, int scalingMode,
^
frameworks/native/include/gui/IGraphicBufferProducer.h:288:17: error: 'android_dataspace' has not been declared
android_dataspace* outDataSpace,
^
frameworks/native/include/gui/IGraphicBufferProducer.h:317:9: error: 'android_dataspace' does not name a type
android_dataspace dataSpace;
^
frameworks/native/include/gui/IGraphicBufferProducer.h: In constructor 'android::IGraphicBufferProducer::QueueBufferInput::QueueBufferInput(int64_t, bool, int, const android::Rect&, int, uint32_t, bool, const android::sp<android::Fence>&, uint32_t)':
frameworks/native/include/gui/IGraphicBufferProducer.h:284:19: error: class 'android::IGraphicBufferProducer::QueueBufferInput' does not have any field named 'dataSpace'
dataSpace(dataSpace), crop(crop), scalingMode(scalingMode),
^
frameworks/native/include/gui/IGraphicBufferProducer.h: In member function 'void android::IGraphicBufferProducer::QueueBufferInput::deflate(int64_t*, bool*, int*, android::Rect*, int*, uint32_t*, bool*, android::sp<android::Fence>*, uint32_t*) const':
frameworks/native/include/gui/IGraphicBufferProducer.h:294:29: error: 'dataSpace' was not declared in this scope
*outDataSpace = dataSpace;
^
In file included from frameworks/native/include/gui/BufferQueue.h:20:0,
from frameworks/native/include/gui/Surface.h:21,
from frameworks/base/core/jni/android_opengl_EGL14.cpp:33:
frameworks/native/include/gui/BufferItem.h: At global scope:
frameworks/native/include/gui/BufferItem.h:90:5: error: 'android_dataspace' does not name a type
android_dataspace mDataSpace;
^
In file included from frameworks/native/include/gui/BufferQueue.h:22:0,
from frameworks/native/include/gui/Surface.h:21,
from frameworks/base/core/jni/android_opengl_EGL14.cpp:33:
frameworks/native/include/gui/IGraphicBufferConsumer.h:240:13: error: 'android_dataspace' has not been declared
android_dataspace defaultDataSpace) = 0;
^
In file included from frameworks/base/core/jni/android_opengl_EGL14.cpp:33:0:
frameworks/native/include/gui/Surface.h:180:37: error: 'android_dataspace' has not been declared
virtual int setBuffersDataSpace(android_dataspace dataSpace);
^
frameworks/native/include/gui/Surface.h:245:5: error: 'android_dataspace' does not name a type
android_dataspace mDataSpace;
^
In file included from frameworks/native/include/gui/GLConsumer.h:25:0,
from frameworks/base/core/jni/android_opengl_EGL14.cpp:34:
frameworks/native/include/gui/ConsumerBase.h:86:40: error: 'android_dataspace' has not been declared
status_t setDefaultBufferDataSpace(android_dataspace defaultDataSpace);
^
In file included from frameworks/base/core/jni/android_opengl_EGL14.cpp:34:0:
frameworks/native/include/gui/GLConsumer.h:201:40: error: 'android_dataspace' has not been declared
status_t setDefaultBufferDataSpace(android_dataspace defaultDataSpace);
^
cc1plus: error: unrecognized command line option "-Wno-c++11-extensions" [-Werror]
cc1plus: all warnings being treated as errors
make: *** [/home/xda/cm13/out/target/product/golden/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_opengl_EGL14.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/base/core/jni/android_app_NativeActivity.cpp:26:0:
frameworks/base/include/android_runtime/android_view_Surface.h:77:8: error: 'android_dataspace' does not name a type
extern android_dataspace android_view_Surface_mapPublicFormatToHalDataspace(
^
frameworks/base/include/android_runtime/android_view_Surface.h:84:21: error: 'android_dataspace' has not been declared
int format, android_dataspace dataSpace);
^
In file included from hardware/libhardware/include/hardware/gralloc.h:21:0,
from frameworks/native/include/ui/ANativeObjectBase.h:23,
from frameworks/native/include/ui/Fence.h:23,
from frameworks/native/include/gui/IGraphicBufferProducer.h:28,
from frameworks/native/include/gui/Surface.h:20,
from frameworks/base/core/jni/android_app_NativeActivity.cpp:30:
system/core/include/system/window.h:814:9: error: 'android_dataspace_t' has not been declared
android_dataspace_t dataSpace)
^
In file included from frameworks/native/include/gui/Surface.h:20:0,
from frameworks/base/core/jni/android_app_NativeActivity.cpp:30:
frameworks/native/include/gui/IGraphicBufferProducer.h:280:17: error: 'android_dataspace' has not been declared
android_dataspace dataSpace, const Rect& crop, int scalingMode,
^
frameworks/native/include/gui/IGraphicBufferProducer.h:288:17: error: 'android_dataspace' has not been declared
android_dataspace* outDataSpace,
^
frameworks/native/include/gui/IGraphicBufferProducer.h:317:9: error: 'android_dataspace' does not name a type
android_dataspace dataSpace;
^
frameworks/native/include/gui/IGraphicBufferProducer.h: In constructor 'android::IGraphicBufferProducer::QueueBufferInput::QueueBufferInput(int64_t, bool, int, const android::Rect&, int, uint32_t, bool, const android::sp<android::Fence>&, uint32_t)':
frameworks/native/include/gui/IGraphicBufferProducer.h:284:19: error: class 'android::IGraphicBufferProducer::QueueBufferInput' does not have any field named 'dataSpace'
dataSpace(dataSpace), crop(crop), scalingMode(scalingMode),
^
frameworks/native/include/gui/IGraphicBufferProducer.h: In member function 'void android::IGraphicBufferProducer::QueueBufferInput::deflate(int64_t*, bool*, int*, android::Rect*, int*, uint32_t*, bool*, android::sp<android::Fence>*, uint32_t*) const':
frameworks/native/include/gui/IGraphicBufferProducer.h:294:29: error: 'dataSpace' was not declared in this scope
*outDataSpace = dataSpace;
^
In file included from frameworks/native/include/gui/BufferQueue.h:20:0,
from frameworks/native/include/gui/Surface.h:21,
from frameworks/base/core/jni/android_app_NativeActivity.cpp:30:
frameworks/native/include/gui/BufferItem.h: At global scope:
frameworks/native/include/gui/BufferItem.h:90:5: error: 'android_dataspace' does not name a type
android_dataspace mDataSpace;
^
In file included from frameworks/native/include/gui/BufferQueue.h:22:0,
from frameworks/native/include/gui/Surface.h:21,
from frameworks/base/core/jni/android_app_NativeActivity.cpp:30:
frameworks/native/include/gui/IGraphicBufferConsumer.h:240:13: error: 'android_dataspace' has not been declared
android_dataspace defaultDataSpace) = 0;
^
In file included from frameworks/base/core/jni/android_app_NativeActivity.cpp:30:0:
frameworks/native/include/gui/Surface.h:180:37: error: 'android_dataspace' has not been declared
virtual int setBuffersDataSpace(android_dataspace dataSpace);
^
frameworks/native/include/gui/Surface.h:245:5: error: 'android_dataspace' does not name a type
android_dataspace mDataSpace;
^
cc1plus: error: unrecognized command line option "-Wno-c++11-extensions" [-Werror]
cc1plus: all warnings being treated as errors
make: *** [/home/xda/cm13/out/target/product/golden/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_app_NativeActivity.o] Error 1
In file included from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:20:0:
frameworks/base/include/android_runtime/android_view_Surface.h:77:8: error: 'android_dataspace' does not name a type
extern android_dataspace android_view_Surface_mapPublicFormatToHalDataspace(
^
frameworks/base/include/android_runtime/android_view_Surface.h:84:21: error: 'android_dataspace' has not been declared
int format, android_dataspace dataSpace);
^
In file included from hardware/libhardware/include/hardware/gralloc.h:21:0,
from frameworks/native/include/ui/ANativeObjectBase.h:23,
from frameworks/native/include/ui/Fence.h:23,
from frameworks/native/include/gui/IGraphicBufferProducer.h:28,
from frameworks/native/include/gui/Surface.h:20,
from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:29:
system/core/include/system/window.h:814:9: error: 'android_dataspace_t' has not been declared
android_dataspace_t dataSpace)
^
In file included from frameworks/native/include/gui/Surface.h:20:0,
from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:29:
frameworks/native/include/gui/IGraphicBufferProducer.h:280:17: error: 'android_dataspace' has not been declared
android_dataspace dataSpace, const Rect& crop, int scalingMode,
^
frameworks/native/include/gui/IGraphicBufferProducer.h:288:17: error: 'android_dataspace' has not been declared
android_dataspace* outDataSpace,
^
frameworks/native/include/gui/IGraphicBufferProducer.h:317:9: error: 'android_dataspace' does not name a type
android_dataspace dataSpace;
^
frameworks/native/include/gui/IGraphicBufferProducer.h: In constructor 'android::IGraphicBufferProducer::QueueBufferInput::QueueBufferInput(int64_t, bool, int, const android::Rect&, int, uint32_t, bool, const android::sp<android::Fence>&, uint32_t)':
frameworks/native/include/gui/IGraphicBufferProducer.h:284:19: error: class 'android::IGraphicBufferProducer::QueueBufferInput' does not have any field named 'dataSpace'
dataSpace(dataSpace), crop(crop), scalingMode(scalingMode),
^
frameworks/native/include/gui/IGraphicBufferProducer.h: In member function 'void android::IGraphicBufferProducer::QueueBufferInput::deflate(int64_t*, bool*, int*, android::Rect*, int*, uint32_t*, bool*, android::sp<android::Fence>*, uint32_t*) const':
frameworks/native/include/gui/IGraphicBufferProducer.h:294:29: error: 'dataSpace' was not declared in this scope
*outDataSpace = dataSpace;
^
In file included from frameworks/native/include/gui/BufferQueue.h:20:0,
from frameworks/native/include/gui/Surface.h:21,
from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:29:
frameworks/native/include/gui/BufferItem.h: At global scope:
frameworks/native/include/gui/BufferItem.h:90:5: error: 'android_dataspace' does not name a type
android_dataspace mDataSpace;
^
In file included from frameworks/native/include/gui/BufferQueue.h:22:0,
from frameworks/native/include/gui/Surface.h:21,
from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:29:
frameworks/native/include/gui/IGraphicBufferConsumer.h:240:13: error: 'android_dataspace' has not been declared
android_dataspace defaultDataSpace) = 0;
^
In file included from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:29:0:
frameworks/native/include/gui/Surface.h:180:37: error: 'android_dataspace' has not been declared
virtual int setBuffersDataSpace(android_dataspace dataSpace);
^
frameworks/native/include/gui/Surface.h:245:5: error: 'android_dataspace' does not name a type
android_dataspace mDataSpace;
^
In file included from frameworks/native/include/gui/GLConsumer.h:25:0,
from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:30:
frameworks/native/include/gui/ConsumerBase.h:86:40: error: 'android_dataspace' has not been declared
status_t setDefaultBufferDataSpace(android_dataspace defaultDataSpace);
^
In file included from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:30:0:
frameworks/native/include/gui/GLConsumer.h:201:40: error: 'android_dataspace' has not been declared
status_t setDefaultBufferDataSpace(android_dataspace defaultDataSpace);
^
cc1plus: error: unrecognized command line option "-Wno-c++11-extensions" [-Werror]
cc1plus: all warnings being treated as errors
make: *** [/home/xda/cm13/out/target/product/golden/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/com_google_android_gles_jni_EGLImpl.o] Error 1
3 warnings generated.
make: Leaving directory `/home/xda/cm13'

#### make failed to build some targets (17:10 (mm:ss)) ####