请教大牛caffe安装问题~~~~~~~~~~

Win10 VMWare 64位Ubuntu Kylin

CXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin
.build_release/lib/libcaffe.so: undefined reference to `cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
.build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
collect2: error: ld returned 1 exit status
Makefile:625: recipe for target '.build_release/tools/upgrade_solver_proto_text.bin' failed
make: *** [.build_release/tools/upgrade_solver_proto_text.bin] Error 1
 
已邀请:

yulizzz

赞同来自:

undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
所以是opencv没装好?

chinaleo - Be quiet

赞同来自:

看到有说是opencv编译的时候需要修改下编译选项,可是我的ubuntu kylin系统默认好像就是有opencv的,但一直不知道怎么通过cmake进行编译,找不到makefile,grep了一下opencv,出来好多东西分散在不同的目录。。。

chinaleo - Be quiet

赞同来自:

安装了opencv3,还是一样的现象。。。
opencv好大

chinaleo - Be quiet

赞同来自:

哈哈,用cmake-gui重新编译成功了,安装好caffe了~~~

要回复问题请先登录注册