#32493: OpenCV 2.3.1 build fails --------------------------------+------------------------------------------- Reporter: orgicus@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: opencv | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid * port: => opencv Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/32493#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS