[MacPorts] #34451: opencv: upgrading to 2.4.0 fails

MacPorts noreply at macports.org
Mon May 14 23:37:58 PDT 2012


#34451: opencv: upgrading to 2.4.0 fails
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  raphael@…           
     Type:  defect                   |      Status:  assigned            
 Priority:  Normal                   |   Milestone:                      
Component:  ports                    |     Version:  2.0.4               
 Keywords:                           |        Port:  opencv              
-------------------------------------+--------------------------------------
Changes (by raphael@…):

  * owner:  macports-tickets@… => raphael@…
  * status:  new => assigned


Comment:

 The error in your log is

 {{{
 :info:build cd
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_opencv/opencv/work/OpenCV-2.4.0/modules/ts
 && /usr/bin/g++-4.2 -O3 -DNDEBUG -DNDEBUG -fPIC
 -I"/opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_opencv/opencv/work/OpenCV-2.4.0/modules/core/include"
 -I"/opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_opencv/opencv/work/OpenCV-2.4.0/modules/ts"
 -I"/opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_opencv/opencv/work/OpenCV-2.4.0/modules/ts/src"
 -I"/opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_opencv/opencv/work/OpenCV-2.4.0/modules/ts/include"
 -I"/opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_opencv/opencv/work/OpenCV-2.4.0"
 -I"/opt/local/include" -I"/opt/local/include/eigen3" -DHAVE_CVCONFIG_H
 -DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H
 -DCVAPI_EXPORTS -DGTEST_CREATE_SHARED_LIBRARY=1 -DHAVE_CVCONFIG_H
 -DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H -pipe -O2
 -arch x86_64 -arch i386 -Wall -pthread -fomit-frame-pointer -msse -msse2
 -x c++-header -o
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_opencv/opencv/work/OpenCV-2.4.0/modules/ts/precomp.hpp.gch/opencv_ts_Release.gch
 /opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_opencv/opencv/work/OpenCV-2.4.0/modules/ts/precomp.hpp
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "_main", referenced from:
 :info:build       start in crt1.10.6.o
 :info:build ld: symbol(s) not found for architecture x86_64
 :info:build collect2: ld returned 1 exit status
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "_main", referenced from:
 :info:build       start in crt1.10.6.o
 :info:build ld: symbol(s) not found for architecture x86_64
 :info:build collect2: ld returned 1 exit status
 :info:build Undefined symbols for architecture i386:
 :info:build   "_main", referenced from:
 :info:build       start in crt1.10.6.o
 :info:build ld: symbol(s) not found for architecture i386
 :info:build collect2: ld returned 1 exit status
 }}}

 The problem is that precompiled headers are used although the universal
 variant is chosen. The log shows that the patch {{{patch-pch-
 CMakeLists.txt.diff}}} to turn off precompiled headers in the universal
 variant is not applied. Please try the attached patch.

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


More information about the macports-tickets mailing list