Announcement

Collapse
No announcement yet.

Don`t compile from source. fatal error C1083: Cannot open include file: 'metahost.h'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Don`t compile from source. fatal error C1083: Cannot open include file: 'metahost.h'

    I have a problem building the engine from source.
    VS 2019 UE 4.22, and 4.23

    A file 'metahost.h' in the folder C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\Include\um exists. Click image for larger version  Name:	20191029_145554.png Views:	0 Size:	27.1 KB ID:	1679349


    Visual Studio SDK 4.7.2 is installed. Click image for larger version  Name:	20191029_145409.png Views:	0 Size:	120.0 KB ID:	1679351

    In the project settings, include paths are correct - C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\Include\um. Click image for larger version  Name:	20191029_145702.png Views:	0 Size:	49.5 KB ID:	1679348

    I tried to reinstall SDK - it did not help. Updated Studio to the latest version - it did not help too.
    Last edited by Den Commander; 10-29-2019, 08:12 AM.

    #2
    Resolved. Should use 4.6.2 SDK ONLY. I tried to use 4.7.2 and 4.8 and had a problem. But it`s hardcoded inside of UE unrealbuildtool Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs
    "TryReadInstallDirRegistryKey32("Microsoft\\Microsoft SDKs\\NETFXSDK\\4.6.2", "KitsInstallationFolder", out OutInstallDir);"
    So, in next versions of UE maybe SDK version will change to another. Check it by yourself.

    Comment

    Working...
    X