Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv java build error in Ubuntu 13.04

Hi,

I need help in building the opencv 2.4.6 in ubuntu 13.04 64bit with Java support. I am trying it for last 2 days and didn't get any positive result. All ways th code failes at this location. I know this is because of some problem with the libv4l dependency. TOday I compiled and installed this libv4l lib into my machine, but still I got this error.. I have tried lib 0.8.8 to 1.0.0 version and am facing the following issue on all the versions.

Please help me to solve this issue.

[ 23%] Built target opencv_test_flann [ 23%] Built target opencv_perf_highgui_pch_dephelp [ 23%] Built target pch_Generate_opencv_perf_highgui Linking CXX executable ../../bin/opencv_perf_highgui /usr/bin/ld: ../../lib/libopencv_highgui.a(cap_libv4l.cpp.o): undefined reference to symbol 'v4l2_munmap' /usr/bin/ld: note: 'v4l2_munmap' is defined in DSO /usr/local/lib/libv4l2.so.0 so try adding it to the linker command line /usr/local/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

reference links followed.

http://jayrambhia.wordpress.com/2012/06/20/install-opencv-2-4-in-ubuntu-12-04-precise-pangolin/

http://www.ozbotz.org/opencv-installation/

http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html

http://forum.ivorde.ro/ffmpeg-error-while-loading-shared-libraries-libavdevice-so-52-cannot-open-shared-object-file-no-t129.html

http://www.cloudjim.com/install-opencv-242-on-ubuntu-1204-lts.html

Am I missing something in my steps, i have no clue how to solve this issue.

Thanks in advance for your support.