[MacPorts] #21014: OpenCV 1.0.0 does not build on snow leopard

MacPorts noreply at macports.org
Mon Sep 28 22:17:28 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@…):

 The Yahoo OpenCV User Group has instructions for how to build OpenCV 2.0
 using CMake [http://tech.groups.yahoo.com/group/OpenCV/message/66601
 here]. The idea is to use the older version of g++ (4.0). Presumably this
 will work for OpenCV 1.0 also, and will cause 32-bit libraries to be built
 that will properly link to Quicktime and Carbon libraries.

 From the post:

 {{{
 OpenCV 1.2 successfully builds on Snow leopard (10.6) if
 CMAKE_CXX_COMPILER and
 CMAKE_C_COMPILER are respectively set to /usr/bin/g++-4.0 and
 /usr/bin/gcc-4.0
 (same approach as Jason's below)

 And indeed programs only compile successfully when using the old compiler.
 (aka.
 /usr/bin/g++-4.0)

 When using the gcc 4.2 compiler supplied in 10.6 - the errors come out of
 window_carbon.cpp (a boatload of them - it complains of missing symbols,
 which I
 think a little aggressive debugging can easily fix)
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/21014#comment:39>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list