在使用CMake的ot br posix的yocto编译期间未找到boost
问题: 我试图在我的Ubuntu18.04 PC上的yocto build系统中构建ot br posix。我已经解决了启动时的许多错误,现在陷入了与“Boost”文件夹相关的错误中 说明: 我正在Yocto环境中从构建OpenThread源代码。 OpenThread需要在Yocto环境中为我们的定制板编译。因此,我为编译所需的所有信息创建了一个配方文件(.bb)。 OpenThread的最新版本使用CMake,对我来说有点新。我以前从来没有遇到过“Boost”。所以,“Boost”也是一个新概念。所以我不清楚问题出在哪里 我在编译ot br posix(OpenThread)时遇到以下错误: CMake版本:3.14 我已经查阅了别人的解决方案好几个小时了,却找不到解决我问题的正确答案。我从下面的链接中应用了一些解决方案,但没有任何帮助在使用CMake的ot br posix的yocto编译期间未找到boost,boost,cmake,yocto,openthread,Boost,Cmake,Yocto,Openthread,问题: 我试图在我的Ubuntu18.04 PC上的yocto build系统中构建ot br posix。我已经解决了启动时的许多错误,现在陷入了与“Boost”文件夹相关的错误中 说明: 我正在Yocto环境中从构建OpenThread源代码。 OpenThread需要在Yocto环境中为我们的定制板编译。因此,我为编译所需的所有信息创建了一个配方文件(.bb)。 OpenThread的最新版本使用CMake,对我来说有点新。我以前从来没有遇到过“Boost”。所以,“Boost”也是一个新
pandurang@pandurang-desktop:~/projects/git/CustomBoard/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/otbr/git-r0$ find ./recipe-sysroot -name "boost"
./recipe-sysroot/sysroot-providers/boost
./recipe-sysroot/usr/include/boost
./recipe-sysroot/usr/include/boost/chrono/typeof/boost
./recipe-sysroot/usr/include/boost/hana/ext/boost
pandurang@pandurang-desktop:~/projects/git/CustomBoard/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/otbr/git-r0$ find ./recipe-sysroot-native/ -name "boost"
./recipe-sysroot-native/installeddeps/boost
pandurang@pandurang-desktop:~/projects/git/CustomBoard/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/otbr/git-r0$
编辑:
我已经更新了_otbr脚本,如下所示:
otbr_安装()
“-DCMAKE\u INSTALL\u PREFIX=/usr”更新为
“-DCMAKE_INSTALL_PREFIX=/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot/usr”
通过上述更改,解决了与“Boost”文件夹相关的错误,现在出现了一个新错误:
|[1/342]链接CXX可执行文件第三方/openthread/repo/src/posix/ot ctl
|失败:第三方/openthread/repo/src/posix/ot-ctl
|:&&/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon-poky-linux-gnueabi/otbr/git-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++-mthumb-mfpu=neon-mfloat-abi=hard-mcpu=cortex-a7--sysroot=/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot-O2-pipe-g-feliminate未使用的调试类型-fmacro前缀map=/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0=/usr/src/debug/otbr/git-r0-fdebug前缀map=/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0=/usr/src/debug/otbr/git-r0-fdebug前缀map=/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot=-fdebug prefix map=/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot native=-fvisibility inlines hidden-mthumb-mfpu=neon-mfloat abi=hard-mcpu=cortex-a7--sysroot=/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot-Wl,-O1-Wl,--hash style=gnu-Wl,--as need third_party/openthread/repo/src/posix/CMakeFiles/ot ctl.dir/client.cpp.o-o third_party/openthread/repo/src/posix/ot ctl-L/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot native/usr/lib-Wl,--rpath,/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot native/usr/lib:/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot/usr/lib/libreadline.so-lncurses&&:
|/home/pandurang/projects/git/Gateway/build/tmp/work/cortexa7t2hf neon poky linux gnueabi/otbr/git-r0/recipe sysroot native/usr/lib/libncurses.so.5:无法识别文件:无法识别文件格式
|collect2:错误:ld返回了1个退出状态
请帮助我解决上述错误
pandurang@pandurang-desktop:~/projects/git/CustomBoard/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/otbr/git-r0$ find ./recipe-sysroot -name "boost"
./recipe-sysroot/sysroot-providers/boost
./recipe-sysroot/usr/include/boost
./recipe-sysroot/usr/include/boost/chrono/typeof/boost
./recipe-sysroot/usr/include/boost/hana/ext/boost
pandurang@pandurang-desktop:~/projects/git/CustomBoard/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/otbr/git-r0$ find ./recipe-sysroot-native/ -name "boost"
./recipe-sysroot-native/installeddeps/boost
pandurang@pandurang-desktop:~/projects/git/CustomBoard/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/otbr/git-r0$