2 8*_*2 8 2 installation compilation ld caffe
我正在尝试编译caffe,在运行make all命令时,我遇到了这个链接错误:
LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
Makefile:566: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
小智 11
在Makefile.config中更改:
INCLUDE_DIRS := $(PYTHON_INCLUDE)/usr/local/include/usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
Run Code Online (Sandbox Code Playgroud)
请注意,路径可能因操作系统而异.
| 归档时间: |
|
| 查看次数: |
4244 次 |
| 最近记录: |