做一个项目需要配置caffe环境 之前从来没接触过 然后在caffe下执行make all就报错:
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
Makefile:582: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
百度到的
修改Makefile.config和
修改Makefile文件的LIBRARIES+=
以及sudo apt-get install libopenblas-dev
的方法都试过了没用啊
真是没辙了 求助万能的网友 救救孩子吧~~~感激不尽
修改Makefile文件的LIBRARIES+=有两处,都修改了吗?
你得认真读报错信息才是, 它说它缺的是hdf5, 这些相关的包都得手动安装一下才行.
你认真读caffe的安装tutorial, 严格按照上面的来 , 必然能成功. caffe文档很全不说, ubuntu上安装更简单些.多些耐心嘛.
http://caffe.berkeleyvision.org/install_apt.html
Ubuntu Installation
For Ubuntu (>= 17.04)
Installing pre-compiled Caffe
Everything including caffe itself is packaged in 17.04 and higher versions. To install pre-compiled Caffe package, just do it by
sudo apt install caffe-cpu
for CPU-only version, or
sudo apt install caffe-cuda
for CUDA version. Note, the cuda version may break if your NVIDIA driver and CUDA toolkit are not installed by APT.
Package status of CPU-only version
Package status of CUDA version
Installing Caffe from source
We may install the dependencies by merely one line
sudo apt build-dep caffe-cpu # dependencies for CPU-only version
sudo apt build-dep caffe-cuda # dependencies for CUDA versino
It requires a deb-src line in your sources.list. Continue with compilation.
请问解决了吗?一模一样的问题