利用配置好的caffe,编译别人的代码出现问题

caffe已经配置好,不过编译别人的代码时候出现问题,问题看图,怎么解决?
就是make all出现的问题,自己的caffe可以编译成功

image_io.cpp:(.text+0x1d4c): undefined reference to `cv::VideoCapture::set(int, double)'
image_io.cpp:(.text+0x1d9d): undefined reference to `cv::VideoCapture::set(int, double)'
image_io.cpp:(.text+0x1dfa): undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'
image_io.cpp:(.text+0x1f4e): undefined reference to `cv::VideoCapture::release()'
image_io.cpp:(.text+0x1f9a): undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'
image_io.cpp:(.text+0x22c5): undefined reference to `cv::VideoCapture::~VideoCapture()'
collect2: error: ld returned 1 exit status
Makefile:310: recipe for target 'build/tools/test_net.bin' failed
make: *** [build/tools/test_net.bin] Error 1
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+0x18ff): undefined reference to `cv::VideoCapture::VideoCapture()'
image_io.cpp:(.text+0x1aa8): undefined reference to `cv::VideoCapture::open(cv::String const&)'
image_io.cpp:(.text+0x1abd): undefined reference to `cv::VideoCapture::isOpened() const'
image_io.cpp:(.text+0x1c75): undefined reference to `cv::VideoCapture::~VideoCapture()'
image_io.cpp:(.text+0x1d01): undefined reference to `cv::VideoCapture::get(int) const'
image_io.cpp:(.text+0x1d4c): undefined reference to `cv::VideoCapture::set(int, double)'
image_io.cpp:(.text+0x1d9d): undefined reference to `cv::VideoCapture::set(int, double)'
image_io.cpp:(.text+0x1dfa): undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'
image_io.cpp:(.text+0x1f4e): undefined reference to `cv::VideoCapture::release()'
image_io.cpp:(.text+0x1f9a): undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'
image_io.cpp:(.text+0x22c5): undefined reference to `cv::VideoCapture::~VideoCapture()'
collect2: error: ld returned 1 exit status
Makefile:310: recipe for target 'build/tools/finetune_net.bin' failed
make: *** [build/tools/finetune_net.bin] Error 1
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+0x18ff): undefined reference to `cv::VideoCapture::VideoCapture()'
image_io.cpp:(.text+0x1aa8): undefined reference to `cv::VideoCapture::open(cv::String const&)'
image_io.cpp:(.text+0x1abd): undefined reference to `cv::VideoCapture::isOpened() const'
image_io.cpp:(.text+0x1c75): undefined reference to `cv::VideoCapture::~VideoCapture()'
image_io.cpp:(.text+0x1d01): undefined reference to `cv::VideoCapture::get(int) const'
image_io.cpp:(.text+0x1d4c): undefined reference to `cv::VideoCapture::set(int, double)'
image_io.cpp:(.text+0x1d9d): undefined reference to `cv::VideoCapture::set(int, double)'
image_io.cpp:(.text+0x1dfa): undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'
image_io.cpp:(.text+0x1f4e): undefined reference to `cv::VideoCapture::release()'
image_io.cpp:(.text+0x1f9a): undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'
image_io.cpp:(.text+0x22c5): undefined reference to `cv::VideoCapture::~VideoCapture()'
collect2: error: ld returned 1 exit status
Makefile:310: recipe for target 'build/tools/extract_features.bin' failed
make: *** [build/tools/extract_features.bin] Error 1

 
已邀请:

汤宝宝 - 弱弱的硕士

赞同来自:

在caffe里面怎么编译一个.cpp啊

caffe - CaffeCN社区管理员公共账号

赞同来自:

opencv的问题吧 你的opencv编译全了吗

lyy_com

赞同来自:

问题解决了

wjcmooo

赞同来自:

请问如何解决de问题 ?? xiexie

要回复问题请先登录注册