AudioNet / node-core-audio

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

Build error #1

Closed marcj closed 11 years ago

marcj commented 11 years ago

Hey,

I've got an error during the installation of your lib via npm.

I have no idea, what to do now. Maybe you can help me?

$ npm install node-core-audio npm http GET https://registry.npmjs.org/node-core-audio npm http 304 https://registry.npmjs.org/node-core-audio npm http GET https://registry.npmjs.org/audio-streamer npm http 304 https://registry.npmjs.org/audio-streamer npm http GET https://registry.npmjs.org/binaryjs npm http 304 https://registry.npmjs.org/binaryjs npm http GET https://registry.npmjs.org/streamws npm http GET https://registry.npmjs.org/binarypack npm http GET https://registry.npmjs.org/streamers npm http 304 https://registry.npmjs.org/binarypack npm http 304 https://registry.npmjs.org/streamws npm http 304 https://registry.npmjs.org/streamers npm WARN package.json binarypack@0.0.2 No README.md file found! npm WARN package.json streamers@0.1.1 No README.md file found! npm http GET https://registry.npmjs.org/buffercursor npm http GET https://registry.npmjs.org/underscore/1.2.3 npm http GET https://registry.npmjs.org/vows/0.6.1 npm http GET https://registry.npmjs.org/tinycolor npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/buffercursor npm http 304 https://registry.npmjs.org/underscore/1.2.3 npm http 304 https://registry.npmjs.org/vows/0.6.1 npm http 304 https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/tinycolor npm http GET https://registry.npmjs.org/eyes

streamws@0.0.0 install /Users/marc/bude/node_modules/node-core-audio/node_modules/audio-streamer/node_modules/binaryjs/node_modules/streamws node install.js

[ws v0.0.0] Attempting to compile blazing fast native extensions. npm http 304 https://registry.npmjs.org/eyes [ws v0.0.0] Native extension compilation successful!

node-core-audio@0.1.0 install /Users/marc/bude/node_modules/node-core-audio node-gyp rebuild

COPY /Users/marc/bude/node_modules/node-core-audio/build/Release/portaudio_x86.dll CXX(target) Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o ../NodeCoreAudio/AudioEngine.cpp:266:15: warning: unused variable 'engine' [-Wunused-variable] AudioEngine* engine = AudioEngine::Unwrap( args.This() ); ^ ../NodeCoreAudio/AudioEngine.cpp:292:15: warning: unused variable 'engine' [-Wunused-variable] AudioEngine* engine = AudioEngine::Unwrap( args.This() ); ^ ../NodeCoreAudio/AudioEngine.cpp:386:18: warning: unused variable 'callback' [-Wunused-variable] Local callback = Local::Cast( args[0] ); ^ ../NodeCoreAudio/AudioEngine.cpp:20:7: warning: unused function 'nativeSleep' [-Wunused-function] void nativeSleep( unsigned int msecs ) { ^ 4 warnings generated. CXX(target) Release/obj.target/NodeCoreAudio/NodeCoreAudio/NodeCoreAudio.o In file included from ../NodeCoreAudio/NodeCoreAudio.cpp:4: In file included from /Users/marc/bude/node_modules/node-core-audio/NodeCoreAudio/stdafx.h:8: /Users/marc/bude/node_modules/node-core-audio/NodeCoreAudio/targetver.h:8:10: fatal error: 'SDKDDKVer.h' file not found

include

     ^

1 error generated. make: *\ [Release/obj.target/NodeCoreAudio/NodeCoreAudio/NodeCoreAudio.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:215:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17) gyp ERR! stack at Process._handle.onexit (child_process.js:674:10) gyp ERR! System Darwin 12.2.0 gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/marc/bude/node_modules/node-core-audio gyp ERR! node -v v0.8.7 gyp ERR! node-gyp -v v0.6.5 gyp ERR! not ok npm ERR! node-core-audio@0.1.0 install: node-gyp rebuild npm ERR! sh "-c" "node-gyp rebuild" failed with 1 npm ERR! npm ERR! Failed at the node-core-audio@0.1.0 install script. npm ERR! This is most likely a problem with the node-core-audio package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls node-core-audio npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.2.0 npm ERR! command "/opt/local/bin/node" "/opt/local/bin/npm" "install" "node-core-audio" npm ERR! cwd /Users/marc/bude/audiotest npm ERR! node -v v0.8.7 npm ERR! npm -v 1.1.49 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/marc/bude/audiotest/npm-debug.log npm ERR! not ok code 0

Unfortunately, the file /Users/marc/bude/audiotest/npm-debug.log does not exist.

ZECTBynmo commented 11 years ago

Are you on windows? That's the only platform that I've tested.

marcj commented 11 years ago

I'm actually on OSX 10.8.2. AFAIK the SDKDDKVer.h is only Windows stuff. Maybe I can get it flying without this ref.

ZECTBynmo commented 11 years ago

Great! Im responding from a phone right now, but is be happy to help you get it running when I get home in an hour or two

ZECTBynmo commented 11 years ago

you might be able to just #ifdef _WIN32 around that include and be good to go

marcj commented 11 years ago

Well, I've fixed now a lot issues with that lib. Those includes that throws these errors weren't even used in the entire lib, but I don't know what the windows environment require, actually. So I've removed all those includes and build works perfectly.