Opened 12 years ago
Closed 12 years ago
#36956 closed defect (fixed)
Can not install OpenCV 2.4.3 on Lion (10.7.3)
Reported by: | heylinus@… | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | ||
Port: | opencv |
Description
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.
Attachments (1)
Change History (8)
Changed 12 years ago by heylinus@…
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to stromnov@… |
---|
comment:2 Changed 12 years ago by stromnov (Andrey Stromnov)
Replying to 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 UsingTheRightCompiler).
comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
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.
comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
heylinus, have you made any progress on this issue?
comment:5 Changed 12 years ago by heylinus@…
Sorry for the delay.
Don't have much time playing with the alternative compiler solution.
Upgrading the os to 10.7.5 and xcode to 4.5.2 fixed the problem.
Thanks a lot for the suggestions.
comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
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.
comment:7 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
r102100 allows XCode 4.3's clang and newer.
log file for port opencv