Ask Your Question

Revision history [back]

Error while building opencv from source on Windows

Here is my setup.

Attached is the build log.

To pass upload it was renamed to png. Must be renamed from png to txt to view it: C:\fakepath\build.png

Here is the first build error:

7>C:/workspace/opencv/opencv/modules/core/src/cuda/ fatal error C1083: Cannot open include file: 'opencv2/core/cuda.hpp': No such file or directory 5> jerror.c 7>CUSTOMBUILD : nvcc warning : The 'compute_11', 'compute_12', 'compute_13', 'sm_11', 'sm_12', and 'sm_13' architectures are deprecated, and may be removed in a future release. 7>
7> CMake Error at (message): 7> Error generating 7> C:/workspace/opencv/build/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/Debug/


The cuda.hpp file exists on my disk at this location: C:\workspace\opencv\opencv\modules\core\include\opencv2\core\cuda.hpp

Seems that all .cu files fail compilation because they cannot find header files. All .cpp files compile just fine. The project file have the correct include path

Questions / recommendations

  • Did someone made it work on Windows 8 with Visual Studio 2012?
  • Is it correct to use the latest code from git repository? If not any tag recommended?
  • What am I missing? Any input or suggestions are welcome.

Thank you C:\fakepath\build.png