Open vjpr opened 2 years ago
I still can't use it
Also on M1 Mac. Unable to install with NPM. Would prefer to not have to do this manually locally. Would pushing this fix break anything for non-M1 users? I can open a PR if necessary.
Does https://github.com/TooTallNate/node-speaker/pull/109 accomplish fixing this ticket as well?
I would also like to use this package on an m1. Any movement on this?
any support on this?
same problem on raspberry pi
Here is the condition that is failing:
https://github.com/TooTallNate/node-speaker/blob/316afff5a393fce438cf7296011fcfc6e12aa9dc/deps/mpg123/mpg123.gyp#L107-L117
mpg123_cpu
is not defined.Here is where it is defined:
https://github.com/TooTallNate/node-speaker/blob/316afff5a393fce438cf7296011fcfc6e12aa9dc/deps/mpg123/mpg123.gyp#L49-L65
FIX: Change
arm
toarm64
.pnpm dlx node-gyp rebuild --verbose
If you look in
deps/mpg123/config/arm64
it doesn't exist. Onlyarm
does.Let's reconfigure.
As mentioned in
deps/mpg123/INSTALL
, we re-create the configure script.doc
is included by these lines inconfigure.ac
:https://github.com/TooTallNate/node-speaker/blob/316afff5a393fce438cf7296011fcfc6e12aa9dc/deps/mpg123/configure.ac#L23
https://github.com/TooTallNate/node-speaker/blob/316afff5a393fce438cf7296011fcfc6e12aa9dc/deps/mpg123/configure.ac#L2088
So we just get rid of that and run
autoreconf
.Set
package.json#dependencies
to