I am trying to install latest OpenCV version 2.4.2 on a linux (ubuntu 10.4) PC.
I downloaded the tar ball. Un-tar-ed it. And followed install opencv in ubuntu 10.04.
While 'Make' I got error after "Linking CXX executable ../../bin/opencv_perf_core
" comes in red color here; after millions of warning or error msgs it shows as follows:
... ... ...
../../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 CXX executable ../../bin/opencv_perf_core" with quotes.
I googled for it and found that the PC needs CUDA driver. For now I don't need that perhaps.
Does that driver installation required here or I can bypass that particular 'make' process?
My aim is to get started with OpenCV as soon as possible in ubuntu. Does these build processes required for compiling own cpp file using openCV 2.4.2 libraries? I am not concentrating on static or non static libraries.
Has anyone worked on for ubuntu as just like on windows I install OpenCV and get started just by setting path to the include file and keeping .dlls with the custom executable file, say for capturing images from a camera.
<=== Update ===>
Followed http://docs.opencv.org/trunk/doc/tutorials/introduction/linux_install/linux_install.html.
It passed the Linking CXX executable ../../bin/opencv_perf_core.
now it stucks at Linking CXX executable ../../bin/opencv_perf_highgui
with 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
Seems the cmake parameters has to be studied well. Any shortcut will be helpful.