-
Notifications
You must be signed in to change notification settings - Fork 7
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
Changes back into upstream? #4
Comments
Hi @ralphtheninja , It's not part of the plans, currently. Our understanding is that these changes would have some difficulty being merged, since they are for Android, which is not "officially" supported and iOS, which is not supported at all. The build process for native modules for So you'd probably still need to have a distinct binary for nodejs-mobile, depending on how the other systems behave on having an entry for I hope this is helpful. |
If it's Android only we're talking about, this linking might work with In case you want to give it a try. |
Aaah good to know. So we probably need to take this into account when making prebuilt binaries for |
@ralphtheninja have you build leveldown successfuly using nodejs-mobile on Android? |
@blueye We ended up building against node core, see https://github.com/Level/leveldown#notes |
@vweevers It did not work for me. I use pouchdb which depends on leveldown. When I run pouchdb on Android using nodejs-mobile, some errors occur as below. My project builds on windows and then I copy it into Android with corresponding leveldown library. Could you give me some suggestions? internal/modules/cjs/loader.js:1207
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: dlopen failed: cannot locate symbol "napi_create_external" referenced by "/data/data/xxxx/files/nodejs-project/prebuilds/android-arm/node.napi.armv7.node"...
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1207:18)
at Module.load (internal/modules/cjs/loader.js:1001:32)
at Function.Module._load (internal/modules/cjs/loader.js:900:14)
at Module.require (internal/modules/cjs/loader.js:1043:19)
at require (internal/modules/cjs/helpers.js:77:18) |
If you're using |
@vweevers Thanks for your suggestion. I will try it later. |
@blueye |
Have you thought anything about or tried to get the changes back into
node-gyp
? We're trying to make prebuilt binaries forleveldown
on arm systems. It would obviously be nice to supportnodejs-mobile
by doing so and we'd like to stick withnode-gyp
as much as possible.cc @vweevers
The text was updated successfully, but these errors were encountered: