Ask Your Question
0

building error: opencv3.1 with VS2015, 64-bit, CMake 3.5.2

asked 2016-05-18 03:11:13 -0600

katharine_fcy gravatar image

updated 2016-05-18 03:44:05 -0600

berak gravatar image

when I am building opencv 3.1 with VS2015, in my own build directory, I double click OpenCV.sln, and then build the INSTALL project. but I got many errors.

Severity    Code    Description Project File    Line    Suppression State
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_core C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudaarithm   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudawarping  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudafilters  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudabgsegm   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudaimgproc  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudacodec    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_photo    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudafeatures2d   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudalegacy   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudastereo   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudaoptflow  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_cudaobjdetect    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_stitching    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_superres C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_test_cudev   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   MSB6006 "cmd.exe" exited with code 1.   opencv_videostab    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  171 
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_core310d.lib'  opencv_ml   C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\ml\LINK 1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_core310d.lib'  opencv_imgproc  C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\imgproc\LINK    1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc310d.lib'   opencv_video    C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\video\LINK  1   
Error   LNK1104 cannot open file '..\..\lib\Debug\opencv_imgproc310d ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-05-18 09:50:35 -0600

Because the OpenCV solution was not built. The INSTALL project can be built only after other projects are compiled. To solve this, you have to choose Project menu item, then Build Solution (or just press F7) and wait until all projects are compiled. After that, if there is no error, just choose the INSTALL project and Build Only it to have .lib and .dll files for using with your applications.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-05-18 03:11:13 -0600

Seen: 1,547 times

Last updated: May 18 '16