[MacPorts] #30693: opencv-2.2.0_1.darwin_11.x86_64.tbz2 fails on Lion 10.7.0
#30693: opencv-2.2.0_1.darwin_11.x86_64.tbz2 fails on Lion 10.7.0 ------------------------------+--------------------------------------------- Reporter: saskathex@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: opencv | Port: opencv ------------------------------+--------------------------------------------- Executed a Selfupdate. Cleaned some ports and also cleaned and uninstalled opencv. Reinstalled opencv -> Error Uninstalled opencv once again and reinstalled. Attached the log file -- Ticket URL: <https://trac.macports.org/ticket/30693> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30693: opencv @2.2.0_1 build fails ------------------------------+--------------------------------------------- Reporter: saskathex@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: opencv ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * keywords: opencv => lion -- Ticket URL: <https://trac.macports.org/ticket/30693#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30693: opencv @2.2.0_1 build fails ------------------------------+--------------------------------------------- Reporter: saskathex@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: opencv ------------------------------+--------------------------------------------- Comment(by m.haller@…): opencv 2.3.0 seems to work with lion ... see http://br1ckb0x.fancy- bits.net/blog/?page_id=417 -- Ticket URL: <https://trac.macports.org/ticket/30693#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30693: opencv @2.2.0_1 build fails ------------------------------+--------------------------------------------- Reporter: saskathex@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: opencv ------------------------------+--------------------------------------------- Comment(by balazs.vagvolgyi@…): The issue seems to be an interference with the default `MIN(a,b)` macro in one of the OS X frameworks. Got it working by modifying the following files: OpenCV-2.2.0/modules/core/include/opencv2/core/core.hpp OpenCV-2.2.0/modules/core/include/opencv2/core/operations.hpp The modification involved creating another `MIN` macro in both files, I called it `__MIN(a,b)`: `#define __MIN(a,b) ((a)<(b)?(a):(b))` and replacing all `MIN(...)` calls with `__MIN(...)`. After the changes opencv compiles without errors. -- Ticket URL: <https://trac.macports.org/ticket/30693#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30693: opencv @2.2.0_1 build fails ------------------------------+--------------------------------------------- Reporter: saskathex@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: opencv ------------------------------+--------------------------------------------- Comment(by balazs.vagvolgyi@…): Issue only seems to occur with Xcode 4.2 beta. Compilation succeeds without issues on Xcode 4.1 stable. -- Ticket URL: <https://trac.macports.org/ticket/30693#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30693: opencv: error: non-const static data member must be initialized out of line ------------------------------+--------------------------------------------- Reporter: saskathex@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: opencv ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@…, mgf64mba@…, genegraphy@…, jens.is.located@… (added) Comment: Has duplicates #31602, #31686, #31719. I had been working on an update to opencv 2.3.1; it seemed to have other issues but I'll see what I can do to finish that up. -- Ticket URL: <https://trac.macports.org/ticket/30693#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30693: opencv: error: non-const static data member must be initialized out of line ------------------------------+--------------------------------------------- Reporter: saskathex@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: lion | Port: opencv ------------------------------+--------------------------------------------- Comment(by ryandesign@…): Meanwhile, try building opencv with llvm-gcc-4.2 instead of clang: {{{ sudo port clean opencv sudo port install opencv configure.compiler=llvm-gcc-4.2 }}} -- Ticket URL: <https://trac.macports.org/ticket/30693#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30693: opencv: error: non-const static data member must be initialized out of line ------------------------------+--------------------------------------------- Reporter: saskathex@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: clang | Port: opencv ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * status: new => assigned * cc: ryandesign@… (removed) * cc: shankga@… (added) * keywords: lion => clang * owner: macports-tickets@… => ryandesign@… Comment: Has duplicate #31817 which says that using llvm-gcc-4.2 works. -- Ticket URL: <https://trac.macports.org/ticket/30693#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30693: opencv: error: non-const static data member must be initialized out of line -------------------------------+-------------------------------------------- Reporter: saskathex@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: fixed | Keywords: clang Port: opencv | -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Committed r86572 to make opencv use llvm-gcc-4.2 instead of clang. Filed #31818 to update opencv to latest version. -- Ticket URL: <https://trac.macports.org/ticket/30693#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts