jean-emmanuel / open-stage-control

Libre and modular OSC / MIDI controller
https://openstagecontrol.ammd.net
GNU General Public License v3.0
701 stars 88 forks source link

[Bug] Cannot build package on ARM #712

Closed Rippert closed 3 years ago

Rippert commented 3 years ago

open-stage-control@1.9.1 package node scripts/package.js

Packaging app for platform linux arm64 using electron v12.0.5 Downloading patent safe FFMPEG for platform linux arm64 using electron v12.0.5 Failed to load FFMPEG Error: spawn unzip ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19) at onErrorNT (node:internal/child_process:480:16) at processTicksAndRejections (node:internal/process/task_queues:81:21) { errno: -2, code: 'ENOENT', syscall: 'spawn unzip', path: 'unzip', spawnargs: [ '-o', '/tmp/tmp-safe-ffmpeg/ffmpeg-v12.0.5-linux-arm64.zip', '-d', '/tmp/electron-packager/linux-arm64-template' ] } /home/tedrippert/src/open-stage-control/node_modules/electron-packager-plugin-non-proprietary-codecs-ffmpeg/dist/index.js:33 done(new Error(err)); ^

Error: Error: spawn unzip ENOENT at /home/tedrippert/src/open-stage-control/node_modules/electron-packager-plugin-non-proprietary-codecs-ffmpeg/dist/index.js:33:10 at processTicksAndRejections (node:internal/process/task_queues:94:5)

jean-emmanuel commented 3 years ago

The error shows that "unzip" is missing, you can install it with the distrib's package manager.

Rippert commented 3 years ago

You are correct! Thank You! Now if I want to install it on another Raspberry Pi, do I move the whole open-stage-control-linux-arm64 directory to the new machine and set a symlink in the PATH?

jean-emmanuel commented 3 years ago

Yes (if they have the same cpu architecture). To enable midi support (if needed) on that machine you'll need to follow the instructions under "other systems" here on that system.

Rippert commented 3 years ago

Thank you. I already had to do the "other systems" thing for a previous install. I will try it tomorrow and close this issue if it works.

Rippert commented 3 years ago

I did test installing this on another Raspberry Pi from the package, and it worked. Thanks again.