Here's the situation :
I have written a small node application on Windows. This application requires a few non-core node modules such as 'ffi' and 'express'. I have installed those with npm and everything works fine.
Now I want to port this application on an embedded build root linux distribution, which has no compiler nor internet access.
At first, as js is interpreted, I thought just copying the modules would do but I got 'invalid ELF header' errors so it seems those modules require compilation and are thus OS dependent.
Issue :
So I would like to generate those modules for this embedded linux distribution from my Windows machine.
I allready have the cross-compiler, as I use it for my main application on this embedded linux (via cmake and eclipse).
--> How can I generate those modules ?
Do I need is to generate a makefile which targets the right OS ? If so, how ?
Or do I need to use gyp ? If so, how ?
Is there another way ? (If absolutely necessary, I could use a linux in a virtual machine but this would make it much heavier and I'd still need cross compilation so this is the last resort).
I am a C/C++ Windows developper. I have little to no experience with Node, js and linux so please be explicit in your answers.
Thank you very much.