# UE5 Hangs When Building HLOD and Minimap - Shader Compilation Error in Log

**URL:** <https://forums.unrealengine.com/t/ue5-hangs-when-building-hlod-and-minimap-shader-compilation-error-in-log/2438804>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine\
**Created:** [April 4, 2025, 5:09am UTC](https://forums.unrealengine.com/t/ue5-hangs-when-building-hlod-and-minimap-shader-compilation-error-in-log/2438804 "2025-04-04T05:09:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [May 21, 2025, 3:10am UTC](https://forums.unrealengine.com/t/ue5-hangs-when-building-hlod-and-minimap-shader-compilation-error-in-log/2438804/3 "2025-05-21T03:10:13Z")

</div>

hi @linuxht @zmcdn  
You need to add some command line shortcut switches this happened in UE Fortnite (UEFN)

just use the tutorial to add the DX11 SM5 and shaders will be built then use DX12 SM5 and finally DX12 SM6 and that should build all the shaders  
[Fatal Error opening UEFN Project - General / Issues and Bug Reporting - Epic Developer Community Forums](https://forums.unrealengine.com/t/fatal-error-opening-uefn-project/2060432/7)

Leave the UE5 standard shortcut and add the switches. You many have to “Run as Administrator”

---

_[View the full topic](https://forums.unrealengine.com/t/ue5-hangs-when-building-hlod-and-minimap-shader-compilation-error-in-log/2438804)._
