Opened 12 years ago

Closed 12 years ago

#34451 closed defect (fixed)

opencv: 2.4.0 +universal fails

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: raphael-st (Raphael Straub)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: raphael-st (Raphael Straub)
Port: opencv

Description


Attachments (4)

opencv.main.log.bz2 (9.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.
Portfile.diff (538 bytes) - added by raphael-st (Raphael Straub) 12 years ago.
opencv.main.log (31.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.
Portfile.2.diff (409 bytes) - added by raphael-st (Raphael Straub) 12 years ago.

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: opencv.main.log.bz2 added

comment:1 Changed 12 years ago by raphael-st (Raphael Straub)

Owner: changed from macports-tickets@… to raphael@…
Status: newassigned

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.

Changed 12 years ago by raphael-st (Raphael Straub)

Attachment: Portfile.diff added

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: opencv: upgrading to 2.4.0 failsopencv: 2.4.0 +universal fails

No change. Here's a new log. It builds fine non-universal, just the universal variant doesn't cooperate.

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: opencv.main.log added

comment:3 Changed 12 years ago by raphael-st (Raphael Straub)

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.

Changed 12 years ago by raphael-st (Raphael Straub)

Attachment: Portfile.2.diff added

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

Yes, that does it, thanks.

comment:5 Changed 12 years ago by raphael-st (Raphael Straub)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.