node-raylib icon indicating copy to clipboard operation
node-raylib copied to clipboard

Portable exe built with pkg failed to run

Open pixelpicosean opened this issue 5 years ago • 22 comments

OS: windows 10 Node: 12.18.2

It keeps saying: Error: A dynamic link library (DLL) initialization routine failed. no matter which tool I use (tried pkg, nexe, electron and nw.js)

pixelpicosean avatar Jul 07 '20 22:07 pixelpicosean

I've found the compiled raylib file had to be in the same directory. There's some similar issues in the pkg queue too...

RobLoach avatar Jul 08 '20 03:07 RobLoach

Still not work even I put node-raylib.node, node-raylib.exp, node-raylib.lib all in the same directory of exe.

pixelpicosean avatar Jul 08 '20 05:07 pixelpicosean

@pixelpicosean I have the same issue, I'm going to try a couple more things however.

77Z avatar Aug 29 '20 05:08 77Z

Yeah.. the only thing I could find is putting the .node file next the the executable, but that's it.

77Z avatar Aug 29 '20 06:08 77Z