Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#32493 closed defect (invalid)

OpenCV 2.3.1 build fails

Reported by: orgicus@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: opencv

Description

Hello,

I am trying to install OpenCV via macports and have ran into errors. macports downloaded and installed all dependencies, but failed to build opencv:

--->  Building opencv
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for opencv is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

I've tried cleaning the port and installing again, but had the same issue. main.log attached.

I am using osx 10.6.8 (upgraded from 10.5, re-installed Xcode and MacPorts-1.9.2-10.6-SnowLeopard )

Unfortunately I'm can't understand most of the log, so don't know what I'm doing wrong. Any hints/tips will help

Attachments (1)

main.log (874.8 KB) - added by orgicus@… 13 years ago.
main.log for opencv port install

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by orgicus@…

Attachment: main.log added

main.log for opencv port install

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Port: opencv added
Resolution: invalid
Status: newclosed

The log says:

:info:build ld: warning: in /usr/lib/libjpeg.dylib, file was built for i386 which is not the architecture being linked (x86_64)

Please remove that file. It is not a part of OS X and it is interfering with the build. After you remove it, clean opencv and try again.

sudo port clean opencv

In the future please do not install 3rd-party libraries into system directories.

comment:2 Changed 13 years ago by orgicus@…

I've done as advised and install was successful. Thank you very much!

Note: See TracTickets for help on using tickets.