交叉编译为ARM时Boost会被跳过

时间:2018-10-11 11:05:35

标签: arm g++ cross-compiling

在此guide之后,我交叉编译了Boost 1.68.0。在执行bjam之后,它失败并抱怨:

...patience...
.....
    "/home/XXX/BBB/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"   -fPIC -pthread -O3 -finline-functions -Wno-inline -Wall  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG  -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-arm/release/threading-multi/import.o" "libs/python/src/import.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/import.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/exec.o
In file included from ./boost/python/detail/wrap_python.hpp:50:0,
                 from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/ssize_t.hpp:9,
                 from ./boost/python/object.hpp:8,
                 from ./boost/python/exec.hpp:8,
                 from libs/python/src/exec.cpp:6:
/usr/include/python2.7/pyconfig.h:24:12: fatal error: arm-linux-gnueabihf/python2.7/pyconfig.h: No such file or directory
 #  include <arm-linux-gnueabihf/python2.7/pyconfig.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

    "/home/XXX/BBB/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"   -fPIC -pthread -O3 -finline-functions -Wno-inline -Wall  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG  -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-arm/release/threading-multi/exec.o" "libs/python/src/exec.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/exec.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/object/function_doc_signature.o
In file included from ./boost/python/detail/wrap_python.hpp:50:0,
                 from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/converter/registrations.hpp:8,
                 from libs/python/src/object/function_doc_signature.cpp:9:
/usr/include/python2.7/pyconfig.h:24:12: fatal error: arm-linux-gnueabihf/python2.7/pyconfig.h: No such file or directory
 #  include <arm-linux-gnueabihf/python2.7/pyconfig.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

    "/home/XXX/BBB/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"   -fPIC -pthread -O3 -finline-functions -Wno-inline -Wall  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG  -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-arm/release/threading-multi/object/function_doc_signature.o" "libs/python/src/object/function_doc_signature.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/object/function_doc_signature.o...
...skipped <pbin.v2/libs/python/build/gcc-arm/release/threading-multi>libboost_python27.so.1.68.0 for lack of <pbin.v2/libs/python/build/gcc-arm/release/threading-multi>list.o...
...skipped <p/usr/local/boost_1_68_0-ARM/lib>libboost_python27.so.1.68.0 for lack of <pbin.v2/libs/python/build/gcc-arm/release/threading-multi>libboost_python27.so.1.68.0...
...skipped <p/usr/local/boost_1_68_0-ARM/lib>libboost_python27.so for lack of <p/usr/local/boost_1_68_0-ARM/lib>libboost_python27.so.1.68.0...
...failed updating 54 targets...
...skipped 6 targets...

有人可以告诉我如何解决它吗?我究竟做错了什么?我确实按照说明进行操作,但是我不确定这是如何发生的。谢谢。

0 个答案:

没有答案