# 5.4 source build errors

**URL:** <https://forums.unrealengine.com/t/5-4-source-build-errors/1837310>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, editor, question\
**Created:** [May 3, 2024, 12:52am UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310 "2024-05-03T00:52:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeBlo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoeBlo](https://forums.unrealengine.com/u/JoeBlo)\
**Post date:** [May 3, 2024, 12:52am UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/1 "2024-05-03T00:52:34Z")

</div>

Appologies if this didn’t land in the right area. Has anyone else encountered this when trying to build the release UE5.4 from source? If so, any insights?

96\>[1/2] Link [x64] CmdLink.exe  
96\>Module.Core.11.cpp.obj : error LNK2001: unresolved external symbol “wchar\_t \* GInternalProjectName” (?GInternalProjectName@@3PA\_WA)  
96\>Module.Core.14.cpp.obj : error LNK2001: unresolved external symbol “wchar\_t \* GInternalProjectName” (?GInternalProjectName@@3PA\_WA)  
96\>Module.Core.3.cpp.obj : error LNK2001: unresolved external symbol “wchar\_t \* GInternalProjectName” (?GInternalProjectName@@3PA\_WA)  
96\>Module.Core.8.cpp.obj : error LNK2001: unresolved external symbol “wchar\_t \* GInternalProjectName” (?GInternalProjectName@@3PA\_WA)  
96\>Module.Core.9.cpp.obj : error LNK2001: unresolved external symbol “wchar\_t \* GInternalProjectName” (?GInternalProjectName@@3PA\_WA)  
96\>Module.Core.10.cpp.obj : error LNK2001: unresolved external symbol “wchar\_t \* GInternalProjectName” (?GInternalProjectName@@3PA\_WA)  
96\>Module.Core.3.cpp.obj : error LNK2001: unresolved external symbol “wchar\_t const \* const GForeignEngineDir” (?GForeignEngineDir@@3PEB\_WEB)  
96\>…\Binaries\Win64\CmdLink.exe : fatal error LNK1120: 2 unresolved externals

---

<div class="post-metadata">

**Author:** ![SourDumplings](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sourdumplings/32/933043_2.png) [@SourDumplings](https://forums.unrealengine.com/u/SourDumplings)\
**Post date:** [May 3, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/2 "2024-05-03T14:41:28Z")

</div>

Got same problem

---

<div class="post-metadata">

**Author:** ![render.everything](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/render.everything/32/88715_2.png) [@render.everything](https://forums.unrealengine.com/u/render.everything)\
**Post date:** [May 8, 2024, 5:44pm UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/3 "2024-05-08T17:44:40Z")

</div>

Getting the same ☹

---

<div class="post-metadata">

**Author:** ![monstercoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@monstercoo](https://forums.unrealengine.com/u/monstercoo)\
**Post date:** [May 11, 2024, 8:54am UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/4 "2024-05-11T08:54:16Z")

</div>

I’m also hitting this after integrating 5.4.1

---

<div class="post-metadata">

**Author:** ![IMGGustav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IMGGustav](https://forums.unrealengine.com/u/IMGGustav)\
**Post date:** [May 22, 2024, 11:40am UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/5 "2024-05-22T11:40:36Z")

</div>

Same here, I tried changing Visual Studios build tools as stated in the known issues:

**Known Issue:**

Compiling Microsoft platforms with the Visual Studio 2022 “MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.39-17.9)” toolchain will cause internal compiler errors.

**Workaround:**

In the Visual Studio 2022 installer, install the “MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38-17.8)” individual component before compiling.

But no luck

---

<div class="post-metadata">

**Author:** ![IMGGustav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IMGGustav](https://forums.unrealengine.com/u/IMGGustav)\
**Post date:** [May 23, 2024, 11:41am UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/6 "2024-05-23T11:41:59Z")

</div>

Hey all, I got it working, remove the CdmLine program from the solution. Compiles fine. But you wont get CmdLine anymore obviously. But if you dont need it, this works at least.

---

<div class="post-metadata">

**Author:** ![monstercoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@monstercoo](https://forums.unrealengine.com/u/monstercoo)\
**Post date:** [May 26, 2024, 5:13am UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/7 "2024-05-26T05:13:39Z")

</div>

Fwiw, I’m on the same MSVC and can compile, but will occasionally hit the issue. I’ve noticed that it seems to happen when I select “Build Solution” in Visual Studio 2022, but if I right click my game’s project and select “Build,” the build will succeed.

I’m convinced this is a visual studio issue.

---

<div class="post-metadata">

**Author:** ![JoeBlo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoeBlo](https://forums.unrealengine.com/u/JoeBlo)\
**Post date:** [May 28, 2024, 7:56pm UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/8 "2024-05-28T19:56:48Z")

</div>

I’ve heard that building the engine for a particular project will work, but building the engine standalone (which is what I am trying to do), seems to fail with those globals not being found during the link stage.

Is it possible those missing globals are only around when a project is present. For now, I have fallen back to UE5.3 source build. It compiles just fine. Will port my project over when the 5.4 build issues is solved. 🙂

I was just looking forward to the new animation retargeting in 5.4

---

<div class="post-metadata">

**Author:** ![bazilio\_113](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bazilio\_113](https://forums.unrealengine.com/u/bazilio_113)\
**Post date:** [June 1, 2024, 11:25am UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/9 "2024-06-01T11:25:53Z")

</div>

I think i fixed it:

Open CmdLink.cpp

add after line:  
`#include “Windows/WindowsPlatformNamedPipe.h”`

this code:  
`#if IS_PROGRAM
TCHAR GInternalProjectName[64] = TEXT( “CmdLink” );
const TCHAR *GForeignEngineDir = nullptr;
#endif`

---

<div class="post-metadata">

**Author:** ![JoeBlo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoeBlo](https://forums.unrealengine.com/u/JoeBlo)\
**Post date:** [June 2, 2024, 9:26pm UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/10 "2024-06-02T21:26:10Z")

</div>

This worked for me. Was able to create a client server app with it, and that is what I was looking to do. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 2, 2024, 9:26pm UTC](https://forums.unrealengine.com/t/5-4-source-build-errors/1837310/11 "2024-07-02T21:26:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
