Ask Your Question
-1

OpenCV 3.1 build for windows imshow doesn't work [closed]

asked 2017-01-14 06:44:15 -0600

User gravatar image

updated 2017-01-14 07:21:08 -0600

Blockquote

I build OpenCV 3.1 with CMake 3.2.2 with Visual Studio 2013 64 in Windows 7

WITH_WIN32UI flag is set to true

but when I try to imshow I get the following runtime error:

OpenCV Error: Unspecified error (The function is not implemented. Rebuild the li brary 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 cvShowImage, file D:\libs\opencv 3.1\opencv\sources\modules\highgui\src\window.c pp, line 545

my cmake output is:

sizeof(void) = 4 on x86 / x86_64 processor. Assume 32-bit compilation mode (X86=1) found IPP (ICV version): 9.0.1 [9.0.1] at: D:/libs/opencv 3.1/opencv/sources/3rdparty/ippicv/unpack/ippicv_win Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7") Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.6") Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.4") Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2") 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) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Caffe: NO Protobuf: NO Glog: NO Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags Tesseract: NO Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR) Build libprotobuf from sources: libprotobuf not found into system The protocol buffer compiler not found Tesseract: NO Complex module opencv_contrib_world + opencv_bgsegm + opencv_bioinspired + opencv_ccalib - opencv_cvv + opencv_datasets + opencv_face - opencv_latentsvm + opencv_line_descriptor + opencv_optflow + opencv_reg + opencv_rgbd + opencv_saliency + opencv_surface_matching + opencv_text + opencv_tracking + opencv_xfeatures2d + opencv_ximgproc + opencv_xobjdetect + opencv_xphoto

General configuration for OpenCV 3.1.0 ===================================== Version control: unknown

Platform: Host: Windows 6.1 AMD64 CMake: 3.2.3 CMake generator: Visual Studio 12 2013 Win64 CMake build tool: C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe MSVC: 1700

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 2012/VC/bin/cl.exe (ver 17.0.50727.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:fast /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /MD /O2 /Ob2 /D NDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:fast /wd4251 /wd4324 /wd4275 /wd4589 /MP4 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 2012/VC/bin/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:fast /MP4 /MD /O2 /Ob2 /D NDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp ...

(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by User
close date 2017-01-14 12:41:39.643214

Comments

can you show your cmake output ?

berak gravatar imageberak ( 2017-01-14 06:51:13 -0600 )edit

Yes, I update my question

User gravatar imageUser ( 2017-01-14 07:19:45 -0600 )edit

may be it is same problem in this post too

LBerger gravatar imageLBerger ( 2017-01-14 08:08:14 -0600 )edit
1

so, can we close it ?

berak gravatar imageberak ( 2017-01-14 08:12:10 -0600 )edit

@berak may be it's better to close and convert comment from user in answer

LBerger gravatar imageLBerger ( 2017-01-15 03:09:22 -0600 )edit

^^ you can do that, too ;)

berak gravatar imageberak ( 2017-01-15 03:10:48 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
-1

answered 2017-01-14 08:08:46 -0600

User gravatar image

I build in new directory and it works

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-14 06:44:15 -0600

Seen: 1,336 times

Last updated: Jan 14 '17