The project needed to load DLLS in NodeJS, learned that the easiest solution was to use Node-FFI, and then started a half-day of novice tramp.
This problem occurs when NPM install FFI sets up the project
This problem occurs when NPM install FFI sets up the project
error: no member named 'ForceSet' in 'v8::Object'
After checking on the official website, the author indicated that FFI does not support nodeJS 10 or above at present. Then I researched and walked through a lot of pothoods and found electronrebuild, which actually automatically goes down the corresponding Node header file and lib according to the electron version and platform version used in your project, and successfully solved the COMPILATION problem of FFI. After that, I tried to package and release, but there was another problem. Debugging code in Vscode was running well, and lifting directly with Electron. Exe would indicate that dynamic library loading failed
ffi.Library('./libfactorial'
This DLL loading code, please use the absolute path, modify the dynamic scheme, done
Read More:
- Summary of problems encountered in compiling opengl code
- Small problems encountered in compiling OpenGL under VS2010
- Summary of problems encountered in compiling and installing vtk7 + vs2013 / 2015 + cmake
- Problems in compiling VTK with cmake: solutions to error configuration process, project files may be invalid
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- An error is reported when the electron Vue Vue component introduces the electron
- The version number of robot JS running by electron does not match
- Xcode12 error in compiling cocos2d [How to Solve]
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- Solution to electron error “cannot find module app”
- Error: EPERM: operation not permitted, mkdir ‘D:\nodejs\node_modules\npm\node_cache\_npx‘
- Solve the problem that the tray of electron system disappears automatically
- A strange problem in compiling OpenGL program
- Methods of compiling and installing ffmpeg and libx264 in Linux
- A series of problems in configuring OpenGL development environment in vs2015
- Cannot find module ‘.. / lib / utils / unsupported. JS’ problem in installing node in centos7
- A solution to the problem of “straight ‘\ 357’ in program” when compiling GCC
- Some problems and solutions in learning opengl in vs2017
- Error in compiling pcl1.9.1: “class vtkdatasetmapper” has no member named “immediatemode rendering off”
- Error in compiling rmarkdown to PDF file` xxx.sty ‘ not found.