Open mjmg opened 6 years ago
Thank you for reporting! We're inspecting the issue, and will get back to you as soon as possible.
@mjmg There seem to be issues with CUDA 9.1 and Visual C++ 2017 Compiler. I got the same problem as yours. You can find related information on https://github.com/opencv/opencv/issues/9908 and https://github.com/ethereum-mining/ethminer/issues/37. There are two solutions:
Use Visual Studio 2017 installer to install Visual Studio 2015 v140 toolset. Then build with cmake .. -G "Visual Studio 15 2017 Win64" -Tv140
.
Change the CUDA_HOST_COMPILER parameter manually to the path of cl.exe: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\cl.exe.
You can set the parameter on cmake-gui or add set(CUDA_HOST_COMPILER "your path to cl.exe")
in your CMakeList.txt.
Both solutions are useful for me. Before try the solutions, remember to update the code to the latest version. If you have problems building all projects together on visual studio, try build each project separately. Thank you.
I get the following errors when building Microsoft Visual Studio Solution
Build system is Windows 10 Home 1709, MS Visual Studio 2017 Community, CUDA 9.1 Development Environment. CMAKE is bundled from Visual Studio install:
CMAKE was invoked as:
Complete build message as follows: