Fatal error LNK1158: cannot run 'mt.exe'

Hi Iam getting an error “fatal error LNK1158: cannot run ‘mt.exe’” while Packaging the Unreal Project.

Can anyone let me know how to solve this error?

Compile Unreal Engine 4.25.3 using FastBuild
fatal error LNK1158: cannot run ‘mt.exe’
3>EXEC : 7> 7> Failed to build Exe. error : 1158 (0x0486) Target: ‘…\Engine\Binaries\Win64\UnrealHeaderTool-BuildSettings.dll’

Thanks @kato_2020 , is there any example available for the same?

I’m not sure if you solved this as it has been a while since you asked however I ran into the same error. I fixed it by installing Windows 10 SDK 10.0.17763.0 through the vs installer, previously my most recent SDK version was 10.0.14393. I then did a rebuild as doing a regular build was still using the previous SDK version.

Have same issue after migration from 4.24 to 4.25.
Windows 10 SDK 10.0.17763.0 fixed issue!

I’ve spent 2 hours trying some other solutions, thank you SMoneyMonkey, you saved my nerves :slight_smile: