[yocto] cmake / <string> no such file or directory ??!
Guy Morand
guy at guy-morand.ch
Mon Feb 4 23:21:38 PST 2019
Hello Yocto developpers!
I'm facing a weird problem that seems very strange. I can cross-compile
a project based on cmake with the generated Yocto SDK.
However, after adding a recipe, the compilation fails:
/mnt/ssd/yocto-build-script/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/communication-library/git-AUTOINC+f5cd493ce5-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
-Dcommunication_interface_EXPORTS
-I/mnt/ssd/yocto-build-script/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/communication-library/git-AUTOINC+f5cd493ce5-r0/git/library
-Wall -Wextra -Werror -fPIC -std=gnu++11 -MD -MT
CMakeFiles/communication-interface.dir/communication_interface.cpp.o -MF
CMakeFiles/communication-interface.dir/communication_interface.cpp.o.d
-o CMakeFiles/communication-interface.dir/communication_interface.cpp.o
-c
/mnt/ssd/yocto-build-script/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/communication-library/git-AUTOINC+f5cd493ce5-r0/git/communication_interface.cpp
| In file included from
/mnt/ssd/yocto-build-script/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/communication-library/git-AUTOINC+f5cd493ce5-r0/git/communication_interface.cpp:1:
|
/mnt/ssd/yocto-build-script/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/communication-library/git-AUTOINC+f5cd493ce5-r0/git/library/communication_interface.h:4:10:
fatal error: string: No such file or directory
| #include <string>
| ^~~~~~~~
| compilation terminated.
I also tried to change the cmake generator to unix makefile (who knows ...):
OECMAKE_GENERATOR = "Unix Makefiles"
But I have the same issue. I am working on the thud branch. Anyone had
the same problem? What am I doing wrong?
Best regards,
Guy Morand
More information about the yocto
mailing list