Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,623 Members 50,115 Now Online
XDA Developers Android and Mobile Development Forum

[Q] (Help) CM11 compiling errors

Tip us?
 
Ricardo_ram
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: May 2014
Talking [Q] (Help) CM11 compiling errors

Hello! I'm new building a ROM and I have a lot of issues with the compilation of CM11, a lot of these has been fixed with a few workarounds in the source code, but I'm getting an error with the headers, exactly with the file Flattenable.h

The problem is that the "guard" of the headers includes only once the header Flattenable.h for one of the needed headers but not for the rest of headers that require the same header Flattenable.h and I get this error:

target thumb C++: libandroid <= frameworks/base/native/android/native_window.cpp
In file included from frameworks/native/include/ui/Rect.h:22:0,
from frameworks/native/include/ui/Region.h:25,
from system/core/include/utils/Flattenable.h:26,
from frameworks/native/include/ui/Fence.h:26,
from frameworks/native/include/gui/IGraphicBufferProducer.h:28,
from frameworks/native/include/gui/Surface.h:20,
from frameworks/base/native/android/native_window.cpp:21:
frameworks/native/include/ui/Point.h:29:41: error: expected template-name before '<' token
frameworks/native/include/ui/Point.h:29:41: error: expected '{' before '<' token
frameworks/native/include/ui/Point.h:29:41: error: expected unqualified-id before '<' token
frameworks/base/native/android/native_window.cpp:84:1: error: expected '}' at end of input
make: *** [/home/richy/Escritorio/Development/CM-11/out/target/product/hwmt1_u06/obj/SHARED_LIBRARIES/libandroid_intermediates/native_window.o] Error 1

the error is because the "template-name" has been defined in Flattenable.h but the "guard" disable the #include of the file Point.h because this header has been included previusly on the file Fence.h

Someone knows a "fix" for this problem?

I'm compiling in Ubuntu 14.04

Excuse my poor english
 
Ricardo_ram
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: May 2014
Default I found the reason of this

Thanks but i find that I have added the next line to flattenable.h and I don't remember when :/ but... it was there haha

#include <ui/Region.h>

and I search the file on another site and this include wasn't here hahaha thanks =)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes