# How to build UE 5.1 from source on linux detecting the right engine version

**URL:** <https://forums.unrealengine.com/t/how-to-build-ue-5-1-from-source-on-linux-detecting-the-right-engine-version/754249>\
**Category:** Platform & Builds\
**Tags:** Builds, Linux, unreal-engine, editor, question\
**Created:** [January 21, 2023, 4:41pm UTC](https://forums.unrealengine.com/t/how-to-build-ue-5-1-from-source-on-linux-detecting-the-right-engine-version/754249 "2023-01-21T16:41:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jense841](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jense841/32/614355_2.png) [@Jense841](https://forums.unrealengine.com/u/Jense841)\
**Post date:** [January 21, 2023, 4:41pm UTC](https://forums.unrealengine.com/t/how-to-build-ue-5-1-from-source-on-linux-detecting-the-right-engine-version/754249/1 "2023-01-21T16:41:30Z")

</div>

I’m building UE 5.1 on linux (mint 21, vanessa) and I have version problems with assets created outside the editor.

The first problem happens when opening projects generated with the Epic Game Launcher on the UE editor. It detects them as if they were for a different version and need to be converted even though I explicitly generated them for 5.1 on the launcher. When opening on the UE editor I have an option to convert them. If I convert them everything goes well and I manage to work.

However there’s another problem now. I set up a C++ project to work with VS Code and whenever I build on VS Code by going to “Terminal → Run Build Task…” and the running “MyProjectEditor Linux Development Build” and then opening the project again on the UE Editor I get the following message:

```
"The following modules are missing or built with a different engine version"
"MyProject"
"Would you like to rebuild them now"?

```

If I choose “No” the project doesn’t open, if I choose “Yes” I get “MyProject could not be compiled, Try rebuilding from source manually”.

So I’m kind of stuck. I’m not sure if both problems are related, but it feels like they might because they are both related to the engine version detected not being right.

So, I think maybe I’m not building the editor the right way. I’m following the official docs, which don’t seem to be updated for 5.1 but work for the most part:

> **[Building Unreal Engine from Source](https://docs.unrealengine.com/5.1/en-US/building-unreal-engine-from-source/)**
>
> Compiling Unreal Engine from source code.

Here’s the steps I followed to build the and run the UE editor:

- Clone `git@github.com:EpicGames/UnrealEngine.git`
- Switch to `release` branch or tag `5.1.0-release`, which is commit `cdaec5b33ea5d332e51eee4e4866495c90442122`
- Run `./Setup.sh`
- Run `./GenerateProjectFiles.sh`
- Run `make`
- Run `cd repos/UnrealEngine/Engine/Binaries/Linux`
- Run `./UnrealEditor` to finally open the engine

Am I doing anything wrong?  
Is there a way to make sure the build matches the `5.1` version exactly, maybe using a different make target or argument?  
Is there anything else I can try?

---

<div class="post-metadata">

**Author:** ![Jense841](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jense841/32/614355_2.png) [@Jense841](https://forums.unrealengine.com/u/Jense841)\
**Post date:** [January 21, 2023, 7:06pm UTC](https://forums.unrealengine.com/t/how-to-build-ue-5-1-from-source-on-linux-detecting-the-right-engine-version/754249/2 "2023-01-21T19:06:45Z")

</div>

> [@Jense841](#):
>
> MyProject could not be compiled, Try rebuilding from source manually

I managed to solve the problem with building the project. Instead of building it inside VS Code I build it the same way I built the original editor using `make` in `MyProject` directory. That way I can open the project from the original editor dialog. So I can use the VS Code editor to edit the files but I have to keep building them from the console, VS Code probably uses a different tool chain to build.

The problem with Epic Games Launcher is unrelated to this and I still haven’t found a way of fixing it.

---

<div class="post-metadata">

**Author:** ![RokeJulianLockhart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokejulianlockhart/32/973764_2.png) [@RokeJulianLockhart](https://forums.unrealengine.com/u/RokeJulianLockhart)\
**Post date:** [July 15, 2025, 6:51pm UTC](https://forums.unrealengine.com/t/how-to-build-ue-5-1-from-source-on-linux-detecting-the-right-engine-version/754249/3 "2025-07-15T18:51:20Z")

</div>

@Jense84, thanks for the superbly concise tutorial.

> [@Jense841](#):
>
> Instead of building it inside VS Code I build it the same way I built the original editor using `make` in `MyProject` directory.

You’ve probably a different target configured inside VSC. It can be modified in the Preferences, and/or via Control + Shift + P (for the Command Palette). I’d check whether `$PATH`’s working.
