相关疑难解决方法(0)

caffe安装:opencv libpng16.so.16连接问题

我试图在Ubuntu 14.04机器上使用python接口编译caffe.

我安装了Anaconda和opencv conda install opencv.我还安装了咖啡中规定的所有要求并更改了注释块,makefile.config以便PYTHON_LIB和PYTHON_INCLUDE指向Anaconda发行版.

当我打电话时make all,发出以下命令:

g++ .build_release/tools/caffe.o -o .build_release/tools/caffe.bin -pthread 
-fPIC -DNDEBUG -O2 -DWITH_PYTHON_LAYER 
-I/home/andrei/anaconda/include 
-I/home/andrei/anaconda/include/python2.7 
-I/home/andrei/anaconda/lib/python2.7/site-packages/numpy/core/include
-I/usr/local/include 
-I/home/andrei/anaconda/lib 
-I/lib/x86_64-linux-gnu 
-I/lib64 
-I/usr/lib/x86_64-linux-gnu 
-I.build_release/src 
-I./src 
-I./include 
-I/usr/include 
-Wall -Wno-sign-compare -lcaffe 
-L/home/andrei/anaconda/lib 
-L/home/andrei/anaconda/lib/././ 
-L/usr/local/lib -L/usr/lib 
-L/home/andrei/anaconda/lib/././libpng16.so.16 
-L/lib/x86_64-linux-gnu 
-L/lib64 
-L/usr/lib/x86_64-linux-gnu 
-L/usr/lib 
-L.build_release/lib  
-lcudart -lcublas -lcurand -lglog -lgflags -lprotobuf -lleveldb -lsnappy 
-llmdb -lboost_system -lhdf5_hl -lhdf5 -lm 
-lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ 
-lboost_python -lpython2.7 -lcblas -latlas \
-Wl,-rpath,\$ORIGIN/../lib
Run Code Online (Sandbox Code Playgroud)

但是,它会被以下错误集停止:

/usr/bin/ld: warning: libpng16.so.16, needed by /home/andrei/anaconda/lib/libopencv_highgui.so, not found …
Run Code Online (Sandbox Code Playgroud)

python ubuntu opencv anaconda caffe

4
推荐指数
1
解决办法
8099
查看次数

标签 统计

anaconda ×1

caffe ×1

opencv ×1

python ×1

ubuntu ×1