Opencv + cuda 5.0: "nvcc : fatal error : '-ccbin': expected a number"

Hi,
I’m trying to use Cuda 5.0 and opencv 2.4.8 togather. I’ve made a 2 files : main.cpp and Kernels.cu.

I’m using visual studio 2010 express on a 64bits PC. when i try to compile for the project I get the eror: “nvcc : fatal error : ‘-ccbin’: expected a number”.

What I’m trying to do is to use opencv to load images and videos, then do the image processing in the GPU by lunching kernels.

I’d like to know if it’s possible to do that (opencv + kernels). then if it’s possible how can i fixe this probleme.
Thank you for your help.

VS 2010 Express does not support 64 bit CUDA applications by default, which might be related to the error you’re seeing. If you intend to compile 64 bit apps, do this:
http://stackoverflow.com/questions/8900617/how-can-i-setup-nvcc-to-use-visual-c-express-2010-x64-from-windows-sdk-7-1

That being said, with a quick Google search, it seems your issue is rather simple, see below for possible solutions.

Most likely this first one will fix the issue you’re having:
http://stackoverflow.com/questions/13396878/cuda-visual-studio-2010-express-build-error

The rest are related/for understanding purposes of why you get the error:

http://social.technet.microsoft.com/Forums/en-US/c97adc16-0de1-4ae3-8628-044c9030b2fc/compiling-64bit-cuda-using-windows-sdk-71-and-vc-2010-express?forum=Offtopic

http://stackoverflow.com/questions/9428628/link-error-while-compiling-cuda-from-command-prompt