I keep getting this error and can't get rid of it: Linking CXX executable ../../bin/opencv_perf_core ../../lib/libopencv_core.so.2.4.2: undefined reference to `cuDeviceGetAttribute'
I have installed CUDA & CUDA SDK in my ubuntu 12.04 laptop and the cudalibrary and c examples are working perfectly. The problem comes when trying to compile OpenCV 2.4.2 with CUDA=ON.
Any ideas are welcome! Thank you.