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 :silly:
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 =):silly:
Related
Hi all,
I'm kind of a newbie in building rom's and while my pc was building my first rom for my lg p350 I had this error message:
Code:
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:39: error: Resource does not already exist in overlay at 'config_tether_upstream_regexs'; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:40: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:41: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:105: error: Resource at config_enableScreenOnAnimation appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:108: error: Resource at config_enableScreenOffAnimation appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:111: error: Resource at config_networkLocationProvider appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:114: error: Resource at config_geocodeProvider appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/home/simon/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/home/simon/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
I hope someone can help me...
First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
______________________________________________________________________________________________________________________________
Here are some theories I have about this problem:
- It may have to do something about the "Compiling with jack" on the android website tutorial i don't know about
- I also am thinking that it has to do something with the drivers (Vendor), since I am using the ones from stock Android 4.2.2 for the Galaxy Nexus Toro. I read from another thread saying that you have to "Modify the device tree" for a later version of Android, which I don't know about (Please give me a link or tell how to do that).
I am running Ubuntu 16.04 LTS
Developers, can you please respond as soon as possible. I would greatly appreciate it if you could.
Thanks,
Nrichard7029
Please? Anyone?
nrichard7029 said:
Please? Anyone?
Click to expand...
Click to collapse
They're all busy trying to get it to compile themselves. Lots of stuff has changed with the build system in Nougat, it's going to take a bit to get everything sorted out. Keep an eye on https://github.com/OMAP4-AOSP for the most recent changes relevant for our devices.
nrichard7029 said:
First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
Click to expand...
Click to collapse
did you solve this ? i am getting similar error instead of ''libinvensense_hal_intermediates'' i have ''libbootloader_message_writer_intermediates''
nrichard7029 said:
First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
______________________________________________________________________________________________________________________________
Here are some theories I have about this problem:
- It may have to do something about the "Compiling with jack" on the android website tutorial i don't know about
- I also am thinking that it has to do something with the drivers (Vendor), since I am using the ones from stock Android 4.2.2 for the Galaxy Nexus Toro. I read from another thread saying that you have to "Modify the device tree" for a later version of Android, which I don't know about (Please give me a link or tell how to do that).
I am running Ubuntu 16.04 LTS
Developers, can you please respond as soon as possible. I would greatly appreciate it if you could.
Thanks,
Nrichard7029
Click to expand...
Click to collapse
, I know this is quite late, but searching for the same error on google and found your thread:
Just go to file manager, click view, go on "Show Hidden Files", tick it, and open your .bashrc file. At the bottom of it, add "export USE_NINJA=false" . This should fix your error.
Think "tuna" - not "toro"
bablu048 said:
did you solve this ? i am getting similar error instead of ''libinvensense_hal_intermediates'' i have ''libbootloader_message_writer_intermediates''
Click to expand...
Click to collapse
You may want to change your thinking to "tuna" (a unified build) - as opposed to "toro" (device-specific); this is especially true for 6.0 and later. In fact, I've seen fewer and fewer specific builds for tuna-family members (even the GSM-specific maguro, the most commonplace outside the US) - my usual N builds are from a maguro owner that is from (doun't laugh) Japan - we don't even have a language in common. (They don't speak CDMA in Japan - and the builder himself tests on maguro hardware. Me? I run on toro hardware and VZW MVNO Tracfone - no such thing as corndog sushi!
Found the issue - it's in ninja (called by brunch). Any idea if it's even fixable?
I am compiling cm 14 for core prime ve 3g (sm-g361h).
i am getting these error after executing mka bacon command (i have skipped all log above errors). I am building rom from source first time so i ain't got any clue what this error says (maybe a little bit but that ain't helping).
Code:
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:276: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:314: error: method processSolicited in class RIL cannot be applied to given types;
return super.processSolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:366: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:422: error: method processUnsolicited in class RIL cannot be applied to given types;
super.processUnsolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
[ 3% 1018/28725] host C++: libLLVMCor...2 <= external/llvm/lib/IR/Function.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/hamza/cm14'
#### make failed to build some targets (27:37 (mm:ss)) ####
bump
Closed per OP request
So i need to build a modified kernel to patch the usb host driver to hack a nintendo switch.
the patch is here
ive tried 2 kernel sources, here and here
and both are giving the same errors
Code:
CC arch/arm64/kernel/setup.o
arch/arm64/kernel/setup.c: In function 'c_show':
arch/arm64/kernel/setup.c:643:38: error: 'system_rev' undeclared (first use in this function)
seq_printf(m, "Revision\t: %04x\n", system_rev);
^
arch/arm64/kernel/setup.c:643:38: note: each undeclared identifier is reported only once for each function it appears in
arch/arm64/kernel/setup.c:645:4: error: 'system_serial_high' undeclared (first use in this function)
system_serial_high, system_serial_low);
^
arch/arm64/kernel/setup.c:645:24: error: 'system_serial_low' undeclared (first use in this function)
system_serial_high, system_serial_low);
^
scripts/Makefile.build:257: recipe for target 'arch/arm64/kernel/setup.o' failed
make[1]: *** [arch/arm64/kernel/setup.o] Error 1
Makefile:964: recipe for target 'arch/arm64/kernel' failed
make: *** [arch/arm64/kernel] Error 2
the variables i set are:
Code:
$echo $CROSS_COMPILE
/home/xxxx/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-
$echo $ARCH
arm64
for a config i used
Code:
arch/arm64/configs/msm8937_defconfig
set all "NEW" options to defaults. its my first kernel build, i have no idea what most of it is /shrug
if anyone can give me some tips or a .config that works, would be very much appreciated. i havent had any luck googling the errors yet
SOLVED: SEE POST #4 TO SEE HOW TO FIX IT
Hi I am getting some Java errors while compiling CrDroid rom for samsung s3 i747. Compiling is fine until It arrives at Download manager. I retried 5 times compiling this rom but had no success This is the first time building a rom.
I am using open jdk 1.8 and I have 8 GB RAM on my VM With Ubuntu Bionic Beaver
Code:
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadStorageProvider.java:326: The method setFilterByString(String) is undefined for the type DownloadManager.Query
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:150: COLUMN_DESTINATION cannot be resolved or is not a field
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:155: COLUMN_FILE_NAME_HINT cannot be resolved or is not a field
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1133: The method update(SQLiteDatabase, ContentValues, String, String[]) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1237: The method setStrictColumns(boolean) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1238: The method setStrictGrammar(boolean) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1316: The method delete(SQLiteDatabase, String, String[]) is undefined for the type SQLiteQueryBuilder
At the end, I get the Ninja Wrapper error 1.
I tried ninja wrapper disable but had no success.
EDIT: SEE THE FIX BELOW
alexenferman said:
Hi I am getting some Java errors while compiling CrDroid rom for samsung s3 i747. Compiling is fine until It arrives at Download manager. I retried 5 times compiling this rom but had no success This is the first time building a rom.
I am using open jdk 1.8 and I have 8 GB RAM on my VM With Ubuntu Bionic Beaver
Code:
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadStorageProvider.java:326: The method setFilterByString(String) is undefined for the type DownloadManager.Query
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:150: COLUMN_DESTINATION cannot be resolved or is not a field
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:155: COLUMN_FILE_NAME_HINT cannot be resolved or is not a field
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1133: The method update(SQLiteDatabase, ContentValues, String, String[]) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1237: The method setStrictColumns(boolean) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1238: The method setStrictGrammar(boolean) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1316: The method delete(SQLiteDatabase, String, String[]) is undefined for the type SQLiteQueryBuilder
At the end, I get the Ninja Wrapper error 1.
I tried ninja wrapper disable but had no success.
Click to expand...
Click to collapse
EDIT: I SKIPPED theese errors! I compiled the rom and it will be uploaded soon!
alexenferman said:
EDIT: I SKIPPED theese errors! I compiled the rom and it will be uploaded soon!
Click to expand...
Click to collapse
Hmmm, how did you do it, I have same error myself.
HOW TO FIX:
The fact is if you try to compile a nougat rom you might come across this error.
Looks like someone messed up the source code of the package Download Provider and Managed Provisionning from github.
My first solution was to skip the packages but in my rom the download manager would not work which would make the rom unusable for internet purposes.
My second solution and the best solution is to revert a few commits back (Downgrading the package sourcecode from Github)
You can download each of the packages (Older versions which work) Theese are for cm-14.1
Managed Provisionning: https://github.com/LineageOS/androi...tree/01eebf922cb5a6cef07e11631c9d0b82100509a3
Download Provider: https://github.com/LineageOS/androi...tree/21b5b3c3edd6dde44098aac75daa1f55d5a68f77
Download both zip files and extract them
Then open Terminal and type sudo nautilus
Go to your rom folder > Packages > Apps > ManagedProvisioning
and replace the managed provisioning folder contents with the folder contents that you downloaded called Managed Provisionning
Do the same thing with Download Provider
Go to your rom folder > Packages > Providers > DownloadProvider
and replace the DownloadProvider folder contents with the folder contents that you downloaded called DownloadProvider
Then you can compile peacefully your rom without any error!
If you don't understand something make sure to tell me!
Thank you. . I've got this error too while building AICP (also lineage-based) nougat
I've got this error while building AICP, dotOS and Ressurection Remix and guess I'll face this error with any custom rom other than lineage.