Can't build 2.4.1 with CUDA (Bug #2105)
Description
I am using Ubuntu 12.04. CUDA is correctly installed as the examples in the GPU_SDK work properly. When running "make", the following error shows up.
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_addWeighted.cpp.o Linking CXX executable ../../bin/opencv_perf_core ../../lib/libopencv_core.so.2.4.1: error: undefined reference to 'cuDeviceGetAttribute' collect2: ld returned 1 exit status make[2]: *** [bin/opencv_perf_core] Error 1 make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2 make: *** [all] Error 2
I think it may be a problem linking CUDA. I modified the modules/core/CMakesFiles/opencv_perf_core.dir/link.txt
and added the route to my CUDA libraries and the option -lcuinj
. That lets the installation continue. Doing the same with each error I managed to install OpenCV. Anyhow, python bindings show up the same error regarding cuDeviceGetAttribute
.
Associated revisions
Merge pull request #2105 from ilya-lavrenov:norm
History
Updated by Joel Mckay over 12 years ago
Please note the OS version at the end of your installers (12.04 is not officially supported by nVidia):
./gpucomputingsdk_?.?.?_linux.run ./cudatoolkit_4.2.9_linux_64_ubuntu11.04.run
And provide your cmake configuration along with the following:
cat /etc/ld.so.conf.d/opencv.conf cat /etc/environment
More importantly, does your opencv 2.4.9 source build without cuda options enabled?
Please try an interactive configuration to check paths are setup correctly etc.:
mkdir release cd release cmake -i ..
Cheers,
J
Updated by Diego Boy over 12 years ago
Installing Nvidia's developer drivers did the trick; Vladislav Vinogradov suggested it in yahoo groups.
Thanks for your time,
Diego Boy
Updated by Marina Kolpakova over 12 years ago
- Status changed from Open to Cancelled
- Priority changed from High to Normal
- Category set to gpu (cuda)
- Assignee set to Vladislav Vinogradov
Updated by Andrey Kamaev over 12 years ago
- Target version set to 2.4.2