[MacPorts] #36956: Can not install OpenCV 2.4.3 on Lion (10.7.3)
#36956: Can not install OpenCV 2.4.3 on Lion (10.7.3) ------------------------+-------------------------------- Reporter: heylinus@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: opencv ------------------------+-------------------------------- The latest version of opencv (2.4.3) can't be compiled on Lion (10.7.3) with Xcode 4.2. {{{ $ sudo port install opencv +python26 ... ---> Configuring opencv ---> Building opencv Error: org.macports.build for port opencv returned: command execution failed Please see the log file for port opencv for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port opencv failed }}} The log file is attached. -- Ticket URL: <https://trac.macports.org/ticket/36956> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36956: Can not install OpenCV 2.4.3 on Lion (10.7.3) -------------------------+------------------------ Reporter: heylinus@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: opencv | -------------------------+------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => stromnov@… -- Ticket URL: <https://trac.macports.org/ticket/36956#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36956: Can not install OpenCV 2.4.3 on Lion (10.7.3) -------------------------+------------------------ Reporter: heylinus@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: opencv | -------------------------+------------------------ Comment (by stromnov@…): Replying to [ticket:36956 heylinus@…]:
The latest version of opencv (2.4.3) can't be compiled on Lion (10.7.3) with Xcode 4.2.
It's looks like problem with clang from Xcode 4.2. Please, try to rebuild opencv with other available compiler (sudo port install ... configure.compiler=<compiler>, where <compiler> is one from [wiki:UsingTheRightCompiler]). -- Ticket URL: <https://trac.macports.org/ticket/36956#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36956: Can not install OpenCV 2.4.3 on Lion (10.7.3) -------------------------+------------------------ Reporter: heylinus@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: opencv | -------------------------+------------------------ Comment (by ryandesign@…): Or, try updating to a newer version of Xcode, which includes a newer version of clang. The latest for Lion is Xcode 4.5.2. If you do this, remember to also update the Xcode command line tools, from within the Xcode app's Preferences window's Downloads section. -- Ticket URL: <https://trac.macports.org/ticket/36956#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36956: Can not install OpenCV 2.4.3 on Lion (10.7.3) -------------------------+------------------------ Reporter: heylinus@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: opencv | -------------------------+------------------------ Comment (by ryandesign@…): heylinus, have you made any progress on this issue? -- Ticket URL: <https://trac.macports.org/ticket/36956#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36956: Can not install OpenCV 2.4.3 on Lion (10.7.3) -------------------------+------------------------ Reporter: heylinus@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: opencv | -------------------------+------------------------ Comment (by heylinus@…): Sorry for the delay.[[BR]] Don't have much time playing with the alternative compiler solution.[[BR]] Upgrading the os to 10.7.5 and xcode to 4.5.2 fixed the problem.[[BR]] Thanks a lot for the suggestions.[[BR]] -- Ticket URL: <https://trac.macports.org/ticket/36956#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36956: Can not install OpenCV 2.4.3 on Lion (10.7.3) -------------------------+------------------------ Reporter: heylinus@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: opencv | -------------------------+------------------------ Comment (by ryandesign@…): In the mean time, in r99684 in November, clang got blacklisted in the portfile (but there was no explanation why in the commit message), so when you retried the build in December, clang wasn't being used anymore. So the problem might've been an old version of clang in Xcode 4.2, or it might be any version of clang. Further testing would be required. If only old versions of clang cause a problem, then only old versions should be blacklisted, using the compiler_blacklist_versions portgroup. If any version of clang causes a problem, then the port should include a link to the relevant clang or opencv bug report. -- Ticket URL: <https://trac.macports.org/ticket/36956#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36956: Can not install OpenCV 2.4.3 on Lion (10.7.3) -------------------------+------------------------ Reporter: heylinus@… | Owner: stromnov@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: opencv | -------------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed Comment: r102100 allows XCode 4.3's clang and newer. -- Ticket URL: <https://trac.macports.org/ticket/36956#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts