Ask Your Question

ParokshaX's profile - activity

2014-07-23 03:27:01 -0600 commented answer OpenCV Android with python

there is no cv2.cpp and cv2.cv.hpp under src2 directory!

2014-03-19 03:28:44 -0600 asked a question OpenCV (Linux): imread() fails with static library

imread() returns null opencv Mat when using static library (highgui), but it works perfectly with dynamic library.

cv::Mat objImg = cv::imread("sample.jpg", 0);

I am using opencv 2.4.8 release libraries.

2014-02-07 03:33:27 -0600 asked a question Error during Static Library Creation : " undefined reference to symbol 'v4l2_munmap' "

I am facing the following error during OpenCV 4.8 installation with static libraries support

/usr/bin/ld: ../../lib/libopencv_highgui.a(cap_libv4l.cpp.o): undefined reference to symbol 'v4l2_munmap' //usr/lib/x86_64-linux-gnu/libv4l2.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: [bin/opencv_test_highgui] Error 1 make[1]: [modules/highgui/CMakeFiles/opencv_test_highgui.dir/all] Error 2 make: [all] Error 2*

Here is the cmake command I issued

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_V4L=ON -D WITH_GSTREAMER=ON -D WITH_OPENEXR=ON -D WITH_UNICAP=ON -D BUILD_PYTHON_SUPPORT=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D BUILD_SHARED_LIBS=OFF ..

Here is a problem very much similar to mine.

could someone explain what went wrong in my case along with possible solutions?