AudioNet / node-core-audio

Bindings for PortAudio giving JavaScript access to sound card samples (mostly unmaintained)
MIT License
330 stars 66 forks source link

install fails for node 4.1.0 because of using unsported header files #57

Open Janislav opened 8 years ago

Janislav commented 8 years ago

Problem

I tried to install node-core-audio under node js 4.1.0 on mac os, while compiling i get following error:

  CXX(target) Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o
In file included from ../NodeCoreAudio/AudioEngine.cpp:9:
In file included from /Users/jboerner/develop/private_projects/node_sampler/static/node_modules/node-core-audio/NodeCoreAudio/AudioEngine.h:11:
/Users/jboerner/.node-gyp/4.1.0/include/node/node_internals.h:6:10: fatal error: 'util-inl.h' file not found
#include "util-inl.h"
         ^
1 error generated.

The reason is that your not allowed to include node internal headers in your code. See issue https://github.com/nodejs/node-gyp/issues/782.

This will not work for any newer nodejs version, at least on mac os :/.

Syzgyn commented 8 years ago

I was able to get it to build by cloning the repo into my node_modules folder, then npm install . from inside of it.

Now if I could get it to do anything besides send static to my speakers, that would be great.