zeromq.js icon indicating copy to clipboard operation
zeromq.js copied to clipboard

Build for android arm64

Open fabaumann91 opened this issue 6 years ago • 2 comments

Hello,

I am currently working on trying to compile the zmq.node native library for android. I am running a react-native app and have nodejs-mobile-react-native running in react native, process.arch returns arm64. I have tried compiling the library on the following platforms, but get runtime errors every time I try to reference the library

  • Windows 10 x64
  • Ubuntu 18.04 x64
  • Pixel 3 XL (termux)
  • Raspberry Pi 3 B+ (Raspbian)

I have also tried to use node-gyp with numerous different arguments, but have had no luck. Any assistance is appreciated.

Thank you

fabaumann91 avatar Jul 17 '19 20:07 fabaumann91

Please, could you try with the latest 6.0 beta release? If you run into any particular errors it would help us to see the actual error message. It's difficult to gauge what is wrong without more details.

rolftimmermans avatar Nov 05 '19 11:11 rolftimmermans

Also a problem when assembling in Android.

0 verbose cli /data/data/com.termux/files/usr/bin/node /data/data/com.termux/files/usr/bin/npm 1 info using [email protected] 2 info using [email protected] 3 timing npm:load:whichnode Completed in 4ms 4 timing config:load:defaults Completed in 5ms 5 timing config:load:file:/data/data/com.termux/files/usr/lib/node_modules/npm/npmrc Completed in 2ms 6 timing config:load:builtin Completed in 3ms 7 timing config:load:cli Completed in 8ms 8 timing config:load:env Completed in 2ms 9 timing config:load:project Completed in 17ms 10 timing config:load:file:/data/data/com.termux/files/home/.npmrc Completed in 5ms 11 timing config:load:user Completed in 5ms 12 timing config:load:file:/data/data/com.termux/files/usr/etc/npmrc Completed in 1ms 13 timing config:load:global Completed in 1ms 14 timing config:load:setEnvs Completed in 3ms 15 timing config:load Completed in 48ms 16 timing npm:load:configload Completed in 49ms 17 timing npm:load:mkdirpcache Completed in 1ms 18 timing npm:load:mkdirplogs Completed in 0ms 19 verbose title npm install zeromq@5 20 verbose argv "install" "zeromq@5" 21 timing npm:load:setTitle Completed in 5ms 22 timing config:load:flatten Completed in 9ms 23 timing npm:load:display Completed in 12ms 24 verbose logfile logs-max:10 dir:/data/data/com.termux/files/home/.npm/_logs/2024-02-06T19_23_12_578Z- 25 verbose logfile /data/data/com.termux/files/home/.npm/_logs/2024-02-06T19_23_12_578Z-debug-0.log 26 timing npm:load:logFile Completed in 33ms 27 timing npm:load:timers Completed in 1ms 28 timing npm:load:configScope Completed in 0ms 29 timing npm:load Completed in 106ms 30 timing config:load:flatten Completed in 1ms 31 timing arborist:ctor Completed in 2ms 32 silly logfile done cleaning log files 33 timing arborist:ctor Completed in 1ms 34 timing idealTree:init Completed in 34ms 35 timing idealTree:userRequests Completed in 13ms 36 silly idealTree buildDeps 37 silly fetch manifest zeromq@5 38 http fetch GET 200 https://registry.npmjs.org/zeromq 2166ms (cache revalidated) 39 silly placeDep ROOT [email protected] OK for: want: 5 40 silly fetch manifest [email protected] 41 silly fetch manifest node-gyp-build@^4.5.0 42 http fetch GET 200 https://registry.npmjs.org/nan 247ms (cache revalidated) 43 http fetch GET 200 https://registry.npmjs.org/node-gyp-build 13267ms (cache revalidated) 44 timing idealTree:#root Completed in 15510ms 45 silly placeDep ROOT [email protected] OK for: [email protected] want: 2.17.0 46 silly placeDep ROOT [email protected] OK for: [email protected] want: ^4.5.0 47 timing idealTree:node_modules/zeromq Completed in 29ms 48 timing idealTree:node_modules/nan Completed in 0ms 49 timing idealTree:node_modules/node-gyp-build Completed in 0ms 50 timing idealTree:buildDeps Completed in 15546ms 51 timing idealTree:fixDepFlags Completed in 3ms 52 timing idealTree Completed in 15601ms 53 timing reify:loadTrees Completed in 15605ms 54 timing reify:diffTrees Completed in 6ms 55 silly reify moves {} 56 timing reify:retireShallow Completed in 5ms 57 timing reify:createSparse Completed in 6ms 58 timing reify:loadBundles Completed in 0ms 59 timing reifyNode:node_modules/node-gyp-build Completed in 359ms 60 timing reifyNode:node_modules/nan Completed in 440ms 61 timing reifyNode:node_modules/zeromq Completed in 608ms 62 timing reify:unpack Completed in 611ms 63 timing reify:unretire Completed in 1ms 64 timing build:queue Completed in 5ms 65 timing build:link:node_modules/node-gyp-build Completed in 12ms 66 timing build:link Completed in 12ms 67 info run [email protected] install node_modules/zeromq node-gyp-build || npm run build:libzmq 68 info run [email protected] install { code: 1, signal: null } 69 timing reify:rollback:createSparse Completed in 129ms 70 timing reify:rollback:retireShallow Completed in 0ms 71 timing command:install Completed in 63129ms 72 verbose stack Error: command failed 72 verbose stack at ChildProcess. (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27) 72 verbose stack at ChildProcess.emit (node:events:511:28) 72 verbose stack at maybeClose (node:internal/child_process:1098:16) 72 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:304:5) 73 verbose pkgid [email protected] 74 verbose cwd /data/data/com.termux/files/home 75 verbose Linux 4.19.191-g8f8d3c889654-dirty 76 verbose node v20.2.0 77 verbose npm v9.6.6 78 error code 1 79 error path /data/data/com.termux/files/home/node_modules/zeromq 80 error command failed 81 error command sh -c node-gyp-build || npm run build:libzmq 82 verbose exit 1 83 timing npm Completed in 63828ms 84 verbose unfinished npm timer reify 1707247393278 85 verbose unfinished npm timer reify:build 1707247409527 86 verbose unfinished npm timer build 1707247409528 87 verbose unfinished npm timer build:deps 1707247409529 88 verbose unfinished npm timer build:run:install 1707247409547 89 verbose unfinished npm timer build:run:install:node_modules/zeromq 1707247409548 90 verbose code 1 91 error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2024-02-06T19_23_12_578Z-debug-0.log

Mezantrop74 avatar Feb 06 '24 19:02 Mezantrop74