Hello Guy,I would also say that something is strange with the "AUTOINC" in your file paths, unless you set a variable like that on purpose.
Regards, Fernando On Tue, Feb 5, 2019 at 10:23 AM Guy Morand <g...@guy-morand.ch> wrote: > > Sorry Yocto developers! > > I have found the issue, in my CMakeLists.txt, I changed this: > set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror") > > to this: > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror") > > Now it works like a charm, stupid me :D! Sorry for all the noise! > > Best regards, > > Guy Morand > > On 2/5/19 8:21 AM, Guy Morand wrote: > > > 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 > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto