No compiler was found

Hi, I’ve been trying to get unreal engine setup for about a solid week now, and I can’t get past this one error.

I install visual studio 2017 and unreal engien 4.20.3. When I go to create a new C++ project it says

“No compiler was found. In order to use a C++ template, you must first install Visual Studio 2017”.

I have googled every possible solution to this and none have helped. Please, please, please help me, I just want to use unreal engine and I can’t even get this basic thing to setup.

I have previously installed older versions of both of these programs in the past, but I believe I have cleanly uninstalled them. I am installing both of them to a secondary D drive. I have tried every permutation of installing these and uninstalling these in every order. Some one please help me.

Hello Tomlum,

it’s a possibility that your visual studio 2017 may have been corrupted during install. I would first recommend running visual studio installer on your computer.

Here is a link on how to do so with Windows

Once you’ve located the installer, you will want to select more, and then choose repair.

Close out of Unreal and the the VS Installer, if it repairs successfully, Re-open Unreal and try to create a new c++ project.

Please let me know if the behavior still persists.

Thanks!

I don’t believe the launcher should effect the engine, but I would recommend doing a full uninstall of both if possible, just to be safe and make sure the launcher is up to date as well.

I tried and I have the same error

should I uninstall just the engine or also the epic games launcher?

Hey Tomlum,

I know you mentioning “googling” numerous sources, however I’d like for us to try uninstalling Visual studio 2017 and UE4 once more, and reinstalling, however, when it gives you the option to choose workloads, please check all of the following boxes you see in this image.

[Source Link][2] for Documentation and additional practices to move forward with Unreal and visual studio.

Please let me know if the problem still persists.

Still getting the same error

Let’s try navigating to your Visual Studio install folder, go to the VC subfolder and run vcvarsall.bat. (Alternatively you could try searching for vcvarsall.bat in your Program files)

Here is how an example path may look “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat”

After running the .bat, try creating another c++ project.

Please let me know if this yields any successful result.

Thanks!

Mine was at D:\Main\Program Files\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall and when I clicked it, a terminal appeared then disappeared. I still get the same error.

I have an Enterprise version of VS too and have the same error. At home, I have a community edition and it works fine. Maybe problem only with VS 2017 Enterprise.

Tomlum,

can you please provide the registry entry path for your copy of visual studio 2017?

Thanks!

Tried with community, same issues

Sorry, I don’t know what that means.
If you mean where I installed it, the path is

D:\Main\Program Files\Microsoft Visual Studio\2017j\Community

In your search bar type in regedit

256837-regedit.png

Run the command to access your registry editor, and you should see some directories, all with the preface HKEY. One of the folders should be HKEY_LOCAL_MACHINE or HKEY_CURRENTUSER. These folders are the ones we are interested in, because this is how Unreal Engine checks for a windows compiler. Please see the image below for the function

I can’t tell you what your exact path may look like, but an example may be to navigate to

HKEY_LOCAL_MACHINE->SOFTWARE->WOW6432Node->Microsoft->VisualStudio->SxS->VS7.

Inside that folder, you should see your versions as well as the path the registry is pointing to for them.

Can you please tell me where that path is pointing to based on the data values in RegEdit?

Ahhh, right now it’s pointing to

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\

Which is on my C drive, while it’s actually installed on my D drive

Try changing the file path to where it is installed in your D drive. Does the error message still persist?

YES!!! AT LAST!!! IT WORKS!!!

Thank you so so much for helping me through this Nicholas!!!

Thank you thank you thank you!!!

For anyone in the future reading this, if you have two drives, I’d highly recommend checking if this is your issue!

Sorry to necro an old thread, but I have been having this problem for the past 5 days.
I have tried absolutely everything.

Visual Studio is installed to: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\ and all of my registry keys mentioned above point to this, but it still won’t work.
I’ve tried VS 2019, 2017, UE4.23, UE4.22.

Please can you help me?