[MacPorts] #24271: opencv build problem
MacPorts
noreply at macports.org
Mon Mar 29 16:00:06 PDT 2010
#24271: opencv build problem
-------------------------------------+--------------------------------------
Reporter: johnny.boldt@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Resolution: duplicate | Keywords:
Port: opencv |
-------------------------------------+--------------------------------------
Changes (by jmr@…):
* keywords: opencv problem build =>
* status: new => closed
* resolution: => duplicate
* port: => opencv
Old description:
> 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.
New description:
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.
}}}
--
Comment:
WikiFormatting... and you reported this already: #24245
--
Ticket URL: <http://trac.macports.org/ticket/24271#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list