python - Errors while using GUI function on OpenCV3 -


i installed opencv3 sources. correctly cv2.so library , can access correctly module in python.

import cv2 

but when use gui functions errors:

cv2.imshow('frame',frame) cv2.error: /users/****/****/opencv-3.0.0-rc1/modules/highgui/src/window.cpp:534: error: (-2) function not implemented. rebuild library windows, gtk+ 2.x or carbon support. if on ubuntu or debian, install libgtk2.0-dev , pkg-config, re-run cmake or configure script in function cvshowimage 

this cmake output, can seecocoa:yes, suppose should ok.

any suggestions?

general configuration opencv 3.0.0-rc1 ===================================== --   version control:               unknown -- --   platform: --     host:                        darwin 14.3.0 x86_64 --     cmake:                       3.2.2 --     cmake generator:             unix makefiles --     cmake build tool:            /opt/local/bin/gmake --     configuration:               release -- --   c/c++: --     built dynamic libs?:      yes --     c++ compiler:                /opt/local/bin/c++  (ver 4.8.4) --     c++ flags (release):         -fsigned-char -w -wall -werror=return-type -werror=non-virtual-dtor -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wundef -winit-self -wpointer-arith -wshadow -wsign-promo -wno-narrowing -wno-delete-non-virtual-dtor -fdiagnostics-show-option -wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -o3 -dndebug  -dndebug --     c++ flags (debug):           -fsigned-char -w -wall -werror=return-type -werror=non-virtual-dtor -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wundef -winit-self -wpointer-arith -wshadow -wsign-promo -wno-narrowing -wno-delete-non-virtual-dtor -fdiagnostics-show-option -wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g  -o0 -ddebug -d_debug --     c compiler:                  /opt/local/bin/gcc --     c flags (release):           -fsigned-char -w -wall -werror=return-type -werror=non-virtual-dtor -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wmissing-prototypes -wstrict-prototypes -wundef -winit-self -wpointer-arith -wshadow -wno-narrowing -fdiagnostics-show-option -wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -fvisibility=hidden -o3 -dndebug  -dndebug --     c flags (debug):             -fsigned-char -w -wall -werror=return-type -werror=non-virtual-dtor -werror=address -werror=sequence-point -wformat -werror=format-security -wmissing-declarations -wmissing-prototypes -wstrict-prototypes -wundef -winit-self -wpointer-arith -wshadow -wno-narrowing -fdiagnostics-show-option -wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -fvisibility=hidden -g  -o0 -ddebug -d_debug --     linker flags (release): --     linker flags (debug): --     precompiled headers:         yes -- --   opencv modules: --     built:                 hal core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab python2 --     disabled:                    viz world --     disabled dependency:      - --     unavailable:                 androidcamera cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python3 -- --   gui: --     qt:                          no --     cocoa:                       yes --     opengl support:              no --     vtk support:                 yes (ver 6.2.0) -- --   media i/o: --     zlib:                        /usr/lib/libz.dylib (ver 1.2.5) --     jpeg:                        /opt/local/lib/libjpeg.dylib (ver 90) --     webp:                        /opt/local/lib/libwebp.dylib (ver encoder: 0x0202) --     png:                         /opt/local/lib/libpng.dylib (ver 1.6.17) --     tiff:                        /opt/local/lib/libtiff.dylib (ver 42 - 4.0.3) --     jpeg 2000:                   /opt/local/lib/libjasper.dylib (ver 1.900.1) --     openexr:                     /opt/local/lib/libimath.dylib /opt/local/lib/libilmimf.dylib /opt/local/lib/libiex.dylib /opt/local/lib/libhalf.dylib /opt/local/lib/libilmthread.dylib (ver 1.7.0) --     gdal:                        no -- --   video i/o: --     dc1394 1.x:                  no --     dc1394 2.x:                  yes (ver 2.2.0) --     ffmpeg:                      yes --       codec:                     yes (ver unknown) --       format:                    yes (ver unknown) --       util:                      yes (ver unknown) --       swscale:                   yes (ver unknown) --       resample:                  yes (ver unknown) --       gentoo-style:              yes --     gstreamer: --       base:                      yes (ver 1.4.5) --       video:                     yes (ver 1.4.5) --       app:                       yes (ver 1.4.5) --       riff:                      yes (ver 1.4.5) --       pbutils:                   yes (ver 1.4.5) --     openni:                      no --     openni primesensor modules:  no --     openni2:                     no --     pvapi:                       no --     gigevisionsdk:               no --     quicktime:                   no --     qtkit:                       no --     v4l/v4l2:                    no/no --     ximea:                       no -- --   other third-party libraries: --     use ipp:                     8.2.1 [8.2.1] --          at:                     /users/***/***/opencv-3.0.0-rc1/3rdparty/ippicv/unpack/ippicv_osx --     use ipp async:               no --     use eigen:                   yes (ver 3.2.4) --     use tbb:                     yes (ver 4.3 interface 8003) --     use openmp:                  no --     use gcd                      no --     use concurrency              no --     use c=:                      no --     use cuda:                    no --     use opencl:                  yes -- --   opencl: --     version:                     static --     libraries:                   -framework opencl --     use amdfft:                  no --     use amdblas:                 no -- --   python 2: --     interpreter:                 /opt/local/bin/python2.7 (ver 2.7.9) --     libraries:                   /opt/local/library/frameworks/python.framework/versions/2.7/lib/libpython2.7.dylib (ver 2.7.9) --     numpy:                       /opt/local/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/numpy/core/include (ver 1.9.2) --     packages path:               lib/python2.7/site-packages -- --   python 3: --     interpreter:                 (ver 3.4.3) -- --   python (for build):            /opt/local/bin/python2.7 -- --   java: --     ant:                         no --     jni:                         /system/library/frameworks/javavm.framework/headers /system/library/frameworks/javavm.framework/headers /system/library/frameworks/javavm.framework/headers --     java wrappers:               no --     java tests:                  no -- --   matlab: --     mex:                         /applications/matlab_r2015a.app/bin/mex --     compiler/generator:          not working (bindings not generated) -- --   documentation: --     doxygen:                     /opt/local/bin/doxygen (ver 1.8.9.1) --     plantuml:                    no -- --   tests , samples: --     tests:                       yes --     performance tests:           yes --     c/c++ examples:              no -- --   install path:                  /usr/local -- --   cvconfig.h in:              /users/***/***/opencv-3.0.0-rc1/build -- ----------------------------------------------------------------- -- -- configuring done -- generating done 

solved it. compiling -dwith_qt=on solved (qt4-mac ((i.e.from macports)) must installed)


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -