编译ssd至build时全部错误cv::未定义等
2017-11-02 21:21
561 查看
错误中的一部分:build/lib/libcaffe.a(image_io.o): In function caffe::ReadVideoToVolumeDatum(char const*, int, int, int, int, int, int, caffe::VolumeDatum*)': image_io.cpp:(.text+0x1905): undefined reference tocv::VideoCapture::VideoCapture()'
image_io.cpp:(.text+0x1abe): undefined reference to cv::VideoCapture::open(cv::String const&)' image_io.cpp:(.text+0x1ace): undefined reference tocv::VideoCapture::isOpened() const'
image_io.cpp:(.text+0x1c91): undefined reference to cv::VideoCapture::~VideoCapture()' image_io.cpp:(.text+0x1d22): undefined reference tocv::VideoCapture::get(int) const'
image_io.cpp:(.text+0x1d6d): undefined reference to cv::VideoCapture::set(int, double)' image_io.cpp:(.text+0x1de1): undefined reference tocv::VideoCapture::set(int, double)'
image_io.cpp:(.text+0x1e35): undefined reference to cv::VideoCapture::read(cv::_OutputArray const&)' image_io.cpp:(.text+0x1f7e): undefined reference tocv::VideoCapture::release()'
image_io.cpp:(.text+0x1fc3): undefined reference to cv::VideoCapture::read(cv::_OutputArray const&)' image_io.cpp:(.text+0x22e9): undefined reference tocv::VideoCapture::~VideoCapture()'
解决方法:
在Makefile文件中找到第195行如:
ifeq ($(USE_OPENCV), 1)
LIBRARIES +=
在LIBRARIES后添加opencv_videoio和opencv_imgcodecs然后重新编译即可
image_io.cpp:(.text+0x1abe): undefined reference to cv::VideoCapture::open(cv::String const&)' image_io.cpp:(.text+0x1ace): undefined reference tocv::VideoCapture::isOpened() const'
image_io.cpp:(.text+0x1c91): undefined reference to cv::VideoCapture::~VideoCapture()' image_io.cpp:(.text+0x1d22): undefined reference tocv::VideoCapture::get(int) const'
image_io.cpp:(.text+0x1d6d): undefined reference to cv::VideoCapture::set(int, double)' image_io.cpp:(.text+0x1de1): undefined reference tocv::VideoCapture::set(int, double)'
image_io.cpp:(.text+0x1e35): undefined reference to cv::VideoCapture::read(cv::_OutputArray const&)' image_io.cpp:(.text+0x1f7e): undefined reference tocv::VideoCapture::release()'
image_io.cpp:(.text+0x1fc3): undefined reference to cv::VideoCapture::read(cv::_OutputArray const&)' image_io.cpp:(.text+0x22e9): undefined reference tocv::VideoCapture::~VideoCapture()'
解决方法:
在Makefile文件中找到第195行如:
ifeq ($(USE_OPENCV), 1)
LIBRARIES +=
在LIBRARIES后添加opencv_videoio和opencv_imgcodecs然后重新编译即可
相关文章推荐
- linux2.6.28.1编译时__mutex_unlock_slowpath未定义的错误
- XCode编译Worklight native源码出现“buildtime.sh: Permission denied”错误的解决方法
- Keil4 每次选build 编译(F7)都全部编译的解决办法
- VS2010编译时出现“未定义的基类”错误
- React Native编译错误:ReactAndroid:buildReactNdkLib FAILED
- Buildroot编译错误解决方法
- 编译caffe出现错误:make: *** [.build_release/src/caffe/common.o] Error 1
- cocos2dx 编译错误 BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following
- C++编译错误cannot have cv-qualifier
- Linux 编译 OpenCV 出现 ‘cv::imread(std::__cxx11:: 错误的解决方案
- React Native编译错误:ReactAndroid:buildReactNdkLib FAILED
- cordova build android 打包编译时报错,错误为unable to start the daemon process ......
- ubuntu13.10编译android文件系统4.0.4错误全部解析
- ofbiz编译错误(missing required source folder: 'framework/sql/build/gen-src/javacc')
- signavio\editor\build.xml:118: Java returned: 2 编译错误
- BUILD_BUG_ON 检查编译时错误
- Ant build编译错误 Cannot run program "javadoc.exe"
- VC 调试错误,在界面推出操作时报如下错误,从新全部编译一下就可以了!
- VS编译时跳过错误 Skipped Build
- 编译时候没用警告和错误,但是执行不了,提示bad flag ()()in function cvGerMat