kexplo / electron-edge

Run .NET and Node.js code in-process on Electron
http://tjanczuk.github.io/edge
Other
427 stars 36 forks source link

Trying to get Electron Edge up and running in Raspberry Pi Pixel for VBox i386 build. #38

Open guyelight opened 7 years ago

guyelight commented 7 years ago

I'm trying to build a Electron application for Windows and the Raspberry Pi Linux distribution. I really want to use Electron-Edge to allow me to use C# libraries. I'm looking to do a proof of concept for Windows, Raspberry Pi VBox, and the Actual Raspberry Pi ARM in the future.

The only issue I see is that Electron-Edge requires Mono x64, why? I have met all the other requirements. Is there something I need or can do in the build to fix this? Also what would I need to do for Mono Arm in the future?

I have install Mono 4.2.4 i386 and have built everything, but I'm getting the following error:

Uncaught Error: /home/pi/GH/node_modules/electron-edge/build/Release/edge_nativeclr.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEi at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20) at Object.Module._extensions..node (module.js:598:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (/home/pi/GH/node_modules/electron-edge/lib/edge.js:51:10) at Object. (/home/pi/GH/node_modules/electron-edge/lib/edge.js:172:3)

What needs to be changed in the build to allow this to work?

guyelight commented 7 years ago

Got it to work by getting source and rebuilding with node-gyp and npm install of local build.