LoginSignup
3
2

More than 3 years have passed since last update.

VS2019環境でのUE4.23.1エンジンビルドで "fatal error C1083: Cannot open include file: 'metahost.h'" が出たときの対処法

Posted at

前提

  • UE4.23.1 (from Github source code build)
  • VisualStudio 2019 Community
    • 開発環境の構築は済んでいるものとする

事象

Chaos用にUE4.23.1をソースコードからビルドする際、下記のエラーが発生してビルドが完了しない

fatal error C1083: Cannot open include file: 'metahost.h'

ビルドに必要な .NET Framework v4.6.2 SDK は入っているのになぜ…?
metahost.hC:\Program Files (x86)\Windows Kits\NETFXSDK\X.X.X\Include\um あたりに存在する)

UnrealLightmassのビルド中に起こっている模様

解決策

  • もしSDK4.6.2以上(4.7とか4.8)が入っている場合は、それらをUninstallする

上位のSDKが入っているとそっちが優先されるのか、指定のファイルが見つからずビルドに失敗する
ソースコード内にレジストリキーがハードコードされているのが問題になっている…らしい?

参考文献

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2