Hello, my D drive died which had unreal located on it. I replaced the drive and reinstalled unreal and when I try to make a new c++ project I get an error. Here’s where I think the problem is… while replacing the drive I started cleaning up the temp folder, and probably deleted some UE4 temp files in there. I tried reinstalling UE4 multiple times and deleting every UE4 file in the temp folder I could find. But still same error.
This is the error I get when making a new c++ project:
Running D:/Program Files/Epic Games/4.8/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/Users/bill/Documents/Unreal Projects/delteMe/delteMe.uproject” -game -rocket -progress
Discovering modules, targets and source code for game…
UnrealBuildTool Exception: System.IO.FileNotFoundException: D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools…/…/VC/bin/amd64\cl.exe
at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
at UnrealBuildTool.VCEnvironment.FindCLExeVersion(String CompilerExe)
at UnrealBuildTool.VCEnvironment…ctor(CPPTargetPlatform InPlatform)
at UnrealBuildTool.VCToolChain.GetVCIncludePaths(CPPTargetPlatform Platform)
at UnrealBuildTool.VCProjectFile.WriteProjectFile(List1 InPlatforms, List1 InConfigurations)
at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles()
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(String[] Arguments, Boolean& bSuccess)
at UnrealBuildTool.UnrealBuildTool.GenerateProjectFiles(ProjectFileGenerator Generator, String[] Arguments)
at UnrealBuildTool.UnrealBuildTool.Main(String[] Arguments)
When I installed onto the C drive it still remembered where all my projects were stored… I guess the real question is how do you forrealz uninstall UE4? Having it delete all of it’s temp files?
If your projects are stored in the default directory the engine will know to look for the projects. I have a couple of more suggestions/questions for you. Could you try verifying your engine? Could you try installing a difference version of the engine to see if this problem still occurs?
This looks like a problem with an environment variable on your computer, but it could also be a bad assumption in our UnrealBuildTool program about the environment variables.
Basically it can’t find the VS 2013 compiler program because the path is invalid.
Its looking here:
D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools…/…/VC/bin/amd64\cl.exe
Notice the weird “Tools…” part of the path above? That’s because a backslash is missing.
The correct path to the compiler is:
D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools../…/VC/bin/amd64\cl.exe
I think this is because on your computer, the VS12COMNTOOLS environment variable does not end with a trailing backslash.
Open your system environment variables, and make sure VS12COMNTOOLS looks like this:
*VS120COMNTOOLS=D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools*
Interesting. In that screenshot, the path to the compiler is actually the correct one. So it simply doesn’t exist. Is there a chance you have the wrong version of Visual Studio installed? Can you paste a picture of the Help → About screen? If you by chance have Visual Studio Express installed (instead of Visual Studio Community), then you won’t have a 64-bit compiler. Visual C++ Tools and Templates in Visual Studio Editions | Microsoft Learn
At this point the only solution I can thing of is formatting my computer. I’ve tried many many times uninstalling/deleting left over files/reinstalling all the programs. Not sure what else is left.