error: string: No such file or directory - Android Q&A, Help & Troubleshooting

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.

Related

[Help] Build error, need help?

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.

[Q] Build Error, need help?

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.

[Q] AOSP Compiling errors.

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.

CyanogenMod build error

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....

Building CM13 for klimtlte

I'm trying to build CM13 for T705 (klimtlte), using guide https://wiki.cyanogenmod.org/w/Build_for_klimtlte.
It went reasonably smoothly besides 'Get prebuilds' step, that I was suggested to skip as it's obsolete since CM12. Not sure if this is correct, but..
The step that fails is 'brunch klimtlte':
prebuilts/clang/linux-x86/host/3.6/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:816: /home/android/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 127
make: *** Waiting for unfinished jobs....
host C++: libc++abi <= external/libcxxabi/src/abort_message.cpp
prebuilts/clang/linux-x86/host/3.6/bin/clang++: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:721: /home/android/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/src/abort_message.o] Error 127
make: Leaving directory '/home/android/android/system'
The host system is Gentoo, with everything compiled using GCC 5.3. Is it related to _GLIBCXX_USE_CXX11_ABI somehow?

Categories

Resources