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.lib' opencv_imgcodecs C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\imgcodecs\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_core310d.lib' opencv_flann C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\flann\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_imgcodecs310d.lib' opencv_videoio C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\videoio\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_videoio310d.lib' opencv_highgui C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\highgui\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_cudaarithm310d.lib' opencv_test_cudaarithm C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\cudaarithm\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_video310d.lib' opencv_shape C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\shape\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_ml310d.lib' opencv_objdetect C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\objdetect\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_flann310d.lib' opencv_features2d C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\features2d\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_highgui310d.lib' opencv_perf_videoio C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\videoio\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_highgui310d.lib' opencv_test_core C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\core\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_video310d.lib' opencv_perf_video C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\video\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_features2d310d.lib' opencv_calib3d C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\calib3d\LINK 1
Error LNK1104 cannot open file '....\lib\Debug\opencv_photo310d.lib' opencv_perf_photo C:\Users\b55880\Desktop\khronos\opencv\build_on\modules\photo\LINK 1
....
....
And I set all the projects' configuration as Debug and x64. which step I might be wrong