.build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)’ .
来源:互联网 发布:c语言求平方根函数 编辑:程序博客网 时间:2024/06/05 03:43
我使用的版本是3.1.0
,在编译工程的时候,遇到如下BUG
...CXX/LD -o .build_release/tools/convert_imageset.bin .build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)’ .build_release/lib/libcaffe.so: undefined reference tocv::imencode(cv::String const&, cv::_InputArray const&, std::vector >&, std::vector > const&)’ .build_release/lib/libcaffe.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)’ collect2: error: ld returned 1 exit status make: * [.build_release/tools/convert_imageset.bin] Error 1
...
首先,我是已经配置过了opencv的,可以这样查询安装版本:
因为编译好了,理所当然,输出结果是3.1.0
所以出现上面的错误,应该是opencv_imgcodecs
链接的问题,比较有效的解决方案是,把opencv需要的lib添加到Makefile
文件中,找到LIBRARIES
(在PYTHON_LIBRARIES := boost_python python2.7
前一行)并修改为:
LIBRARIES += glog gflags protobuf leveldb snappy \ lmdb boost_system hdf5_hl hdf5 m \ opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs
- build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)'
- .build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)’ .
- Caffe .build_release/lib/libcaffe.so:对‘cv::imread(cv::String const&, int)’未定义的引用
- undefined reference to cv::imread(cv::String const&, int)
- undefined reference to `cv::imread(cv::String const&, int)'
- caffe: compile error : undefined reference to `cv::imread(cv::String const&, int)' et al.
- error: undefined reference to `cv::imread(cv::String const&, int)' 解决方法
- Opencv3.0: undefined reference to cv::imread(cv::String const&, int)
- undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)
- libopencv_gpu.so.2.4: undefined reference to `cv::gpu
- undefined reference to `cv::calcOpticalFlowFarnebackcalcOpticalFlowFarneback
- libcaffe.so: undefined reference to `LAPACKE_sgetri'
- make: *** [.build_release/lib/libcaffe.so] 错误 1
- Caffe 工程的一些编译错误以及解决方案(undefined reference to cv::imread)
- undefined reference to `cv::VideoCapture::VideoCapture()'
- ubuntu 16.04+Caffe:build_release/lib/libcaffe.so:对‘google::protobuf:
- include/opencv2/core/cvstd.hpp:647: undefined reference to `cv::String::deallocate()'
- Linux下基于opencv程序编译时,出现undefined reference to `cv::SIFT::SIFT(int, int, double, double, double)
- Annotation--反射与Annotation
- 互联网产品都是怎么做推广的?(app产品推广)
- 一万块的iPhone X来了!你错过的发布会亮点都在这里
- 集群环境ssh免密码登录设置
- Oracle月表转总表
- .build_release/lib/libcaffe.so: undefined reference to cv::imread(cv::String const&, int)’ .
- fiddler https 抓包
- JAVA泛型<?>和<T>的区别
- Zookeeper学笔记 --- Zookeeper中watcher机制
- JAVA的环境变量配置(JDK1.6.0_45)
- POJ 3384 Feng Shui (计算几何+半平面交)
- 搜索引擎优化和内容策略
- Catlike渲染教程之Shader基础
- LeetCode 58 Length of Last Word