# “could not be compiled. Try rebuilding from source manually.”

**URL:** <https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [February 28, 2024, 11:56pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299 "2024-02-28T23:56:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PatrickUdom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PatrickUdom](https://forums.unrealengine.com/u/PatrickUdom)\
**Post date:** [February 28, 2024, 11:56pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/1 "2024-02-28T23:56:12Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/7/a17243ff056fa6a401aab8713534f0d4c6479123.png)

I need help fixing this error, I already followed the steps that was posted in another forum that was:

1. Closed Unreal Engine
2. Removed Binaries, Build, Intermediate, Saved
3. Deleted .sln file
4. Reopen the .uproject

This project was created around 2 years ago using Unreal Engine 5.0, I’m currently on Unreal Engine 5.3  
The project ONLY used Blueprint and wasn’t created using C++

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [February 29, 2024, 1:36am UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/2 "2024-02-29T01:36:52Z")

</div>

Try with building it with visual studio.

Or use unreal 5.0

---

<div class="post-metadata">

**Author:** ![iSinSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@iSinSlayer](https://forums.unrealengine.com/u/iSinSlayer)\
**Post date:** [February 29, 2024, 2:23pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/3 "2024-02-29T14:23:46Z")

</div>

I think there’s a bug with UE 5s regarding implicit source compilation - i.e clicking the .uproject without compiling via VS first.  
UE 4 will pop a window showing progress of compilation but UE 5 does the compilation silently which makes one think that there has been a problem and clicking the .uproject file once again which will pop an error such as this one.

First click right button on .project than “switch unreal engine version” to 5.3  
This would generate new files and an .sln  
Than hit .uproject again, hold until something pops, do not hit again.  
If this window popped - hit the .sln file and Build it (Ctrl + B or Ctrl + Shift + B) - post errors here.

---

<div class="post-metadata">

**Author:** ![PatrickUdom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PatrickUdom](https://forums.unrealengine.com/u/PatrickUdom)\
**Post date:** [March 1, 2024, 5:04pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/4 "2024-03-01T17:04:27Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/1/731c426b4ba8b303f4c7ef72c167dcb6c1a5e682.png)  
These are the errors that I got when I did Ctrl + Shift + B in Visual Studio 2022.

The components I have installed in VS 2022 are: .NET Multi-platform App UI development, .NET desktop development and Game development with C++.

---

<div class="post-metadata">

**Author:** ![iSinSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@iSinSlayer](https://forums.unrealengine.com/u/iSinSlayer)\
**Post date:** [March 3, 2024, 7:41am UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/5 "2024-03-03T07:41:33Z")

</div>

Those 2 errors at the top are coming from the engine, we can ignore them as it seems like the engine works fine.  
Yet your project fails to compile and the reason can’t be understood (to me at least) from the error list, please upload the entire output window, maybe it will give us a clue.

---

<div class="post-metadata">

**Author:** ![PatrickUdom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PatrickUdom](https://forums.unrealengine.com/u/PatrickUdom)\
**Post date:** [March 5, 2024, 10:24pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/6 "2024-03-05T22:24:52Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/5/0d57bc612fb166e45310dd72aec47c5e92c39358.png)  
Is it this? Sorry I don’t know much about this.

---

<div class="post-metadata">

**Author:** ![PatrickUdom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PatrickUdom](https://forums.unrealengine.com/u/PatrickUdom)\
**Post date:** [March 5, 2024, 10:27pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/7 "2024-03-05T22:27:28Z")

</div>

Is it possible for me to send you the file? I can pay you to fix this, I really need to get this working ASAP.

---

<div class="post-metadata">

**Author:** ![PatrickUdom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PatrickUdom](https://forums.unrealengine.com/u/PatrickUdom)\
**Post date:** [March 7, 2024, 5:40am UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/8 "2024-03-07T05:40:59Z")

</div>

Ok so apparently the one of the 3 fails is because I didn’t have a plugin, I just installed that plugin and now only 2 fails left.

Build started at 9:38 PM…  
1\>------ Build started: Project: UE5, Configuration: BuiltWithUnrealBuildTool Win64 ------  
2\>------ Build started: Project: BuildGraph.Automation, Configuration: Development Any CPU ------  
3\>------ Build started: Project: AutomationScripts.Automation, Configuration: Development Any CPU ------  
2\>C:\Program Files\Epic Games\UE\_5.3\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs(1640,37,1640,42): error CS8604: Possible null reference argument for parameter ‘other’ in ‘void HashSet.UnionWith(IEnumerable other)’.  
2\>Done building project “BuildGraph.Automation.csproj” – FAILED.  
3\>C:\Program Files\Epic Games\UE\_5.3\Engine\Source\Programs\AutomationTool\Scripts\CheckForHacks.cs(87,26,87,45): error CA2017: Number of parameters supplied in the logging message template do not match the number of named placeholders ([CA2017: Parameter count mismatch (code analysis) - .NET | Microsoft Learn](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017))  
3\>Done building project “AutomationScripts.Automation.csproj” – FAILED.  
========== Build: 1 succeeded, 2 failed, 44 up-to-date, 0 skipped ==========  
========== Build completed at 9:38 PM and took 16.703 seconds ==========

Do you know what these fails are?

---

<div class="post-metadata">

**Author:** ![iSinSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@iSinSlayer](https://forums.unrealengine.com/u/iSinSlayer)\
**Post date:** [March 7, 2024, 6:17am UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/9 "2024-03-07T06:17:01Z")

</div>

Yes the source of this failures is the engine, never the less the engine seems to work fine, just launch the project and it should work. try it.

---

<div class="post-metadata">

**Author:** ![Eclip5e](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eclip5e/32/714236_2.png) [@Eclip5e](https://forums.unrealengine.com/u/Eclip5e)\
**Post date:** [June 28, 2024, 11:12am UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/10 "2024-06-28T11:12:41Z")

</div>

I have the same issue and tryed the solution with building via VS Code. I got these warnings and error message:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/8/768c6040da6a193eef363f370836ac7dbb177309.png)

Output:

```auto
Build started at 13:37...
1>------ Build started: Project: Shooter2, Configuration: Development_Editor x64 ------
1>Using bundled DotNet SDK version: 6.0.302
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Shooter2Editor Win64 Development -Project="D:\Shooter2BackupNew\Shooter2\Shooter2.uproject" -WaitMutex -FromMsBuild -architecture=x64
1>Log file: C:\Users\voel_mn\AppData\Local\UnrealBuildTool\Log.txt
1>Using 'git status' to determine working set for adaptive non-unity build (D:\Shooter2BackupNew\Shooter2).
1>Creating makefile for Shooter2Editor (no existing makefile)
1>EXEC : warning : [Upgrade]
1>EXEC : warning : [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:
1>EXEC : warning : [Upgrade] bLegacyParentIncludePaths = false => Omits module parent folders from include paths to reduce compiler command line length. (Previously: true).
1>EXEC : warning : [Upgrade] CppStandard = CppStandardVersion.Default => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).
1>EXEC : warning : [Upgrade] WindowsPlatform.bStrictConformanceMode = true => Updates MSVC strict conformance mode to true (Previously: false).
1>EXEC : warning : [Upgrade] bValidateFormatStrings = true => Enables compile-time validation of strings+args passed to UE_LOG. (Previously: false).
1>EXEC : warning : [Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V5;' in Shooter2Editor.Target.cs, and explicitly overriding settings that differ from the new defaults.
1>EXEC : warning : [Upgrade]
1>EXEC : warning : [Upgrade]
1>EXEC : warning : [Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
1>EXEC : warning : [Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Oldest
1>EXEC : warning : [Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Latest;' in Shooter2Editor.Target.cs.
1>EXEC : warning : [Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
1>EXEC : warning : [Upgrade]
1>Total execution time: 13.66 seconds
1>Shooter2Editor modifies the values of properties: [bStrictConformanceMode]. This is not allowed, as Shooter2Editor has build products in common with UnrealEditor.
1>Remove the modified setting, change Shooter2Editor to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the Shooter2EditorTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command "D:\UE_5.4\Engine\Build\BatchFiles\Build.bat Shooter2Editor Win64 Development -Project="D:\Shooter2BackupNew\Shooter2\Shooter2.uproject" -WaitMutex -FromMsBuild -architecture=x64" exited with code 6.
1>Done building project "Shooter2.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 11 up-to-date, 0 skipped ==========
========== Build completed at 13:37 and took 14,208 seconds ==========

```

Ok I have no idea if this was the right way, but I first generated visual studio project files  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/0/5f0fc8a231265866a230762e5719a5848f9279de.png)

and now I have additional errors when building:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/6/4965f99d8ef13df197b9eeb99d31f917d2801128.png)

in another forum thread I found a suggestion to install SDK NET 7.0 and NET 6.0 (I don’t even know what that’s for).  
I tried building again, same errors.

1 Day Later:  
I gave up on this approach. But what worked for me was creating a blank 5.4.2 Project and migrating everything over from my 5.1.1. Project.

---

<div class="post-metadata">

**Author:** ![\_Ticker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_ticker/32/968550_2.png) [@\_Ticker](https://forums.unrealengine.com/u/_Ticker)\
**Post date:** [August 17, 2024, 1:20pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/11 "2024-08-17T13:20:22Z")

</div>

Hi, thanks for your trying.

It also worked for me which creating a new project. Although it’s still sth problems can’t solve yet, I can get in it and keep going my work anyway.

---

<div class="post-metadata">

**Author:** ![MainframeGaming](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MainframeGaming](https://forums.unrealengine.com/u/MainframeGaming)\
**Post date:** [January 8, 2025, 1:05pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/12 "2025-01-08T13:05:41Z")

</div>

Yooo I just managed to get mine working again on 5.5 thought I might contribute to the thread and see if it helps anyone else…

for some reason my target files were disconnected or file path lost? not sure but make sure you check the following files for continuity of your “Project name” anything with project is just a placeholder.

File check 1: C:.… Project\>…“yourProject”.uproject

- open in notepad
- check modules… _“Name”: “YourProject”,_ correct if necessary should match “yourProject”.uproject  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/c/3ecaf3c1c8d009bd95541f0452eccce73e460179.png)

File check 2: C:.… Project\>Source  
“yourproject”.Target.cs  
"yourproject"Editor.Target.cs

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/4/5a4343550d4186a798486eb996e70d6808ac680b.png)

check all remaining files for name continuity

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/1/ce1394171e181a4766593653e16fc5e6fa3637e8.png)

Should look something like this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/9/4292bc6ec8ccebc577f79416a94adb91a7079a8c.png)

Then try open project or right click and generate VS files project files

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/2/7529b7417d0ade40fd2f167dd1c7affd9fbff42d.png)

---

<div class="post-metadata">

**Author:** ![RahelNik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RahelNik](https://forums.unrealengine.com/u/RahelNik)\
**Post date:** [March 24, 2025, 11:45am UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/13 "2025-03-24T11:45:46Z")

</div>

Hi, question:  
I’m running a downloaded unreal engine project on a Mac. An error appears.  
“could not be compiled try rebuilding from source Mac OS.”  
When I create a project in unreal engine myself, there are no errors.  
I’ve tried everything. What could be the reason?

---

<div class="post-metadata">

**Author:** ![RahelNik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RahelNik](https://forums.unrealengine.com/u/RahelNik)\
**Post date:** [March 24, 2025, 12:26pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/14 "2025-03-24T12:26:09Z")

</div>

Hi, question:  
I’m running a downloaded unreal engine project on a Mac. An error appears.  
“could not be compiled try rebuilding from source Mac OS.”  
When I create a project in unreal engine myself, there are no errors.  
I’ve tried everything. What could be the reason?

---

<div class="post-metadata">

**Author:** ![Ahndwoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ahndwoo](https://forums.unrealengine.com/u/Ahndwoo)\
**Post date:** [March 25, 2025, 4:39pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/15 "2025-03-25T16:39:23Z")

</div>

Hey, just fixed a similar problem and wanted to share what worked for me. It was probably a number of things, but the last thing I did that finally fixed it was opening ./Source/\<Project\>Editor.Target.cs and making sure this line was correct:

DefaultBuildSettings = BuildSettingsVersion.V5;

For some reason, mine was .V2 instead of V5. Probably should change it in \<Project\>.Target.cs too.

---

<div class="post-metadata">

**Author:** ![Zarcia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zarcia](https://forums.unrealengine.com/u/Zarcia)\
**Post date:** [May 27, 2025, 4:36pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/16 "2025-05-27T16:36:04Z")

</div>

One thing to check as well is the 260 character limit - I have found the .sln file won’t build if it is deeply nested in subfolders (example: deep in OneDrive folder).

If you pull out the project and put it on the C drive, or at least a shorter file path, that sometimes fixes the issue.

Otherwise, check plugins are placed in the appropriate spots.

---

<div class="post-metadata">

**Author:** ![von\_Hobo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@von\_Hobo](https://forums.unrealengine.com/u/von_Hobo)\
**Post date:** [June 18, 2025, 4:23pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/17 "2025-06-18T16:23:31Z")

</div>

I am new to Unreal Engine. And I was also receiving this error with version 5.6 but only on creating a project with C++ instead of selecting Blueprints.

So, I unchecked (disabled) “Load last project at Startup” and now it loads without errors when I open the project from the Recent Projects list within Unreal Engine.

Not sure if that’s a valid solution to this problem, or not, and I’m not sure why the error only appears when “Load last project at Startup” is enabled.

I tried everything to fix this problem from all the suggestions on this post, and nothing worked for me until I disabled load project at startup.

---

<div class="post-metadata">

**Author:** ![Tamboo\_music](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tamboo\_music](https://forums.unrealengine.com/u/Tamboo_music)\
**Post date:** [June 28, 2025, 1:04pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/18 "2025-06-28T13:04:53Z")

</div>

Thanks for sharing! This way worked for me

---

<div class="post-metadata">

**Author:** ![Cykablatta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cykablatta](https://forums.unrealengine.com/u/Cykablatta)\
**Post date:** [July 2, 2025, 7:56am UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/19 "2025-07-02T07:56:57Z")

</div>

I had the same issue “could not be compiled” and I solved it. Do you still have this problem?  
In case yes, some suggestions :

- Keep UE and Visual closed meanwhile ;

- Ensure , you’ve installed and configured everything visual needs to works properly with UE as shown in this video [https://www.youtube.com/watch?v=HQDskHVw1to](https://www.youtube.com/watch?v=HQDskHVw1to) ;

- Ensure , inside editor/project.Target.cs engine’s versions is exactly the one you’re using ;

- If you wrote already some code in your .h and .cpp , check if pubblic/private classes you’re using , are also declared in yourproject .Build.cs file, in case not add them

EXAMPLE :

PublicDependencyModuleNames.AddRange(new string { “ADD HERE”}); If it’s a public one

- Check if your project’s name inside .h and .cpp is well referenced ;
- Refresh your u.project folder ;
- Re-generate visual studio project files ;
- Re-launch your UE project, rebuild if needed.
- Once inside, update your project.

---

<div class="post-metadata">

**Author:** ![liquidsnakemi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@liquidsnakemi](https://forums.unrealengine.com/u/liquidsnakemi)\
**Post date:** [July 4, 2025, 7:22pm UTC](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299/20 "2025-07-04T19:22:11Z")

</div>

Thank you so much. This fixed it for me.

[Next page](https://forums.unrealengine.com/t/could-not-be-compiled-try-rebuilding-from-source-manually/1719299.md?page=2)
