evandcoleman / node-appletv

A node module for interacting with an Apple TV (4th-generation or later) over the Media Remote Protocol.
https://evandcoleman.github.io/node-appletv/
MIT License
180 stars 48 forks source link

node-sodium build error on Mojave #15

Closed ming-codes closed 4 years ago

ming-codes commented 6 years ago

I see node-appletv is on sodium@2. I'm having trouble building this on MacOS Mojave, but no problem with sodium@3. Perhaps it's time to upgrade?

pponce commented 5 years ago

i'm having the same issue trying to install homebridge-apple-tv. This package requires sodium and it won't build.

chimai commented 5 years ago

The same issue, can't install node-appletv on both MacOS and raspberry pi 3.

WizBangCrash commented 5 years ago

The same issue on my Linux PC

WizBangCrash commented 5 years ago

I installed the following and re-ran the node-appletv install and all worked for me:

sudo apt-get install libtool autoconf automake

twentyNoise commented 5 years ago

I see node-appletv is on sodium@2. I'm having trouble building this on MacOS Mojave, but no problem with sodium@3. Perhaps it's time to upgrade?

Same here

WizBangCrash commented 5 years ago

@twentyNoise If you want to build your own version take a look at the develop branch of my fork. This is built with sodium 3.0.2 and mdns 2.4.0. All seems to work fine for on macOS 10.14.2 and I've also built it on top of a node 11.6 docker image running on my Synology NAS. I'm doing a bit more testing and then I was going to send @edc1591 a pull request to see if he will update the main repo. You will need to install the following Homebrew packages to build it on macOS: $ brew install libtool autoconf automake

twentyNoise commented 5 years ago

@twentyNoise If you want to build your own version take a look at the develop branch of my fork. This is built with sodium 3.0.2 and mdns 2.4.0.

I can do this specifically for this plugin (node-appletv), but how would I do this for homebridge-theater-mode or homebridge-apple-tv which both install node-appletv themselves?

WizBangCrash commented 5 years ago

@twentyNoise If you want to build your own version take a look at the develop branch of my fork. This is built with sodium 3.0.2 and mdns 2.4.0.

I can do this specifically for this plugin (node-appletv), but how would I do this for homebridge-theater-mode or homebridge-apple-tv which both install node-appletv themselves?

Good question. Unfortunately I am not familiar with either of those packages so I'm not sure I can help. Sorry. For my own docker image I added the following statement:

RUN npm install --unsafe-perm sodium@3.0.2 \
  && npm install git+https://github.com/WizBangCrash/node-appletv.git

Are you able to uninstall and then install the packages using the above npm commands?

evandcoleman commented 5 years ago

@WizBangCrash if you'd like to open a PR with those changes, I'd be happy to take a look!

VannaDii commented 5 years ago

I think this is resolved by PR #20

twentyNoise commented 5 years ago

@twentyNoise If you want to build your own version take a look at the develop branch of my fork. This is built with sodium 3.0.2 and mdns 2.4.0.

@WizBangCrash - I just installed this via your Fork. It installed OK but the key changes that you added don't seem to work. The Tv button, the LongTv button etc. Any idea why?

evandcoleman commented 4 years ago

Fixed in 1.0.11