Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture problem in opencv 2.4.11, Ubuntu 14.04, eclipse mars

Hi,

I downloaded opencv 2.4.11 and the linker can not find some functions (VideoCapture, namedWindow, ...): /test/gstreamer2opencv/Debug/../gstreamer2opencv.cpp:160: undefined reference to cv::VideoCapture::VideoCapture(cv::String const&)' /test/gstreamer2opencv/Debug/../gstreamer2opencv.cpp:167: undefined reference tocv::namedWindow(cv::String const&, int)' /test/gstreamer2opencv/Debug/../gstreamer2opencv.cpp:171: undefined reference to cv::VideoCapture::read(cv::_OutputArray const&)' /test/gstreamer2opencv/Debug/../gstreamer2opencv.cpp:174: undefined reference tocv::imshow(cv::String const&, cv::_InputArray const&)' I am linking core and highgui libs. grep finds lines with those functions in libhighgui.so, so I do not understand what is going on. If I remove highgui lib I get even more reference errors, so my paths seem to be correct, too. Anyone have an idea what could be the problem?

VideoCapture problem in opencv 2.4.11, Ubuntu 14.04, eclipse mars

Hi,

I downloaded opencv 2.4.11 and the linker can not find some functions (VideoCapture, namedWindow, ...): /test/gstreamer2opencv/Debug/../gstreamer2opencv.cpp:160: undefined reference to cv::VideoCapture::VideoCapture(cv::String const&)' `cv::VideoCapture::VideoCapture(cv::String const&)'

/test/gstreamer2opencv/Debug/../gstreamer2opencv.cpp:167: undefined reference tocv::namedWindow(cv::String to `cv::namedWindow(cv::String const&, int)' int)'

/test/gstreamer2opencv/Debug/../gstreamer2opencv.cpp:171: undefined reference to cv::VideoCapture::read(cv::_OutputArray const&)' `cv::VideoCapture::read(cv::_OutputArray const&)'

/test/gstreamer2opencv/Debug/../gstreamer2opencv.cpp:174: undefined reference tocv::imshow(cv::String to `cv::imshow(cv::String const&, cv::_InputArray const&)' const&)'

I am linking core and highgui libs. grep finds lines with those functions in libhighgui.so, so I do not understand what is going on. If I remove highgui lib I get even more reference errors, so my paths seem to be correct, too. Anyone have an idea what could be the problem?