-
Notifications
You must be signed in to change notification settings - Fork 185
Description
- Project: nodejs-mobile-react-native
- Version: 0.6.2
- Mobile device: simulator
- Mobile OS and version: android 11.0
- Development Node.js: v12.19.0
- Development platform: MacOS Big Sur 11.1
I use nodejs-mobile-react-native library to install my nodejs project into mobile and realm is a nosql database can be run in nodejs environment.
I want to compile realm.node to mobile but seem like android platform toolchain can not compile it.
Is there any way to compile realm to mobile platform like android
npm info lifecycle realm@10.4.0preinstall: realm@10.4.0install: realm@10.4.0
npm info linkStuff realm@10.4.0
npm info lifecycle realm@10.4.0
prebuild-install info begin Prebuild-install version 6.1.2
prebuild-install info install --build-from-source specified, not attempting download.
info TOOL Using Ninja generator, because ninja is available.
info CMD CLEAN
info RUN cmake -E remove_directory "/Users/suhao/GitHub/vue_native/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/realm/build"
info CMD CONFIGURE
info RUN cmake "/Users/suhao/GitHub/vue_native/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/realm" --no-warn-unused-cli -G"Ninja" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/Users/suhao/GitHub/vue_native/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/realm/build/Release" -DCMAKE_JS_INC="/Users/suhao/.cmake-js/node-x64/v12.19.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.19.0" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION" -DCMAKE_SHARED_LINKER_FLAGS="-undefined dynamic_lookup"
Dependencies: PACKAGE_NAME=realm-core;VERSION=10.6.0;OPENSSL_VERSION=1.1.1g;MDBREALM_TEST_SERVER_TAG=2021-03-24
info CMD BUILD
info RUN cmake --build "/Users/suhao/GitHub/vue_native/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/realm/build" --config Release
ERR! OMG Process terminated: 1
npm verb lifecycle realm@10.4.0install: unsafe-perm in lifecycle trueinstall: PATH: /Users/suhao/.nodebrew/node/v12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/suhao/GitHub/vue_native/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/realm/node_modules/.bin:/Users/suhao/GitHub/vue_native/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/.bin:/Users/suhao/GitHub/vue_native/android/../nodejs-assets/nodejs-project/node_modules/.bin:/Users/suhao/GitHub/vue_native/android/node_modules/.bin:/Users/suhao/GitHub/vue_native/node_modules/.bin:/Users/suhao/GitHub/node_modules/.bin:/Users/suhao/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/suhao/.nodebrew/node/v12.19.0/bin:/Users/suhao/.nodebrew/node/v12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/suhao/GitHub/vue_native/node_modules/.bin:/usr/local/opt/elasticsearch@6/bin:/usr/local/opt/mysql@5.7/bin:/usr/local/opt/openssl@1.1/bin:/Users/suhao/.nodebrew/current/bin:/Users/suhao/.rbenv/shims:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/var/jenv/shims:/usr/local/opt/elasticsearch@6/bin:/usr/local/opt/mysql@5.7/bin:/usr/local/opt/openssl@1.1/bin:/Users/suhao/.nodebrew/current/bin:/Users/suhao/.rbenv/shims:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/var/jenv/shims:/usr/local/opt/elasticsearch@6/bin:/usr/local/opt/mysql@5.7/bin:/usr/local/opt/openssl@1.1/bin:/Users/suhao/.nodebrew/current/bin:/Users/suhao/.rvm/gems/ruby-2.6.3/bin:/Users/suhao/.rvm/gems/ruby-2.6.3@global/bin:/Users/suhao/.rvm/rubies/ruby-2.6.3/bin:/Users/suhao/.rbenv/shims:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/var/jenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/aria2/bin:/usr/local/share/dotnet:
npm verb lifecycle realm@10.4.0/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/Users/suhao/google-cloud-sdk/bin:/usr/local/opt/elasticsearch@6/bin:/usr/local/opt/mysql@5.7/bin:/usr/local/opt/openssl@1.1/bin:/Users/suhao/.nodebrew/current/bin:/Users/suhao/.rvm/gems/ruby-2.6.3/bin:/Users/suhao/.rvm/gems/ruby-2.6.3@global/bin:/Users/suhao/.rvm/rubies/ruby-2.6.3/bin:/Users/suhao/.rbenv/shims:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/var/jenv/shims:/Users/suhao/Library/Android/sdk/platform-tools:/usr/local/Cellar/node/12.3.1/bin:/Applications/flutter/bin:/Users/suhao/.rvm/bin:/Users/suhao/Library/Android/sdk/tools:/development/flutter/bin:/Users/suhao/Library/Android/sdk/platform-tools:/usr/local/Cellar/node/12.3.1/bin:/Applications/flutter/bin:/Users/suhao/Library/Android/sdk/tools:/Users/suhao/Library/Android/sdk/platform-tools:/development/flutter/bin:/Users/suhao/Library/Android/sdk/platform-tools:/usr/local/Cellar/node/12.3.1/bin:/Applications/flutter/bin:/Users/suhao/Library/Android/sdk/tools:/Users/suhao/Library/Android/sdk/platform-tools:/development/flutter/bin:/Users/suhao/Library/Android/sdk/platform-tools:/usr/local/Cellar/node/12.3.1/bin:/Applications/flutter/bin:/Users/suhao/Library/Android/sdk/tools:/Users/suhao/Library/Android/sdk/platform-tools:/development/flutter/bininstall: CWD: /Users/suhao/GitHub/vue_native/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project/node_modules/realm
npm verb lifecycle realm@10.4.0
npm info lifecycle realm@10.4.0~install: Failed to exec install script
npm verb stack Error: realm@10.4.0 install: prebuild-install -r napi || cmake-js rebuild
npm verb stack Exit status 1
npm verb stack at EventEmitter. (/Users/suhao/.nodebrew/node/v12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
npm verb stack at EventEmitter.emit (events.js:314:20)
npm verb stack at ChildProcess. (/Users/suhao/.nodebrew/node/v12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:314:20)
npm verb stack at maybeClose (internal/child_process.js:1021:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
npm verb pkgid realm@10.4.0
npm verb cwd /Users/suhao/GitHub/vue_native/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-arm64-v8a/nodejs-project
npm verb Darwin 20.2.0
npm verb argv "/Users/suhao/.nodebrew/node/v12.19.0/bin/node" "/Users/suhao/.nodebrew/current/bin/npm" "--verbose" "rebuild" "--build-from-source"
npm verb node v12.19.0
npm verb npm v6.14.8
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! realm@10.4.0 install: prebuild-install -r napi || cmake-js rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the realm@10.4.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]