Ask Your Question

mrunmoy's profile - activity

2017-05-01 02:02:07 -0600 received badge  Taxonomist
2013-11-11 10:13:32 -0600 commented question Cannot compile DisplayImage.cpp sample program

I have no idea how to fix these errors.

2013-11-11 10:12:25 -0600 commented question Cannot compile DisplayImage.cpp sample program

-- Looking for ffmpeg/avformat.h -- Looking for ffmpeg/avformat.h - not found -- Could NOT find PythonLibs (missing: PYTHON_INCLUDE_DIRS) (Required is exact version "2.7.3") Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named numpy.distutils -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)

2013-11-11 10:11:44 -0600 commented question Cannot compile DisplayImage.cpp sample program

-- checking for module 'libdc1394-2' -- package 'libdc1394-2' not found -- checking for module 'libdc1394' -- package 'libdc1394' not found -- checking for module 'libv4l1' -- package 'libv4l1' not found -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- checking for module 'libavcodec' -- package 'libavcodec' not found -- checking for module 'libavformat' -- package 'libavformat' not found -- checking for module 'libavutil' -- package 'libavutil' not found -- checking for module 'libswscale' -- package 'libswscale' not found -- Looking for libavformat/avformat.h -- Looking for libavformat/avformat.h - not

2013-11-11 10:10:45 -0600 commented question Cannot compile DisplayImage.cpp sample program

-- checking for module 'gstreamer-video-0.10' -- package 'gstreamer-video-0.10' not found -- checking for module 'gstreamer-app-0.10' -- package 'gstreamer-app-0.10' not found -- checking for module 'gstreamer-riff-0.10' -- package 'gstreamer-riff-0.10' not found -- checking for module 'gstreamer-pbutils-0.10' -- package 'gstreamer-pbutils-0.10' not found -- checking for module 'gstreamer-base-1.0' -- package 'gstreamer-base-1.0' not found -- checking for module 'gstreamer-video-1.0' -- package 'gstreamer-video-1.0' not found -- checking for module 'gstreamer-app-1.0' -- package 'gstreamer-app-1.0' not found -- checking for module 'gstreamer-riff-1.0' -- package 'gstreamer-riff-1.0' not found -- checking for module 'gstreamer-pbutils-1.0' -- package 'gstreamer-pbutils-1.0

2013-11-11 10:10:07 -0600 commented question Cannot compile DisplayImage.cpp sample program

ok, I tried that. I didn't realize or see it before, I got a bunch of "not found errors" when I build opencv

sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. -- Detected version of GNU GCC: 46 (406) -- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found suitable version "1.2.3.4", required is "1.2.3") -- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) -- Could NOT find Jasper (missing: JASPER_LIBRARY JASPER_INCLUDE_DIR) -- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.3.4") -- checking for module 'gtk+-2.0' -- found gtk+-2.0, version 2.24.10 -- checking for module 'gthread-2.0' -- found gthread-2.0, version 2.32.4 -- checking for module 'gstreamer-base-0.10' -- package 'gstreamer-base-0.10' not found

2013-11-11 09:21:01 -0600 commented question Cannot compile DisplayImage.cpp sample program

Thanks berak, it compiled now. But when I run it I get the following error:

mrunmoy@ubuntu:~/Desktop/sandbox/opencv$ ./DisplayImage lena.jpg OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /home/mrunmoy/opencv_work/opencv/modules/highgui/src/window.cpp, line 499 terminate called after throwing an instance of 'cv::Exception' what(): /home/mrunmoy/opencv_work/opencv/modules/highgui/src/window.c

even though i installed libgtk2.0-dev and pkg-config i still get the same error.

2013-11-08 07:11:23 -0600 asked a question Cannot compile DisplayImage.cpp sample program

Hi,

I followed the steps to install opencv from http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation

Then I tried to make the sample program given at http://docs.opencv.org/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html#linux-gcc-usage

I get the following error msg while building using cmake:

$ make Scanning dependencies of target DisplayImage [100%] Building CXX object CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o /home/mrunmoy/Desktop/sandbox/opencv/DisplayImage.cpp: In function ‘int main(int, char)’: /home/mrunmoy/Desktop/sandbox/opencv/DisplayImage.cpp:17:33: error: ‘CV_WINDOW_AUTOSIZE’ was not declared in this scope make[2]: [CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o] Error 1 make[1]: [CMakeFiles/DisplayImage.dir/all] Error 2 make: * [all] Error 2

then I did google for some solution and found that someone had asked to print the result of following command. So here it is: mrunmoy@ubuntu:~/Desktop/sandbox/opencv$ pkg-config --libs opencv /usr/local/lib/libopencv_bioinspired.so /usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_cuda.so /usr/local/lib/libopencv_cudaarithm.so /usr/local/lib/libopencv_cudabgsegm.so /usr/local/lib/libopencv_cudacodec.so /usr/local/lib/libopencv_cudafeatures2d.so /usr/local/lib/libopencv_cudafilters.so /usr/local/lib/libopencv_cudaimgproc.so /usr/local/lib/libopencv_cudaoptflow.so /usr/local/lib/libopencv_cudastereo.so /usr/local/lib/libopencv_cudawarping.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_ocl.so /usr/local/lib/libopencv_optim.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_shape.so /usr/local/lib/libopencv_softcascade.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_superres.so /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so -lrt -lpthread -lm -ldl

mrunmoy@ubuntu:~/Desktop/sandbox/opencv$ locate opencv.hpp /home/mrunmoy/opencv_work/opencv/include/opencv2/opencv.hpp /usr/local/include/opencv2/opencv.hpp

what am I doing wrong?

Thanks, mrunmoy