win7+puerts: DllNotFoundExceptio
2022-12-28 本文已影响0人
taiyosen
问题背景
unity项目中使用了puerts,在开发机(win10)和大部分win7上都表现正常,但在某些win7机器上则报DllNotFoundException。
在目标机器上LoadLibrary报错:无法定位程序输入点 EventSetInformation 于动态链接库 ADVAPI32.dll 上。

解决过程
首先去github上提了个issue: https://github.com/Tencent/puerts/issues/1104
然后在win7上尝试build了puerts.dll,但问题依旧
试图再把v8也build一下,发现在win7上好麻烦,node14不支持,要改make脚本,改完又是google的工具包跑起来各种问题,最后放弃
解决方案
安装补丁KB3080149
https://catalog.update.microsoft.com/Search.aspx?q=KB3080149
注意选择正确的补丁版本,安装后LoadLibrary成功,游戏也可以正常跑了。
