# Issue with "FTextureBuildSettings is undefined" and other errors during build in UE5

**URL:** <https://forums.unrealengine.com/t/issue-with-ftexturebuildsettings-is-undefined-and-other-errors-during-build-in-ue5/2211202>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, CPP, question\
**Created:** [December 12, 2024, 9:58am UTC](https://forums.unrealengine.com/t/issue-with-ftexturebuildsettings-is-undefined-and-other-errors-during-build-in-ue5/2211202 "2024-12-12T09:58:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gob00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gob00](https://forums.unrealengine.com/u/Gob00)\
**Post date:** [December 12, 2024, 9:58am UTC](https://forums.unrealengine.com/t/issue-with-ftexturebuildsettings-is-undefined-and-other-errors-during-build-in-ue5/2211202/1 "2024-12-12T09:58:52Z")

</div>

Hi! I’m facing an issue with three errors that you can see in the attached screenshot.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/f/16ff054b48ccbfa77f91059615025b0e62f0989b.png)

I created a project in Unreal Engine 5 and added two C++ classes: `GameMode` and `Character`. After that, I encountered the following errors during the build:

1. `member function declared with 'override' does not override a base class member` (this error appears twice).
2. `identifier 'FTextureBuildSettings' is undefined`.

I found that the error `identifier 'FTextureBuildSettings' is undefined` might be resolved by:

- Adding the `TextureCompressor` module to the `.Build.cs` file.
- Including `#include "TextureCompressorModule.h"`.

I have already added the `TextureCompressor` module to the build file (screenshot attached), but I’m not sure in which file I need to write `#include "TextureCompressorModule.h"`.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/7/c/f/7cfde859c630c6a9be33b79059b8d6371502a943_2_690x22.png)

Could someone please guide me on how to properly resolve this issue and where exactly to place the `#include`?

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![SonSui33](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SonSui33](https://forums.unrealengine.com/u/SonSui33)\
**Post date:** [April 26, 2025, 1:45pm UTC](https://forums.unrealengine.com/t/issue-with-ftexturebuildsettings-is-undefined-and-other-errors-during-build-in-ue5/2211202/2 "2025-04-26T13:45:45Z")

</div>

I encountered exactly the same issue as you — both the `'FTextureBuildSettings' is undefined` error and the `'override' does not override a base class member` error.  
This is not a problem with your local setup; it’s actually due to how Unreal’s build system works.  
When you try to compile your game’s C++ code while the Unreal Editor is running, it can cause issues because the engine’s code and your game’s code are built together in the same process.

The correct workflow is to **close the Unreal Editor before compiling** , then **reopen it after a successful build**.  
If you want to avoid closing the editor, you can try using **Live Coding** by pressing `Ctrl + Shift + L` in Visual Studio. However, Live Coding can sometimes fail, especially if you make larger changes.

The recommended and more stable approach is still to **close the editor before compiling**.

This issue confused me for a long time as well, so I hope this helps you out!

---

<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:** [May 26, 2025, 1:46pm UTC](https://forums.unrealengine.com/t/issue-with-ftexturebuildsettings-is-undefined-and-other-errors-during-build-in-ue5/2211202/3 "2025-05-26T13:46:18Z")

</div>

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