Error while compiling with VS 17

asked 2019-10-11 14:47:56 -0600

SeFle gravatar image

I´m trying to compile OpenCV 4.1.1 with Cuda 10.1, cuDNN, IPP, MKL and TBB on Visual Studio 2017 x64 build. It always fails in the build state with the same error for every project:

27>cuda_perf.cpp
27>cuda_test.cpp
27>ocl_perf.cpp
27>ocl_test.cpp
29>opencv_annotation.cpp
30>calibController.cpp
30>calibPipeline.cpp
30>frameProcessor.cpp
30>main.cpp
28>average_hash.cpp
28>block_mean_hash.cpp
28>color_moment_hash.cpp
30>parametersController.cpp
30>rotationConverters.cpp
28>img_hash_base.cpp
29>LINK : fatal error LNK1104: cannot open file 'x64.lib'

So far I´ve tried to build it in release/debug mode on VS 2017 Community and debug on a fresh install of VS 2017 Enterprise with the same outcome. I´m getting burned out on that one, especially with the long compiling time, so if anyone has a tip; it´s greatly appreciated.

VS Error log VS Output

edit retag flag offensive close merge delete

Comments

Hi, do you have the full output from cmake and visual studio and maybe your cmake commands if you issue them from the command line? Have you tried building from a stable release say 4.1.0 or 4.1.1 instead of the latest commit on the master branch? Have you tried building without CUDA support and/or without the contrib repository? Why are you building with IPP the ippicv lib should be download by cmake scripts during configuration and present in the 3rdparty\ippicv\ippicv_win\icv\lib\intel64 directory?

Have you tried building with Ninja and restricting the ptx and/or bin architectures you are building CUDA for to those on your machine to reduce the build time?

cudawarped gravatar imagecudawarped ( 2019-10-12 06:57:04 -0600 )edit