1

我正在尝试编译 Caffe。

make all -j4

工作正常。但是进行测试会出现以下错误。

Debian GNU/Linux 8 (jessie) 64 位

g++ --version
g++ (Debian 4.9.2-10) 4.9.2

给出这个错误

make test -j4

caffe$ make test -j4
CXX/LD -o .build_debug/test/test_all.testbin src/caffe/test/test_caffe_main.cpp
LD .build_debug/src/caffe/test/test_solver.o
LD .build_debug/src/caffe/test/test_platform.o
LD .build_debug/src/caffe/test/test_tile_layer.o
/usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference to symbol '_ULx86_64_step'
/usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_debug/test/test_platform.testbin' failed
make: *** [.build_debug/test/test_platform.testbin] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference to symbol '_ULx86_64_step'
/usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_debug/test/test_tile_layer.testbin' failed
make: *** [.build_debug/test/test_tile_layer.testbin] Error 1
/usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference to symbol '_ULx86_64_step'
/usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:609: recipe for target '.build_debug/test/test_solver.testbin' failed
make: *** [.build_debug/test/test_solver.testbin] Error 1
/usr/bin/ld: /usr/local/lib/libglog.a(utilities.cc.o): undefined reference to symbol '_ULx86_64_step'
/usr/lib/x86_64-linux-gnu//libunwind.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:597: recipe for target '.build_debug/test/test_all.testbin' failed
make: *** [.build_debug/test/test_all.testbin] Error 1
4

1 回答 1

0

使用 cmake 方法制作 Caffe 似乎暂时解决了这个问题。

于 2016-09-24T09:07:11.950 回答