Ask Your Question

Revision history [back]

Build OpenCV 3.0 with Visual Studio 2013 ?

Fail to build Hi, all:

OS: Windows 8.1 IDE: VS2013 (VC12) OpenCV: 3.0-alpha Cuda: 6.5

I just don't want to use those built libraries already extracted from 3.0-alpha, but I really hope to use the libraries built manually. Therefore, I used CMake 3.0.1 to have everything configured and generate the entire solution for OpenCV 3.0 alpha.

However, when I tried to build the core module, namely, opencv_core, I obtained the following error message:

4>  'ptxas' is not recognized as an internal or external command,
4>  operable program or batch file.

4>  CMake Error at (message):
4>    Error generating file
4>    C:/Packages/computervision/opencv-3.0.0/rebuild/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/Debug/

4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.

It looks like VS2013 is not able to produce .cu.obj file correctly. Can anybody give me a hand?

Thank you ... Best Regards Pei