[MacPorts] #21014: OpenCV 1.0.0 does not build on snow leopard
MacPorts
noreply at macports.org
Thu Oct 1 14:17:46 PDT 2009
#21014: OpenCV 1.0.0 does not build on snow leopard
------------------------------------------+---------------------------------
Reporter: grundmann.matthias@… | Owner: stante@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.0
Keywords: LP64 | Port: opencv
------------------------------------------+---------------------------------
Comment(by njbutko@…):
As of Sept. 30 OpenCV 2.0 is "Released." I don't know how this is
different from the "1.2 Beta Release" from two weeks ago, but you can
download the release here:
[http://sourceforge.net/projects/opencvlibrary/files/
http://sourceforge.net/projects/opencvlibrary/files/]
This builds for me on Snow Leopard when following the instructions on the
OpenCV website:
From [http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port
http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port]:
{{{
Building using the new CMake build system
===========================
mkdir opencv/build
cd opencv/build
cmake ..
ccmake .
If you are on Snow Leopard, hit 't' to toggle advanced mode.
Set
CMAKE_CXX_COMPILER="/usr/bin/g++-4.0"
and
CMAKE_C_COMPILER="/usr/bin/gcc-4.0"
and then continue with the following steps.
Hit 'c' to configure. Hit 'g' to generate the config file and exit ccmake.
make -j8
sudo make install
}}}
All of my OpenCV programs seem to work as expected, including the carbon
windowing system and the quicktime video capture.
The caveat is that when you build programs linking to OpenCV, you must
pass in the -arch i386 flag to g++ (build explicitly in 32-bit mode).
--
Ticket URL: <http://trac.macports.org/ticket/21014#comment:41>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list