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
Serializing Opencv Mat_<Vec3F>
C++ - <Unresolved Overloaded Function Type>
Thread Safety of Std::Map for Read-Only Operations
C++ Comparison of Two Double Values Not Working Properly
Tcp/Ip Connection on a Specific Interface
Why How to Call Base Template Class Method from Derived Class
Comparing Character Arrays and String Literals in C++
How to Implement Coroutines in C++
Should I Inherit from Std::Exception
Address-Of Operator (&) VS Reference Operator(&)
How Computer Does Floating Point Arithmetic
Undefined Reference to Winmain (C++ Mingw)
Convert a Unicode String in C++ to Upper Case
How Are Local and Global Variables Initialized by Default
Getting Big Random Numbers in C/C++
How to Use a Timer in C++ to Force Input Within a Given Time
C++ Visual Studio "Non-Standard Syntax; Use '&' to Create a Pointer to Member"