#24245: opencv installation fail ---------------------------------------+------------------------------------ Reporter: johnny.boldt@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 1.8.2 Keywords: opencv open cv deprecated | Port: opencv ---------------------------------------+------------------------------------ Hi. I installed opencv. It worked but i wanted to re-install it and had MANY problems. Here's where i'm at. sudo port install -d opencv ---> Computing dependencies for opencv ---> Building opencv Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/work/OpenCV-2.0.0" && /usr/bin/make -j1 all " returned error 2 Command output: highgui/cvcap_qt.cpp:518: warning: 'GetPixRowBytes' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:376) highgui/cvcap_qt.cpp:524: warning: 'UnlockPixels' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:196) highgui/cvcap_qt.cpp:524: warning: 'UnlockPixels' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:196) highgui/cvcap_qt.cpp: In function 'int icvOpenCamera_QT(CvCapture_QT_Cam*, int)': highgui/cvcap_qt.cpp:981: warning: 'DisposeGWorld' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:226) highgui/cvcap_qt.cpp:981: warning: 'DisposeGWorld' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:226) highgui/cvcap_qt.cpp:996: warning: 'GetGWorldPixMap' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:480) highgui/cvcap_qt.cpp:996: warning: 'GetGWorldPixMap' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:480) highgui/cvcap_qt.cpp:998: warning: 'LockPixels' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:184) highgui/cvcap_qt.cpp:998: warning: 'LockPixels' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:184) highgui/cvcap_qt.cpp:999: warning: 'GetPixBaseAddr' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:364) highgui/cvcap_qt.cpp:999: warning: 'GetPixBaseAddr' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:364) highgui/cvcap_qt.cpp:999: warning: 'GetPixRowBytes' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:376) highgui/cvcap_qt.cpp:999: warning: 'GetPixRowBytes' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:376) highgui/cvcap_qt.cpp: In function 'int icvClose_QT_Cam(CvCapture_QT_Cam*)': highgui/cvcap_qt.cpp:1039: warning: 'DisposeGWorld' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:226) highgui/cvcap_qt.cpp:1039: warning: 'DisposeGWorld' is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QDOffscreen.h:226) mv -f .deps/lib_highgui_la-cvcap_qt.Tpo .deps/lib_highgui_la-cvcap_qt.Plo /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -I../include/opencv -I/opt/local/include -fast -g -O2 -arch i386 -MT lib_highgui_la- window_carbon.lo -MD -MP -MF .deps/lib_highgui_la-window_carbon.Tpo -c -o lib_highgui_la-window_carbon.lo `test -f 'highgui/window_carbon.cpp' || echo './'`highgui/window_carbon.cpp libtool: compile: /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -I../include/opencv -I/opt/local/include -fast -g -O2 -arch i386 -MT lib_highgui_la-window_carbon.lo -MD -MP -MF .deps/lib_highgui_la- window_carbon.Tpo -c highgui/window_carbon.cpp -fno-common -DPIC -o .libs /lib_highgui_la-window_carbon.o mv -f .deps/lib_highgui_la-window_carbon.Tpo .deps/lib_highgui_la- window_carbon.Plo /bin/sh ../libtool --tag=CXX --mode=compile /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -I../include/opencv -I/opt/local/include -fast -g -O2 -arch i386 -MT lib_highgui_la- grfmt_imageio.lo -MD -MP -MF .deps/lib_highgui_la-grfmt_imageio.Tpo -c -o lib_highgui_la-grfmt_imageio.lo `test -f 'highgui/grfmt_imageio.cpp' || echo './'`highgui/grfmt_imageio.cpp libtool: compile: /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -I../include/opencv -I/opt/local/include -fast -g -O2 -arch i386 -MT lib_highgui_la-grfmt_imageio.lo -MD -MP -MF .deps/lib_highgui_la- grfmt_imageio.Tpo -c highgui/grfmt_imageio.cpp -fno-common -DPIC -o .libs /lib_highgui_la-grfmt_imageio.o highgui/grfmt_imageio.cpp: In member function 'virtual bool cv::ImageIODecoder::readData(cv::Mat&)': highgui/grfmt_imageio.cpp:116: error: 'kCGColorSpaceGenericRGBLinear' was not declared in this scope highgui/grfmt_imageio.cpp: In member function 'virtual bool cv::ImageIOEncoder::write(const cv::Mat&, const std::vector<int, std::allocator<int> >&)': highgui/grfmt_imageio.cpp:278: error: 'kCGColorSpaceGenericRGBLinear' was not declared in this scope make[2]: *** [lib_highgui_la-grfmt_imageio.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 -- Ticket URL: <http://trac.macports.org/ticket/24245> MacPorts <http://www.macports.org/> Ports system for Mac OS