Cmake: Failed to Run Msbuild Command: Msbuild.Exe

CMake failed to run MSBUILD.exe command error

In CMake-gui: After you selected the source & binary folder and click "configure" it will ask you which version of the compiler to use. Make sure that you select the correct one

For example, if you have "Visual Studio 2015" installed and you select "Visual Studio 2017", you will run into the "Failed to run MSBuild command:" error.

If you did select the wrong one, either delete the binaries-folder or simply use another binaries-folder - and then click configure and select the correct compiler.

Failed to run MSBuild.exe

your version of VS doesn't match with the required version. See:

I am running visual studio 15 2017

and,

INFO: CMAKE_GENERATOR = "Visual Studio 14 2015 Win64"

Now, you should change your version to VS 15 but as I recall VS 15 won't support "caffe" and/or will be buggy. Therefore, you should get VS 14 (Visual Studio 2015).
In fact, you don't even need to install the whole thing, install MSBuild.exe (a.k.a Build Tools) for 2015 version, add the path of .exe to system variables if it's not done automatically. The path should probably be C:\Program Files (x86)\MSBuild\14.0\Bin and that should be enough to fix the issue.

P.S. Additionally, change

INFO: PYTHON_VERSION = 2

to,

INFO: PYTHON_VERSION = 3

because you are using Python 3.5

P.P.S. If you didn't follow the instructions for GPU support, you're gonna need to go back and do or change

INFO: CPU_ONLY = 0

to,

INFO: CPU_ONLY = 1

Good luck.



Related Topics



Leave a reply



Submit