[MacPorts] #34451: opencv: upgrading to 2.4.0 fails
#34451: opencv: upgrading to 2.4.0 fails -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: opencv -------------------------------------+-------------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/34451> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#34451: opencv: 2.4.0 +universal fails -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: raphael@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: opencv -------------------------------------+-------------------------------------- Comment(by ryandesign@…): No change. Here's a new log. It builds fine non-universal, just the universal variant doesn't cooperate. -- Ticket URL: <https://trac.macports.org/ticket/34451#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34451: opencv: 2.4.0 +universal fails -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: raphael@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: opencv -------------------------------------+-------------------------------------- Comment(by raphael@…): Your log says: {{{ :info:configure Manually-specified variables were not used by the project: :info:configure :info:configure USE_PRECOMPILED_HEADERS }}} So, the if statement in the portfile works, but {{{USE_PRECOMPILED_HEADERS}}} is ignored. The new patch in the attachment should do the right thing. -- Ticket URL: <https://trac.macports.org/ticket/34451#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34451: opencv: 2.4.0 +universal fails -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: raphael@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: haspatch | Port: opencv -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * keywords: => haspatch Comment: Yes, that does it, thanks. -- Ticket URL: <https://trac.macports.org/ticket/34451#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34451: opencv: 2.4.0 +universal fails --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: raphael@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: haspatch Port: opencv | --------------------------------------+------------------------------------- Changes (by raphael@…): * status: assigned => closed * resolution: => fixed Comment: r93131 -- Ticket URL: <https://trac.macports.org/ticket/34451#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts