Opened 11 years ago
Closed 4 years ago
#42712 closed defect (duplicate)
opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2
Reported by: | ivano.ras@… | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: | opencv |
Description (last modified by mf2k (Frank Schima))
I'm running MacPorts on a retina MacBookPro with GeForce GT 650M. I've amended the portfile to compile cuda code. All seems to be fine until after half an hour building I get
---> 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_tarballs_ports_graphics_opencv/opencv/main.log Error: Unable to upgrade port: 1
Log file attached. Thanks.
Attachments (1)
Change History (12)
Changed 11 years ago by ivano.ras@…
comment:1 Changed 11 years ago by ivano.ras@…
comment:2 Changed 11 years ago by ivano.ras@…
I've tested it against the normal CUDA Driver Version 5.5.28 and it doesn't work either.
comment:3 Changed 11 years ago by ivano.ras@…
And, I've now tested it against the latest CUDA Driver Version 5.5.47. The installation doesn't even start here.
comment:4 Changed 11 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | opencv removed |
Owner: | changed from macports-tickets@… to stromnov@… |
Priority: | High → Normal |
The Priority field is for use by Macports team members' use only. In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers opencv
).
comment:5 Changed 11 years ago by stromnov (Andrey Stromnov)
AFAIK, it's a long lasting problem with CUDA binaries and CUDA compiler (ptcc).
You can try to compile with configure.compiler=macports-gcc-4.8 or configure.compiler=macports-clang-3.3 arguments.
comment:6 Changed 11 years ago by ivano.ras@…
Many thanks stromnov I'll give that a shot. Regarding the lasting problem, I have to disagree because it was working fine 4 months ago in OS X Mountain Lion and this unfixed problem is really hindering Mac users from using CUDA code... Cheers. Ivano
comment:7 Changed 11 years ago by stromnov (Andrey Stromnov)
It works perfectly when you using right compiler toolchain (gcc|cl + nvcc).
Macports use clang by default, nvcc use gcc (http://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/). So clang++ and nvcc potentially can produce incompatible object files.
comment:8 Changed 11 years ago by ivano.ras@…
Yes, I'm well aware of the clang/gcc discrepancy. It's just that if I have compile things myself, what's the point of MacPorts anyway? I'll follow your suggestions though. Cheers. Ivano
comment:9 Changed 4 years ago by mascguy (Christopher Nielsen)
Given that we don't support opencv 2.x, can this be closed?
comment:10 Changed 4 years ago by mascguy (Christopher Nielsen)
This ticket is no longer relevant, as we don't have an OpenCV 2 port. Can someone close?
comment:11 Changed 4 years ago by mf2k (Frank Schima)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Let's call this a duplicate of #41333.
I've got the CUDA Driver Version: 6.0.26 installed, by the way. The main.log attached refers to this version.