Remove All Ads from XDA

[Q] (Help) CM11 compiling errors

13 posts
Thanks Meter: 3
By Ricardo_ram, Junior Member on 5th June 2014, 01:50 AM
Post Reply Email Thread
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
8th June 2014, 04:26 AM |#2  
OP Junior Member
Thanks Meter: 3
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 =)
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes