undefined reference to `cv::VideoCapture::VideoCapture()' #253
Comments
do you have opencv and ffmpeg installed on your machine? |
yes,I have already install opencv.and I can successfully compile v1.0. |
It is weird, sounds like a linking problem. Some LD_LIBRARY_PATH may solve it |
check this #259 |
@mangdian try again, just modify Makefile |
|
modify : LIBRARIES += opencv_core opencv_highgui opencv_imgproc opencv_video |
try to pull and compile again should solve the issue. |
@sunnyxiaohu thanks,it works for me,(and my opencv version is 3.2). |
@sunnyxiaohu how can I put the linking in my bash? |
thanks @sunnyxiaohu adding opencv_videoio did the job. |
Hi, Could you tell me the location of this makefile where the path change has to be made? I tried searching through the entire opencv folder and couldn't find the right file. |
I have also the same problem, I am using ROS and compiling it using Catkin, I have CMakeLists.txt file for my package. Can you please explain what is mean by LD_LIBRARY_PATH, how can I solve it in my case ? thanks |
i have same problem:( |
或许这就是大佬吧 @sunnyxiaohu |
@sunnyxiaohu |
@sunnyxiaohu 大佬大佬! |
modify Makefile as @sunnyxiaohu said! |
|
when I run "make all",there are errors:
build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::set(int, double)'.build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::open(cv::String const&)' .build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::release()'.build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::~VideoCapture()' .build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::isOpened() const'.build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::get(int) const' .build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::read(cv::_OutputArray const&)'.build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::VideoCapture()' collect2: error: ld returned 1 exit status make: *** [.build_release/tools/compute_image_mean.bin] Error 1 make: *** Waiting for unfinished jobs.... .build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::set(int, double)'.build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::open(cv::String const&)' .build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::release()'.build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::~VideoCapture()' .build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::isOpened() const'.build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::get(int) const' .build_release/lib/libcaffe.so: undefined reference to
cv::VideoCapture::read(cv::_OutputArray const&)'`
How can I fix this?
The text was updated successfully, but these errors were encountered: