UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor yushimao111
Visitor
1,882 Views
Registered: ‎05-05-2016

reVision-build project problem-opencv library

Hello everyone,

I build a reVISION project about bilateral filter example in SDsoc 2017.1,but when I compile the project I got the error like this:

 

E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:54: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:54: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:65: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:65: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:67: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:67: undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:88: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:88: undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:90: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:90: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:90: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:112: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
E:/SDsoc2017_file/test/src/xf_bilateral_filter_tb.cpp:112: undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' 

 

I know maybe it is because the opencv library is't configured correctly,but How can I solve it?

Thanks~

0 Kudos
1 Reply
Highlighted
1,837 Views
Registered: ‎08-08-2017

Re: reVision-build project problem-opencv library

Since it isn't linking to imwrite I would make sure you have linked to highgui. Try going to project > properties  > C/C++ Build > Settings > SDS++ Linker > Libraries, and under Libraries (-l) add opencv_highgui.

0 Kudos