# Can't start C++ projects when UE is compiled from source

**URL:** <https://forums.unrealengine.com/t/cant-start-c-projects-when-ue-is-compiled-from-source/488899>\
**Category:** C++\
**Tags:** source-build, bug, unreal-engine, question, CPP\
**Created:** [September 17, 2021, 4:29am UTC](https://forums.unrealengine.com/t/cant-start-c-projects-when-ue-is-compiled-from-source/488899 "2021-09-17T04:29:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![extaticdragon\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@extaticdragon\_1](https://forums.unrealengine.com/u/extaticdragon_1)\
**Post date:** [September 17, 2021, 4:29am UTC](https://forums.unrealengine.com/t/cant-start-c-projects-when-ue-is-compiled-from-source/488899/1 "2021-09-17T04:29:34Z")

</div>

Hello! I’ve grabbed the UE4 source code from the release branch on github, ran Setup.bat then GenerateProjectFiles.bat then compiled using the latest version of Visual Studio 2019. Everything was running perfectly smooth until I tried to create a Third Person C++ Project.

First, the project was created but didn’t start, only Visual Studio started. I thought “that was pretty weird” then tried to launch it again from UE4Editor.exe.

Then, I got this

![348881-asdasdasdasd.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/f/91f7ebec93d54fb8c31a2bd8e9087a40344d2024.png)

After pressing yes, I got this

![348882-wasdwasdwasdwasd.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/6/cd6a9e09c8522a0093b7a79a15fb97e1317863a5.png)

some links I found that were semi-helpful:

> **[Compile Failed when creating Cpp project](https://forums.unrealengine.com/questions/445126/compile-failed-when-creating-cpp-project.html)**
>
> I recently updated Visual Studio to include all the Android SDK’s as I was having problems getting a VR project to work on my Nexus 6. This solved that particular problem in a blueprints project, but when creating a Cpp project I get an error and...

Above link is a kind of similar issue, but from 2016.

> **[\[Linux\]Unreal Engine 4.26.2 Not creating C++ projects](https://forums.unrealengine.com/questions/1029880/view.html)**
>
> I’m using Linux Mint. I compiled the Unreal Engine from the git page and used the Linux Quick Start Guide page to assist the installation. I’m also using Visual Studio Code for my IDE. I’m having a problem where when I create a C++ project, it...

Above link is someone with the same exact issue. The only person that responded pointed them to [here][3]. They’re using Linux tho. Does anyone know the solution for the Windows equivalent of this?

---

<div class="post-metadata">

**Author:** ![Ravi80335](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ravi80335](https://forums.unrealengine.com/u/Ravi80335)\
**Post date:** [September 22, 2021, 3:25pm UTC](https://forums.unrealengine.com/t/cant-start-c-projects-when-ue-is-compiled-from-source/488899/2 "2021-09-22T15:25:03Z")

</div>

If you are using VS Community as your game source code editor, then simply

1. open .sln, it opens in VS Community, right click on your game name, click build, Done.  
Now your project will open.

If you are using VS Code as your code editor,  
Then, open UE4, set VS Community as your Source code editor in Editor Preferences, then, right click on your game .uproject file, Click on Generate Source files, then simply do above 1)
