openairplay / node_airtunes

node.js AirTunes v2 implementation: stream wirelessly to Apple audio devices.
BSD 2-Clause "Simplified" License
273 stars 84 forks source link

El Capitan missing openssl header files #39

Open Geraldf opened 9 years ago

Geraldf commented 9 years ago

Running npm install will result in an error message indicating missing openssl header files:

> airtunes@0.1.7 install /Users/geraldf/node_modules/airtunes
> node-gyp rebuild
  CXX(target) Release/obj.target/airtunes/src/codec.o
../src/codec.cc:5:10: fatal error: 'openssl/aes.h' file not found
#include <openssl/aes.h>

After reading the web, it seams that the header files have been excluded from el capitan. the libraries should be still there. I have no idea to change the npm install method to use a different location for the openssl header files.

clanger9 commented 8 years ago

I was able to install airtunes on El Capitan by first installing OpenSSL (via macports) and then specifying the location to the new headers with: CXXFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib npm install airtunes

Geraldf commented 8 years ago

In which file did you make the changes to CXXFLAGS?

clanger9 commented 8 years ago

I did not make any file changes - that is the command I used to build & install.