UE4.22.3 打包HTML5 失败, fatal error: 'Windows.h' file not found

如题,由于插件引用第三方库存在头文件冲突,
因此在头文件中用


#include"Windows/AllowWindowsPlatformTypes.h"
、、、
#include "Windows/HideWindowsPlatformTypes.h"

包裹第三方库文件,

打包HTML错误提示如下

UATHelper: Packaging (HTML5):     [1/4] MyActor.gen.cpp
UATHelper: Packaging (HTML5):     emcc:INFO: emcc step "parse arguments and setup" took 0.02 seconds
UATHelper: Packaging (HTML5):     In file included from D:\Work\UnRealProject\t1\Intermediate\Build\HTML5\UE4\Inc\t1\MyActor.gen.cpp:8:
UATHelper: Packaging (HTML5):     In file included from D:\Work\UnRealProject\t1\Source\t1/MyActor.h:13:
UATHelper: Packaging (HTML5):     In file included from Runtime\Core\Public\Windows/AllowWindowsPlatformTypes.h:3:
UATHelper: Packaging (HTML5):     In file included from Runtime\Core\Public\Windows/WindowsHWrapper.h:10:
UATHelper: Packaging (HTML5):     Runtime\Core\Public\Windows/MinWindows.h(68,10):  fatal error: 'Windows.h' file not found
UATHelper: Packaging (HTML5):     #include <Windows.h>
UATHelper: Packaging (HTML5):              ^~~~~~~~~~~
UATHelper: Packaging (HTML5):     1 error generated.
UATHelper: Packaging (HTML5):     shared:ERROR: compiler frontend failed to generate LLVM bitcode, halting
UATHelper: Packaging (HTML5):     [2/4] MyActor.cpp
UATHelper: Packaging (HTML5):     emcc:INFO: emcc step "parse arguments and setup" took 0.02 seconds
UATHelper: Packaging (HTML5):     In file included from D:\Work286066\UnRealProject\t1\Source\t1\MyActor.cpp:4:
PackagingResults: Error: 'Windows.h' file not found

尝试了删除,#include"Windows/AllowWindowsPlatformTypes.h" 和 #include "Windows/HideWindowsPlatformTypes.h"就能正常打包。
怎么解决啊。完全不知道问题出在哪里

看看是不起那2个里面还包含了Windows.h这个,然后这个包没有或者路径不对

https://blog.csdn.net/g0415shenw/article/details/108219820试试这个? https://blog.csdn.net/g0415shenw/article/details/108219820%E8%AF%95%E8%AF%95%E8%BF%99%E4%B8%AA%EF%BC%9F