Ask Your Question
0

compiling opencv @2.4.6.1_2+python27 with CUDA support throws an error after upgrading to OS X 10.9

asked 2013-10-27 04:59:43 -0600

Ivano gravatar image

updated 2013-11-15 12:36:14 -0600

berak gravatar image

Hi, I've just downloaded the new NVIDIA CUDA library from https://developer.nvidia.com/cuda-downloads for OS X Mavericks and edited the MacPorts OpenCV Portfile with CUDA support on. All seems to be fine until the compiler bumps into an error at 92% of compilation. I reckon it may be down to some changes to the new CUDA library changes for MacOS 10.9. Any idea about how to fix it would be greatly appreciated. Many thanks.

:info:build [ 92%] Building CXX object modules/gpu/CMakeFiles/opencv_gpu.dir/src/warp.cpp.o
:info:build cd /opt/local/var/macports/build
/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv
/opencv/work/opencv-2.4.6.1/modules/gpu && /usr/bin/clang++   -DCVAPI_EXPORTS -DHAVE_ALLOCA 
-DHAVE_ALLOCA_H -DHAVE_CVCONFIG_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H -Dopencv_gpu_EXPORTS 
-pipe -Os -arch x86_64    -fsigned-char -W -Werror=return-type -Werror=address -Wformat -Werror=format-security  -Wmissing-prototypes -Wstrict-prototypes  -Winit-self -Wpointer-arith  -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -fno-omit-frame-pointer -msse -msse2 -msse3 -Wno-undef -Wno-missing-declarations -Wno-shadow -Wno-unused-parameter  -DNDEBUG  -DNDEBUG -arch x86_64 -fPIC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/gpu/src/nvidia/NPP_staging -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/gpu/src/nvidia/core -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/gpu/src/nvidia -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/gpu/src/cuda -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/legacy/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/ml/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/photo/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/video/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/objdetect/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/calib3d/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/features2d/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/highgui/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/flann/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/imgproc/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/core/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/gpu -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/gpu/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6.1/modules/gpu/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.6 ...
(more)
edit retag flag offensive close merge delete

Comments

Upgrading opencv to 2.4.7_1 made matters worse actually. I can't even get to start compiling the cuda code now. What the hell.

Ivano gravatar imageIvano ( 2013-11-15 07:13:06 -0600 )edit

In general it is much better to load your build logs to an external site such as gist.github.com. Right now because of the long build log your post is hardly readable.

jensenb gravatar imagejensenb ( 2013-12-03 08:32:45 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-12-03 08:30:59 -0600

jensenb gravatar image

This is currently not possible at the moment because Cuda for 10.9 currently links against libstdc++, whereas most packages for OS X link against libc++ (the default on 10.9). You can try rebuild OpenCV and all its dependencies by hand, in order to link against libstdc++, but I doubt you will be successful. I suggest opening a bug report at the Cuda developer zone.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-27 04:59:43 -0600

Seen: 633 times

Last updated: Dec 03 '13