Streampunk / grandiose

Node.JS native bindings to Newtek NDI(tm).
Apache License 2.0
189 stars 48 forks source link

Support for Linux on arm #19

Closed hrueger closed 1 year ago

hrueger commented 1 year ago

Hi, as long as I'm not completely mistaken, this lib currently doesn't support linux on arm. I'm particularly interested in support for arm64 to use it with Raspberry Pi OS 64bit. The Linux NDI SDK includes lib builds for arm64.

If someone gives me a hint on what config files to update, I'm happy to give that a shot and contribute 👍

Julusian commented 1 year ago

https://github.com/Streampunk/grandiose/commit/93e016a521c89a535c2c08c34ca493e4ce978235

This may work, or target_arch may not be being resolved correctly for this to work. I've tried it on a pi which I don't remember if its running an arm or arm64 os, and it is trying to build for arm which fails.

hrueger commented 1 year ago

I've just cloned the repo to a Pi running 64bit Pi OS, checked out the feat/more-platforms branch, ran npm i and then require(".").isSupportedCPU() in the node REPL. Works fine and prints true 👍