Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,995 Members 47,243 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Build Error need urgent help

Tip us?
 
codingninja62001
Old
#1  
Member - OP
Thanks Meter 2
Posts: 45
Join Date: Mar 2014
Default [Q] Build Error need urgent help

alright im trying to port cm11 to my LG Optimus F6 and ive tackled a few errors but this I need help with
Code:
frameworks/native/libs/gui/Surface.cpp: In member function 'virtual android::status_t android::Surface::lock(ANativeWindow_Buffer*, ARect*)':
frameworks/native/libs/gui/Surface.cpp:818:29: error: 'GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY' was not declared in this scope
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o] Error 1
make: *** Waiting for unfinished jobs....
well I know it is that GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY isnt declared but I dont know how to declare that please help
 
codingninja62001
Old
#2  
Member - OP
Thanks Meter 2
Posts: 45
Join Date: Mar 2014
I solved this by finally finding a way to declare it in the surface. CPP file by adding a enum and declaring it in there
Devices:
Asus nexus 7 (2013) rooted cyanogenmod 11
LG Optimus F6 rooted(finally) cm11 ( i ported with lots of help)
Work:
Ported Cyanogenmod 11 for the LG Optimus F6
HTML Code:
<DOCTYPE html>
<head></head>
<body>
<p>Got HTML</p>
</body>
</html>
Help a 13 year old dev out and donate bitcoins here it will be a big help
address:1BHvJkWAUuNoQvMLfJU3aT2xr4HF3PT2Nh
And please hit that thanks button if i helped
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes