title: Build OpenCV with CUDA
body: <p>I am trying to build the openCV libraries with visual c++ 2008 express edition. I downloaded the latest code from the opencv svn server and used CMake 2.8 to create the projects. I installed the "CUDA Toolkit 32bit" and the "NPP library 32bit" in the default directory but everytime I try to build the libraries I always get the following error:</p>
  
  <pre><code>26&gt;### Assertion failure at line 2135 of ../../be/cg/NVISA/cgtarget.cxx:
  26&gt;### Compiler Error in file C:/Users/[...]/AppData/Local/Temp/tmpxft_00000ca4_00000000-19_surf.compute_20.cpp3.i during Code_Expansion phase:
  26&gt;### asm m constraint must have simple variable
  26&gt;nvopencc ERROR: C:/Program Files (x86)/NVIDIA GPU Computing Toolkit/CUDA/v3.2/bin/../open64/lib//be.exe returned non-zero status 1
  26&gt;CMake Error at CMakeFiles/cuda_compile_generated_surf.cu.obj.cmake:256 (message):
  26&gt;  Error generating file
  26&gt;  B:/OCV/modules/gpu/Release/cuda_compile_generated_surf.cu.obj
  26&gt;Project : error PRJ0019: Ein Tool hat einen Fehlercode aus folgender Quelle zurückgegeben: "Building NVCC (Device) object modules/gpu/Release/cuda_compile_generated_surf.cu.obj"
  26&gt;Das Buildprotokoll wurde unter "file://b:\OCV\modules\gpu\opencv_gpu.dir\Release\BuildLog.htm" gespeichert.
  26&gt;opencv_gpu - 1 Fehler, 0 Warnung(en)
  </code></pre>
  
  <p>I am building the libraries on my Acer Aspire 5742g with the NVIDIA Geforce GT 540M and I don't know why it doesn't want to work. I already built the libraries in the same way on my PC with a GTX 280. </p>