I am trying to install the latest version of OpenCV version 2.4.2 on a Linux (ubuntu 10.4) PC.
I loaded the tar ball. Disperse it. And after installing opencv in ubuntu 10.04 .
While "Make", I got an error after " Linking CXX executable ../../bin/opencv_perf_core " is shown in red; after millions of warnings or error messages, it shows the following:
... ... ... ../../lib/libopencv_ts.so.2.4.2: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()' ../../lib/libopencv_ts.so.2.4.2: undefined reference to `typeinfo for int' collect2: error: ld returned 1 exit status make[2]: *** [bin/opencv_perf_core] Error 1 make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2 make: *** [all] Error 2
Keyword: "Linking the CXX ../../ bin / opencv_perf_core executable" with quotation marks.
I searched for it and found that a PC needs a CUDA driver. I donβt need this at the moment.
Is this driver installation required here or can I get around this particular "make" process?
My goal is to get started with OpenCV as soon as possible in ubuntu. Are these build processes required to compile their own cpp file using the openCV 2.4.2 libraries? I do not concentrate on static or non-stationary libraries.
Someone worked on ubuntu in the same way as on Windows, I install OpenCV and start by simply setting the path to the included file and saving the DLL with a custom executable, for example, to capture images from the camera.
<=== Update ===>
Further http://docs.opencv.org/trunk/doc/tutorials/introduction/linux_install/linux_install.html .
He passed the Linking CXX executable ../../ bin / opencv_perf_core.
now it is held in Linking CXX executable ../../bin/opencv_perf_highgui with the following errors:
/usr/bin/ld: ../../lib/libopencv_highgui.a(cap_libv4l.cpp.o): undefined reference to symbol 'v4l2_close' /usr/bin/ld: note: 'v4l2_close' is defined in DSO /usr/lib/libv4l2.so.0 so try adding it to the linker command line /usr/lib/libv4l2.so.0: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [bin/opencv_perf_highgui] Error 1 make[1]: *** [modules/highgui/CMakeFiles/opencv_perf_highgui.dir/all] Error 2 make: *** [all] Error 2
It seems that cmake options should be well understood. Any shortcut will be helpful.