Attempting to build master branch in Ubuntu 12.04. This is for a Nexus 7.
Following the instructions [http://source.android.com/source/initializing.html] and all continueing instructions up to the actual building section.
I acquire the Nexus 7 binaries from the official site (https://developers.google.com/android/nexus/drivers#grouper).
Using `lunch full_grouper-userdebug` to generate the makefiles.
The Android source builds just fine for about 5minutes then stops on this error.
Code:
target arm C++: libwebrtc_system_wrappers <= external/webrtc/src/system_wrappers/source/map.cc
In file included from external/webrtc/src/system_wrappers/source/map.cc:11:0:external/webrtc/src/system_wrappers/source/../interface/map_wrapper.h:14:15: fatal error: map: No such file or directory compilation terminated.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebrtc_system_wrappers_intermediates/map.o] Error 1
make: *** Waiting for unfinished jobs....
It appears that the build process incorrectly sets up the STL header location. It is failing on an #include <map> line.
Any assistance?
Setup my build environment according to this post
http://forum.xda-developers.com/showthread.php?t=2639611
and trying to build this ROM
https://github.com/CarbonDev/android
I got a build error mid way
HTML:
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp: In member function 'void overlay::MdpCtrl::setColor(uint32 _t)':
hardware/qcom/display/msm8974/liboverlay/overlayMdp.cpp:105:13: error: 'struct mdp_overlay' has no member named 'bg _color'
make: *** [/root/carbon/out/target/product/hammerhead/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayMdp.o] E rror 1
make: *** Waiting for unfinished jobs....
target thumb C++: liboverlay <= hardware/qcom/display/msm8974/liboverlay/overlayMdssRot.cpp
make: *** wait: No child processes. Stop.
I google and got this suggesting
Try switching hardware/qcom/display to cyanogenmod 's version
What file do I edit to change this?
Thanks.
First of all, i am sorry in advance for posting in the wrong section if i did so.
Second, i am facing these errors when building AOSP :
Code:
hardware/qcom/display/msm8974/libcopybit/copybit_c2d.cpp:34:28: fatal error: linux/msm_kgsl.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:36:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:38:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C++: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/loc.cpp
target thumb C: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/gps.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o] Error 1
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/copybit.msm8974_intermediates/copybit_c2d.o] Error 1
hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp:33:27: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
Can anyone help me here ? I am pretty new with ROM compiling stuff, so please be kind . I am trying to learn.
A question :Can i just modify includes for copybit_c2d.cpp and get passed of this error ? I think it will work, but i may have ROM problems afterwards. -- Tried, won't work. I get "not declared in this scope errors, which is normal".I am trying to compile for Xperia Z2, on Mint 17 64bit.
Thanks!
Costinutz32 said:
First of all, i am sorry in advance for posting in the wrong section if i did so.
Second, i am facing these errors when building AOSP :
Code:
hardware/qcom/display/msm8974/libcopybit/copybit_c2d.cpp:34:28: fatal error: linux/msm_kgsl.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:36:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:38:0:
hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C++: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/loc.cpp
target thumb C: gps.msm8974 <= device/sony/shinano-common/gps/libloc_api_50001/gps.c
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o] Error 1
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/copybit.msm8974_intermediates/copybit_c2d.o] Error 1
hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp:33:27: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
Can anyone help me here ? I am pretty new with ROM compiling stuff, so please be kind . I am trying to learn.
A question :Can i just modify includes for copybit_c2d.cpp and get passed of this error ? I think it will work, but i may have ROM problems afterwards. -- Tried, won't work. I get "not declared in this scope errors, which is normal".I am trying to compile for Xperia Z2, on Mint 17 64bit.
Thanks!
Click to expand...
Click to collapse
As the error says,one of the header files required to create the .o or the object file is missing. Trying searching the file on Google and add it to required folder and #include it to your .c/.c++ program.
Good luck.
Hi, I am building cyanogenmod11 with OSX Mavericks. I followed this guide exactly, but build fails. (guide: http://forum.xda-developers.com/showthread.php?t=2510898)
error log
Import includes file: /Volumes/android/out/host/darwin-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
make: *** [/Volumes/android/out/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/dsa_sig.o] Error 1
make: *** Waiting for unfinished jobs....
Hey all I'm trying to compile Dirty Unicorns Rom for the device GT-I9082 Galaxy Grand Duos...
When i start the building process I get an error as stated below:
target thumb C++: hwuitest <= frameworks/base/libs/hwui/tests/main.cpp
In file included from frameworks/base/libs/hwui/tests/../AnimationContext.h:23:0,
from frameworks/base/libs/hwui/tests/main.cpp:23:
frameworks/base/libs/hwui/tests/../TreeInfo.h:19:18: fatal error: string: No such file or directory
#include <string>
^
compilation terminated.
make: *** [/home/raghav/source/du/system/out/target/product/i9082/obj/EXECUTABLES/hwuitest_intermediates/main.o] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
For some reason the gcc/g++ compiler is unable to look for the string file in usr/include/c++/4.8
Where it exists I have verified.. Can someone please help resolve this error?
Thanks
Have you resolved this error? I am experiencing the same error.