Opened 15 years ago

Closed 15 years ago

#24271 closed defect (duplicate)

opencv build problem

Reported by: johnny.boldt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: opencv

Description (last modified by jmroot (Joshua Root))

osx 10.4.11 MacBook Pro

I installed opencv. I went to install it again because I think my version was outdated and this happened. Now my old one is corrupt and i can't use the new one. I spent all weekend trying to fix this via google. please help.

--->  Fetching opencv
--->  Attempting to fetch OpenCV-2.0.0.tar.bz2 from http://internap.dl.sourceforge.net/opencvlibrary
--->  Verifying checksum(s) for opencv
--->  Extracting opencv
--->  Configuring 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

Error: Status 1 encountered during processing.

Change History (1)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: opencv problem build removed
Port: opencv added
Resolution: duplicate
Status: newclosed

WikiFormatting... and you reported this already: #24245

Note: See TracTickets for help on using tickets.