Ask Your Question
0

Error Installing on Windows 10 with cmake

asked 2017-04-16 17:29:13 -0600

reddog gravatar image

I am trying to install OpenCV on Windows 10, and get an error when running cmake, text below:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:  
Build flags: 
Id flags:  

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:  
Build flags: 
Id flags:  

The output was:
The system cannot find the file specified

I am using Visual Studio 2015. I'm not sure exactly what Cmake does, I believe it compiles all the OpenCV modules into a .dll? Is it possible to just use precompiled libraries, or just include the OpenCV modules I want to use in my code? I am interested in computer vision, not necessarily the intimate details of software development systems, and want the simplest way to get OpenCV. Thanks for any help you can provide.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-16 17:46:42 -0600

berak gravatar image

there are prebuild opencv libs for vs2015 available (all libs packed into a single opencv_world320.lib)

on the other hand, if you want to build your own(and add hardware support, like tbb or cuda), try running cmake-gui. first thing it should do is, open a box, where you can pass the path to cl.exe(the required c++ / c compiler)

edit flag offensive delete link more

Comments

Thanks, now it gets partway through to:

CMake Error at CMakeLists.txt:11 (include): include could not find load file:

cmake/OpenCVMinDepVersions.cmake

CMake Error at CMakeLists.txt:102 (include): include could not find load file:

cmake/OpenCVUtils.cmake

CMake Error at CMakeLists.txt:105 (ocv_update): Unknown CMake command "ocv_update".

Configuring incomplete, errors occurred!

I would like to compile them to take advantage of Cuda, but if I can't, so be it.

reddog gravatar imagereddog ( 2017-04-16 19:38:14 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-16 17:29:13 -0600

Seen: 1,391 times

Last updated: Apr 16 '17