puerts icon indicating copy to clipboard operation
puerts copied to clipboard

[UE4.26.2+NodeJS后端] I libnode.dll没有复制到Binaries导致启动编辑器时报错

Open raytaylorlin opened this issue 2 years ago • 3 comments

error log | 日志或报错信息

puerts_unreal_demo项目,UE4.26.2+NodeJS后端启动报错,报Plugin 'Puerts' failed to load because module 'JsEnv' could not be loaded

image

看了UE的log发现有如下内容:

[2022.05.28-09.11.16:154][  0]LogWindows: Failed to load 'G:/work/puerts_unreal_demo/Plugins/Puerts/Binaries/Win64/UE4Editor-JsEnv.dll' (GetLastError=126)
[2022.05.28-09.11.16:154][  0]LogWindows:   Missing import: libnode.dll
[2022.05.28-09.11.16:154][  0]LogWindows:   Looked in: ../../../Engine/Binaries/Win64
[2022.05.28-09.11.16:154][  0]LogWindows:   Looked in: G:/work/puerts_unreal_demo/Binaries/Win64
[2022.05.28-09.11.16:154][  0]LogWindows:   Looked in: G:\work\puerts_unreal_demo\Binaries\Win64
[2022.05.28-09.11.16:154][  0]LogWindows:   Looked in: G:\work\puerts_unreal_demo\Plugins\Puerts\Binaries\Win64

然后我把nodejs/lib/Win64/libnode.dll复制到Plugins/Puerts/Binaries/Win64下就好了,知会一下

raytaylorlin avatar May 28 '22 09:05 raytaylorlin

你有从vs那边f5启动吗? 正常触发编译的话会自动拷贝libnode.dll的

FishOrBear avatar May 30 '22 10:05 FishOrBear

你有从vs那边f5启动吗? 正常触发编译的话会自动拷贝libnode.dll的

我是用Rider,点Debug编译启动的

raytaylorlin avatar Jun 05 '22 03:06 raytaylorlin

在jsenv.build.cs中,将代码改回去试试 https://github.com/Tencent/puerts/issues/620

FishOrBear avatar Jun 13 '22 01:06 FishOrBear