无法建立Caffe SSD分支-未定义对boost :: re_detail_106700的引用

时间:2018-09-01 11:24:17

标签: gpu caffe

我正在尝试在ubuntu 16.04上安装caffe_ssd分支,但是在make步骤中失败,并出现以下错误:

/usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference to `uuid_generate@UUID_1.0'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `boost::re_detail_106700::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `boost::re_detail_106700::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const'
//usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference to `uuid_unparse_lower@UUID_1.0'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/caffe.bin.dir/build.make:133: recipe for target 'tools/caffe' failed
make[2]: *** [tools/caffe] Error 1
CMakeFiles/Makefile2:441: recipe for target 'tools/CMakeFiles/caffe.bin.dir/all' failed
make[1]: *** [tools/CMakeFiles/caffe.bin.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

我使用以下命令进行构建:

cmake -Dpython_version=3 -DBLAS=open -DCUDNN_INCLUDE=/usr/include/ ..

我还使用通过以下命令从源代码构建的Opencv 3.1.0:

cmake -DCMAKE_BUILD_TYPE=RELEASE \
     -DCMAKE_INSTALL_PREFIX=../opencv3.1 \
     -DPYTHON_EXECUTABLE=/home/bassel/anaconda3/envs/caff/bin/python \
     -DPYTHON_DEFAULT_EXECUTABLE=/home/bassel/anaconda3/envs/caff/bin/python \
     -DPYTHON_INCLUDE_DIRS=/home/bassel/anaconda3/envs/caff/include \
     -DPYTHON_LIBRARY=/home/bassel/anaconda3/envs/caff/lib \
     -DWITH_CUDA=OFF \
     -DWITH_FFMPEG=YES -DBUILD_EXAMPLES=ON -enable-shared --disable-static ..

0 个答案:

没有答案