New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using FFI without NPM #99
Comments
When you run the You may distribute that However, that approach has its limits. The FFI module is built for a specific platform (OS+CPU), that is the platform where you run Currently that (re)building requires NPM to be run, because the author of the FFI module is not going to pre-build the module for all of its supported platforms on his side (issue #53). So if you are going to support, say, four different platforms (Win32, Win64, Linux32, Linux64), you are to build the FFI module four times (once for each of the supported platforms) and to distribute the four different |
Hi Mithgol, Thank you very much for your help, it's crystal clear !! :) would you have already built FFI for some platforms ? would this code be available somewhere ? thanks for your precisions. Julien |
I've never built FFI and I do not know if any public FFI builds are available. |
There aren't any rebuilt binaries for node-ffi at the moment. Hopefully node will offer some sort of prebuilt binary solution for native addons in the future, but today you need to compile it yourself unfortunately. Nothing's stoping you from pre-compiling it for your supported platforms before shipping it off to your users, so that's one possibility. |
Hello,
I'm working on a project to make a "data plugin", that will be a very thin node.js server deployed near the user database to talk only with my server through HTTP/REST/JSON and binding with C/C++ SQL API
For the backend SQL queries, I would like to try FFI.
To be as plug'n'play as possible, I don't want to force my future users to understand NPM...
So I would like to use FFI without NPM.
How can I do that ?
If I call "require('./lib/ffi.js") in my node.js app and if I replace the standard require(ref) with require(./ref.js) in your files in the lib, would it work ?
Thanks in advance for your help.
Julien
The text was updated successfully, but these errors were encountered: