# \[solved\] upgrade c++ project from ue 4.24 to 4.25 under Linux

**URL:** <https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [June 2, 2020, 1:21pm UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950 "2020-06-02T13:21:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_55d3d3dc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_55d3d3dc](https://forums.unrealengine.com/u/anonymous_user_55d3d3dc)\
**Post date:** [June 2, 2020, 1:21pm UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/1 "2020-06-02T13:21:49Z")

</div>

I’ve troubles with upgrading my c++ project from ue 4.24 to 4.25 under Linux.  
When I try to start project, it says:  
“Engine modules are out of date, and cannot be compiled while the engine is running. Please build through your IDE”.

in console:

```auto

ERROR: Building would modify the following engine files:
    /home/vvb/src/UnrealEngine/ue4/4.25/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/Engine/SharedPCH.Engine.h.d
    /home/vvb/src/UnrealEngine/ue4/4.25/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/Engine/SharedPCH.Engine.h.gch

Please rebuild from an IDE instead.

```

My projects are located in unreal main folder, subfolder ue4. “ue4” is added to UE4Games.uprojectdirs.  
I’ve try:

1. run Setup.sh
2. run GenerateProjectFiles.sh (my project files are present in UE4.pro).
3. make.  
The engine is rebuilded from scratch (about 1.5 hours).  
I try to run my project, it says again that “Engine modules are out of date…”

How I can rebuild only project files under Linux?

---

<div class="post-metadata">

**Author:** ![anon3589488](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon3589488](https://forums.unrealengine.com/u/anon3589488)\
**Post date:** [June 2, 2020, 7:53pm UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/2 "2020-06-02T19:53:20Z")

</div>

go to source folder, locate {nameofproject}.Target.cs and {nameofproject}Editor.Target.cs. After the line  
base(Target)  
{  
add to both file the following

```auto

DefaultBuildSettings = BuildSettingsVersion.V2;

```

If does not work please tell!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_55d3d3dc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_55d3d3dc](https://forums.unrealengine.com/u/anonymous_user_55d3d3dc)\
**Post date:** [June 3, 2020, 3:00pm UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/3 "2020-06-03T15:00:26Z")

</div>

It’s working, thank you!

---

<div class="post-metadata">

**Author:** ![TestSubject89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TestSubject89](https://forums.unrealengine.com/u/TestSubject89)\
**Post date:** [October 18, 2020, 7:47am UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/4 "2020-10-18T07:47:17Z")

</div>

I also had this same error, and it also indicated having to rebuild many SOs as well as the UE4Editor.

I applied the solution from [sam.new](https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1770131-solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux?p=1770317#post1770317) but it wasn’t enough. I noticed that UBT is invoked by the editor on start up with:

```auto

/path/to/UE4/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Linux -Project="/path/to/project/project.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE

```

So, not having anything to lose, I removed the last two command line options as they looked like candidates contributing to the error message and re-invoked it with just:

```auto

/path/to/UE4/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Linux -Project="/path/to/project/project.uproject" -TargetType=Editor -Progress

```

which solved the problem … and allowed me fix the errors causing the failure in the first palce

---

<div class="post-metadata">

**Author:** ![anon3589488](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon3589488](https://forums.unrealengine.com/u/anon3589488)\
**Post date:** [January 4, 2021, 11:20am UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/5 "2021-01-04T11:20:37Z")

</div>

Just for any looking at this in future. The solution I gave above only applicable when upgrading old project on Linux from 4.24 or below to 4.25+ and you have no other error.  
But if you have gis hotreload error or a menu showing that engine modules cant be compiled while editor is running then use the solution that @TestSubject89 has suggested. These problems are not the same

---

<div class="post-metadata">

**Author:** ![ben-mkiv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ben-mkiv](https://forums.unrealengine.com/u/ben-mkiv)\
**Post date:** [February 22, 2021, 1:14pm UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/6 "2021-02-22T13:14:36Z")

</div>

> [@TestSubject89](#):
>
> I also had this same error, and it also indicated having to rebuild many SOs as well as the UE4Editor.
> 
> …]
> 
> which solved the problem … and allowed me fix the errors causing the failure in the first palce

Thank you, you saved my sanity, i already thought i had to go back to an old state. The fix worked for me, too.

---

<div class="post-metadata">

**Author:** ![nealith](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nealith](https://forums.unrealengine.com/u/nealith)\
**Post date:** [April 19, 2021, 6:34pm UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/7 "2021-04-19T18:34:00Z")

</div>

I don’t know if I am missing something, but I didn’t found a complete solution,  
As @TestSubject89 says, you have to remove two options if the solution given by @anon3589488 is not enough.  
You can do it in the file : Engine/Source/Developer/DesktopPlatform/Private/DesktopPlatformBase.cpp

Look for this line :

`Arguments += " -Progress -NoEngineChanges -NoHotReloadFromIDE";`

→

`Arguments += " -Progress";`

Then

- re-compile your engine
- launch your project and accept the rebuild

---

<div class="post-metadata">

**Author:** ![buenos\_highres](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@buenos\_highres](https://forums.unrealengine.com/u/buenos_highres)\
**Post date:** [June 7, 2021, 10:12am UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/8 "2021-06-07T10:12:45Z")

</div>

Hey there, so i followed @nealith instructions, but still getting the problem popping up… Hav ei not recompiled my engine correctly? just saveing the changed code file to the same location?

---

<div class="post-metadata">

**Author:** ![elwetritsche97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@elwetritsche97](https://forums.unrealengine.com/u/elwetritsche97)\
**Post date:** [August 26, 2021, 9:37am UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/9 "2021-08-26T09:37:33Z")

</div>

@buenos_highres I think you missed running:  
cd UnrealEngine  
./Setup.sh  
./GenerateProjectFiles.sh  
make  
as described here [Linux Quick Start | Unreal Engine Documentation](https://docs.unrealengine.com/4.27/en-US/SharingAndReleasing/Linux/BeginnerLinuxDeveloper/SettingUpAnUnrealWorkflow/)

---

<div class="post-metadata">

**Author:** ![sudomachine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sudomachine](https://forums.unrealengine.com/u/sudomachine)\
**Post date:** [April 14, 2022, 1:48pm UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/10 "2022-04-14T13:48:51Z")

</div>

Hello. How did you run this command with ‘.exe’ extension? I got an error: ‘UnrealBuildTool.exe: command not found’

---

<div class="post-metadata">

**Author:** ![Vityoki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vityoki](https://forums.unrealengine.com/u/Vityoki)\
**Post date:** [April 19, 2022, 9:35am UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/11 "2022-04-19T09:35:47Z")

</div>

Firstly:  
/home//UE/UnrealEngine/GenerateProjectFiles.sh /home/projectName/projectName.uproject -game  
Then:  
cd /home/projectName/  
make projectNameEditor  
then try to run again. So you need to make ‘Editor’ project for this… it was hard enough for me.

---

<div class="post-metadata">

**Author:** ![diligent](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@diligent](https://forums.unrealengine.com/u/diligent)\
**Post date:** [April 6, 2024, 12:19pm UTC](https://forums.unrealengine.com/t/solved-upgrade-c-project-from-ue-4-24-to-4-25-under-linux/144950/12 "2024-04-06T12:19:12Z")

</div>

This is useful.Thank you.
