Closed yadomi closed 6 years ago
I have no Mac, sorry. Please use the search facility, there are users that report using this successfully since version 1.1.5 on MacOS: https://github.com/OpenZWave/node-openzwave-shared/pull/45
This issue should maybe be re-opened. I'm encountering this problem still in MacOS Mojave and it's very unclear what's wrong. I tried both brew and source install of libopenzwave with no luck.
The command:
pkg-config --variable=libdir libopenzwave
Returns:
Package libopenzwave was not found in the pkg-config search path.
Perhaps you should add the directory containing "libopenzwave.pc"
to the PKG_CONFIG_PATH environment variable
No package "libopenzwave" found
There is no such file on my system using find /usr/ -name libopenzwave.pc
If I knew how to get that zwave library to be found I imagine this might work.
So i've tried to use this library on macOS but with many try I didn't been able to get something that works.
I'm using macOS High Sierra (10.13.3), here what i've done so far:
I tested first with
open-zwave
installed via homebrew:But the installation failed:
No luck here, look like the homebrew installation does not add the
libopenzwave.pc
, so I made a simlink to the.dylib
but still can't installSo I removed
open-zwave
with homebrew and tried to build it myself:Ok, everything looks good,
yarn add openzwave-shared
is successfulSo I try in a js file:
But got this issue https://github.com/OpenZWave/node-openzwave-shared/issues/214, but ok nevermind I add some arguments and some event handler:
And finnaly I got some message from openzwave but...
And that all I got, no logs from events, no more output, no retry whatsoever.
I've tried running node as root, but got the same exact behavior, also tried setting up inside a docker until I discoverd that you can't share a device with the current docker for mac version.
So, does this lib is actually even usable on macOS ?