> 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= 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:fast /MP4 /D_DEBUG /MDd> /Zi /Ob0 /Od /RTC1 > Linker flags (Release): /machine:X86 /INCREMENTAL:NO /debug> Linker flags (Debug): /machine:X86 /debug /INCREMENTAL > Precompiled headers: YES> Extra dependencies: comctl32 gdi32 ole32 setupapi ws2_32> 3rdparty dependencies: zlib libjpeg libwebp libpng libtiff> libjasper IlmImf libprotobuf>> OpenCV modules:> To be built: core flann imgproc ml photo reg> surface_matching video dnn fuzzy> imgcodecs shape videoio highgui> objdetect plot superres ts xobjdetect> xphoto bgsegm bioinspired dpm face> features2d line_descriptor saliency> text calib3d ccalib datasets rgbd> stereo structured_light tracking> videostab xfeatures2d ximgproc aruco> optflow stitching contrib_world> Disabled: world> Disabled by dependency: -> Unavailable: cudaarithm cudabgsegm cudacodec> cudafeatures2d cudafilters cudaimgproc> cudalegacy cudaobjdetect cudaoptflow> cudastereo cudawarping cudev java> python2 python3 viz cvv hdf matlab sfm>> Windows RT support: NO>> GUI: > QT: NO> Win32 UI: NO> OpenGL support: NO> VTK support: NO>> Media I/O: > ZLib: build (ver 1.2.8)> JPEG: build (ver 90)> WEBP: build (ver 0.3.1)> PNG: build (ver 1.6.19)> TIFF: build (ver 42 - 4.0.2)> JPEG 2000: build (ver 1.900.1)> OpenEXR: build (ver 1.7.1)> GDAL: NO>> Video I/O:> Video for Windows: NO> DC1394 1.x: NO> DC1394 2.x: NO> FFMPEG: YES (prebuilt binaries)> codec: YES (ver 56.41.100)> format: YES (ver 56.36.101)> util: YES (ver 54.27.100)> swscale: YES (ver 3.1.101)> resample: NO> gentoo-style: YES> GStreamer: NO> OpenNI: NO> OpenNI PrimeSensor Modules: NO> OpenNI2: NO> PvAPI: NO> GigEVisionSDK: NO> DirectShow: YES> Media Foundation: NO> XIMEA: NO> Intel PerC: NO>> Parallel framework: none>> Other third-party libraries:> Use IPP: 9.0.1 [9.0.1]> at: D:/libs/opencv> 3.1/opencv/sources/3rdparty/ippicv/unpack/ippicv_win> Use IPP Async: NO> Use Eigen: NO> Use Cuda: NO> Use OpenCL: YES> Use custom HAL: NO>> OpenCL:> Version: dynamic> Include path: D:/libs/opencv> 3.1/opencv/sources/3rdparty/include/opencl/1.2> Use AMDFFT: NO> Use AMDBLAS: NO>> Python 2:> Interpreter: NO>> Python 3:> Interpreter: NO>> Python (for build): NO>> Java:> ant: NO> JNI: NO> Java wrappers: NO> Java tests: NO>> Matlab: > Matlab not found or implicitly> disabled>> Documentation:> Doxygen: NO> PlantUML: NO>> Tests and samples:> Tests: YES> Performance tests: YES> C/C++ Examples: NO>> Install path: > D:/libs/opencv> 3.1/opencv/mybuild/install>> cvconfig.h is in: > D:/libs/opencv 3.1/opencv/mybuild
what is wrong?
↧