Archive 17/01/2023.

CMAKE fails to build

NiteLordz

I have Visual Studio 2015 and 2017 installed on my machine. When i go to run “cmake_vs2015.bat” i get the following error

“No CMAKE_CXX_COMPILER could be found”

I know that the visual studio’s are installed properly, as they both compile out other c++ applications an engines.

Ideas or thoughts…

1vanK

Create bat file (fix pathes):

set "PATH=c:\Program Files (x86)\Git\bin;c:\Programs\Cmake\bin;c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\;c:\Windows\System32"
Urho3D/cmake_vs2015.bat Build -DURHO3D_OPENGL=ON -DURHO3D_SAMPLES=OFF -DURHO3D_LUA=OFF -DURHO3D_STATIC_RUNTIME=ON -DURHO3D_TOOLS=0
NiteLordz

that did not solve the problem

Lumak

I had a similar problem last year when I installed vs2015 for the 1st time. It turns out the default express install for 2015 didn’t include tools for me and I had to do a custom install to correct it.

NiteLordz

It would appear that the base install for VS 2017 doesn’t include some of the C++ tools. Installing and will report back.

rasteron

I just got the latest commit to cmake and build with VS2015 earlier, it must have something to do with your setup.

yushli1

Try cmake_clean.bat first.

weitjong

I remember the base installation for VS2015 does not include C++ development tool by default. I think the default is web development now.