Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/159.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 交叉编译MongoDB C++;手臂驱动。找不到Boost库_C++_Mongodb_Boost_Arm_Scons - Fatal编程技术网

C++ 交叉编译MongoDB C++;手臂驱动。找不到Boost库

C++ 交叉编译MongoDB C++;手臂驱动。找不到Boost库,c++,mongodb,boost,arm,scons,C++,Mongodb,Boost,Arm,Scons,我试图让MongoDB驱动程序在ARM平台上运行,但构建系统拒绝我的Boost库 我摆弄着libpath、extrapath和extrapathdyn的不同组合,但都没有用 gwue@Anubis:~/mongo$ scons -j4 --cc=/home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-gcc --cxx=/home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-g++ --prefix=/t

我试图让MongoDB驱动程序在ARM平台上运行,但构建系统拒绝我的Boost库

我摆弄着libpath、extrapath和extrapathdyn的不同组合,但都没有用

gwue@Anubis:~/mongo$ scons -j4 --cc=/home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-gcc --cxx=/home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-g++ --prefix=/tmp/mongo --sharedclient --use-system-boost --cpppath=/home/gwue/boost1_54 --libpath=/home/gwue/boost1_54/stage/lib --extrapathdyn=/home/gwue/boost1_54/stage/lib --full install-mongoclient
结果:

scons: Reading SConscript files ...
scons version: 2.3.0
python version: 2 7 5 'final' 0
Checking whether the C++ compiler works(cached) yes
Checking whether the C compiler works(cached) yes
Checking if C++ compiler "/home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-g++" is GCC... (cached) yes
Checking if C compiler "/home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-gcc" is GCC... (cached) yes
Checking if C compiler supports -Wno-unused-local-typedefs... (cached) yes
Checking if C compiler supports -Wno-unused-function... (cached) yes
Checking if C compiler supports -Wno-unused-private-field... (cached) no
Checking if C compiler supports -Wno-deprecated-declarations... (cached) yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... (cached) no
Checking if C compiler supports -Wno-unused-const-variable... (cached) no
Checking if C compiler supports -fno-builtin-memcmp... (cached) yes
Checking for __thread... (cached) yes
Checking for C++ header file boost/filesystem/operations.hpp... (cached) yes
Checking for C++ library boost_thread-mt... (cached) no
Checking for C++ library boost_thread... (cached) no
Checking for C++ library boost_filesystem-mt... (cached) no
Checking for C++ library boost_filesystem... (cached) no
Checking for C++ library boost_program_options-mt... (cached) no
Checking for C++ library boost_program_options... (cached) yes
Checking for C++ library boost_system-mt... (cached) no
Checking for C++ library boost_system... (cached) yes
Checking for C header file unistd.h... (cached) yes
Checking whether clock_gettime is declared... (cached) yes
Checking for C library rt... (cached) yes
Checking for C++ header file execinfo.h... (cached) yes
Checking whether backtrace is declared... (cached) yes
Checking whether backtrace_symbols is declared... (cached) yes
Checking whether backtrace_symbols_fd is declared... (cached) yes
Checking for C library pcap... (cached) no
Checking for C library wpcap... (cached) no
Checking if __malloc_hook is declared volatile... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
<snip>
Install file: "build/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/client_build/libmongoclient.a" as "/tmp/mongo/lib/libmongoclient.a"
/home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-g++ -o build/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/shim_boost.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -pipe -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -fno-builtin-memcmp -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE___THREAD -DBOOST_THREAD_VERSION=2 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/pcre-8.30 -Isrc/third_party/pcre-8.30 -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost -Isrc -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/mongo -Isrc/mongo -I/home/gwue/boost1_54 -I/home/gwue/boost1_54/stage/lib/include -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/v8/include -Isrc/third_party/v8/include -Ibuild/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/yaml-cpp-0.5.1/include -Isrc/third_party/yaml-cpp-0.5.1/include src/third_party/shim_boost.cpp
ar rc build/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/libshim_boost.a build/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/shim_boost.o
ranlib build/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/third_party/libshim_boost.a
Target 'build/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/client_build/libmongoclient.so' depends on the availability of a system provided library for 'boost_filesystem', but no suitable library was found during configuration.
scons: *** [build/linux2/cc__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-gcc/cpppath__home_gwue_boost1_54/cxx__home_gwue_armgcc_lin_bin_arm-xilinx-linux-gnueabi-g++/extrapathdyn__home_gwue_boost1_54_stage_lib/libpath__home_gwue_boost1_54_stage_lib/use-system-boost/client_build/libmongoclient.so] Explicit exit, status 1
scons: building terminated because of errors.
user-config.jam包含:

using gcc : arm : /home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-g++ ;
只有在尝试交叉编译时才会出现问题。使用x86_64库和编译器,一切正常。 我怀疑我的ARM Boost库是否天生就坏了,因为我们已经在一个已经存在的项目中很好地使用了它们


关于如何说服scons接受LIB有什么想法吗?

我仍然无法让它发挥作用。 至少有一个没有依赖关系的纯实现。
这一行可以很好地编译,所以我们可能会使用它。

我认为在您编写的部分中,您删除了编译行(对g++的实际调用)。通过检查编译行,我们可以看到是否使用了正确的库路径(即-L)。你能给我们看一下编译的结果吗?我在问题取消前加了最后几行。据我所知,scons甚至没有尝试链接。
using gcc : arm : /home/gwue/armgcc/lin/bin/arm-xilinx-linux-gnueabi-g++ ;