I’m trying to either create a c++ project or generate visual studio project files, and always gets an error like the one below.
In UE editor settings, I have 3 editors available:
“Visual Studio”, “Visual Studio 2015”, and “Visual Studio 2017”
(note I have removed visual studio 2015, and only have 2017 left)
doesn’t matter which one I choose, the error (and the compiler path) is the same.
Also note there is currently no “Microsoft Visual Studio 14.0” directory on my computer,
so the path is completely incorrect.
I also don’t have any environment variables regarding the path.
How do I tell UE where visual studio is installed, or where the compiler is?
or how does it detect it?
The error:
Running D:/Program Files/Epic Games/UE_4.16/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject2 Development Win64 -project="D:/dev/games/MyProject2/MyProject2.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject2 (no existing makefile)
@progress push 5%
Parsing headers for MyProject2Editor
Running UnrealHeaderTool "D:\dev\games\MyProject2\MyProject2.uproject" "D:\dev\games\MyProject2\Intermediate\Build\Win64\MyProject2Editor\Development\MyProject2Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProject2Editor in 10.0282773 seconds
@progress pop
ERROR: No 32-bit compiler toolchain found in D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe
I found a trick:
I’ve created a non-c++ project (which opens fine), I then added a c++ class, at which point I got a c++ project opened in the editor.
I then changed the toolchain where you said - but I’m still getting the same error:
Running D:/Program Files/Epic Games/UE_4.16/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="D:/dev/games/TestComposition/TestComposition.uproject" -game -rocket -progress
Discovering modules, targets and source code for project...
ERROR: No 32-bit compiler toolchain found in D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe
which inside of it was an entry named “14.0” with the non-existing path.
I deleted it, created a new one with “15.0” with the correct path ( “D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC” for me ), restarted the editor - and it now works.
p.s.
The above registry key path is just the third path UE will look for; the correct order is:
Hey bud. I have a fix for you man. I know this is way later down the track but. If you have that error it means it cannot find what it needs in the location.
I had this error when I had the wrong file path. Jump into VC# which is the next registry below and copy and past one of those file directories into the newly created or edited 15.0 or 17.0 (17.0 in my case) and past the path from the other registry. This fixed my issue.
This didn’t work. Either that or I did it wrong. The latter is 100% likely. In the registry, I deleted 14.0, made a new key, but couldn’t rename it to anything. HELPPPPPPPPPP.
Ok, so I was dumb and was creating the wrong value… Fixed that part. The real problem is that my path is different than yours. inside of G:\Program Files (x86)\Microsoft Visual Studio\2017, there’s no VC folder, just a BuildTools folder.