Open airbone42 opened 10 years ago
Could you paste the entire error please
Sure:
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 GET https://registry.npmjs.org/fft npm http GET https://registry.npmjs.org/portfinder/0.2.1 npm http 304 https://registry.npmjs.org/audio-streamer npm http 304 https://registry.npmjs.org/fft npm http 304 https://registry.npmjs.org/portfinder/0.2.1 npm http GET https://registry.npmjs.org/binaryjs npm http GET https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/binaryjs npm http 304 https://registry.npmjs.org/mkdirp 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/streamers npm http 304 https://registry.npmjs.org/binarypack npm http 304 https://registry.npmjs.org/streamws 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/commander npm http GET https://registry.npmjs.org/tinycolor npm http GET https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/underscore/1.2.3 npm http 304 https://registry.npmjs.org/buffercursor npm http 304 https://registry.npmjs.org/vows/0.6.1 npm http 304 https://registry.npmjs.org/tinycolor npm http 304 https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/eyes npm http 304 https://registry.npmjs.org/options
streamws@0.1.1 install /home/tzander/node-v0.10.25-linux-x86/bin/node_modules/node-core-audio/node_modules/audio-streamer/node_modules/binaryjs/node_modules/streamws node install.js
[34m[ws v0.1.1][39m[32m Attempting to compile blazing fast native extensions.[39m [34m[ws v0.1.1][39m[32m Native extension compilation successful![39m npm http 304 https://registry.npmjs.org/eyes
node-core-audio@0.3.9 install /home/tzander/node-v0.10.25-linux-x86/bin/node_modules/node-core-audio node-gyp rebuild
make: Entering directory /home/tzander/node-v0.10.25-linux-x86/bin/node_modules/node-core-audio/build' CXX(target) Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o ../NodeCoreAudio/AudioEngine.cpp: In constructor ‘Audio::AudioEngine::AudioEngine(v8::Local<v8::Function>&, v8::Local<v8::Object>, bool)’: ../NodeCoreAudio/AudioEngine.cpp:78:51: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘unsigned int’ [-Wformat] CXX(target) Release/obj.target/NodeCoreAudio/NodeCoreAudio/NodeCoreAudio.o SOLINK_MODULE(target) Release/obj.target/NodeCoreAudio.node /usr/bin/ld:/home/tzander/node-v0.10.25-linux-x86/bin/node_modules/node-core-audio/gyp/lib/libportaudio.a: file format not recognized; treating as linker script /usr/bin/ld:/home/tzander/node-v0.10.25-linux-x86/bin/node_modules/node-core-audio/gyp/lib/libportaudio.a:1: syntax error collect2: error: ld returned 1 exit status make: *** [Release/obj.target/NodeCoreAudio.node] Fehler 1 make: Leaving directory
/home/tzander/node-v0.10.25-linux-x86/bin/node_modules/node-core-audio/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/tzander/node-v0.10.25-linux-x86/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.2.0-4-686-pae
gyp ERR! command "node" "/home/tzander/node-v0.10.25-linux-x86/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/tzander/node-v0.10.25-linux-x86/bin/node_modules/node-core-audio
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! node-core-audio@0.3.9 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-core-audio@0.3.9 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 Linux 3.2.0-4-686-pae npm ERR! command "/home/tzander/node-v0.10.25-linux-x86/bin/node" "/home/tzander/node-v0.10.25-linux-x86/bin/npm" "install" "node-core-audio" npm ERR! cwd /home/tzander/node-v0.10.25-linux-x86/bin npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.24 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/tzander/node-v0.10.25-linux-x86/bin/npm-debug.log npm ERR! not ok code 0
Hi! getting the same error here aswell, but on windows. Log below.
[Image removed] I removed the image, and instead include this to better represent the problem.
c:\Users\<username>\<random path>\node_modules\node-core-audio\build\NodeCoreAudio.vcxproj(47,54): error MSB4025: The project file could not be loaded. Invalid character in the given encoding. Line 47, position 54.
gyp ERR! build error
EDIT:
So apparently this bug was caused by node-gyp because my user directory name (C:/Users/
For a better explanation check out this thread: https://github.com/TooTallNate/node-gyp/issues/297
Note! This issue is indeed not the same as OP's, but it's still an issue that should be noted to the users.. but because - as stated previously - the issue resides within node-gyp it should mainly be reported to their GitHub site.
I have this on a raspberry Pi (user name is default -pi-):
make: Entering directory '/home/pi/node_modules/node-core-audio/build'
CXX(target) Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o
../NodeCoreAudio/AudioEngine.h: In constructor ‘Audio::AudioEngine::AudioEngine(v8::Localv8::Object)’:
../NodeCoreAudio/AudioEngine.h:110:11: warning: ‘Audio::AudioEngine::m_pLocker’ will be initialized after [-Wreorder]
../NodeCoreAudio/AudioEngine.h:100:5: warning: ‘bool Audio::AudioEngine::m_bOutputIsEmpty’ [-Wreorder]
../NodeCoreAudio/AudioEngine.cpp:27:1: warning: when initialized here [-Wreorder]
../NodeCoreAudio/AudioEngine.cpp:85:48: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘unsigned int’ [-Wformat]
../NodeCoreAudio/AudioEngine.cpp: In member function ‘void Audio::AudioEngine::applyOptions(v8::Localv8::Object)’:
../NodeCoreAudio/AudioEngine.cpp:216:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../NodeCoreAudio/AudioEngine.cpp: In member function ‘void Audio::AudioEngine::RunAudioLoop()’:
../NodeCoreAudio/AudioEngine.cpp:391:180: error: ‘memcpy’ was not declared in this scope
../NodeCoreAudio/AudioEngine.cpp:406:11: error: ‘Sleep’ was not declared in this scope
NodeCoreAudio.target.mk:85: recipe for target 'Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o' failed
make: *\ [Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o] Error 1
make: Leaving directory '/home/pi/node_modules/node-core-audio/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Linux 3.10.25+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/node-core-audio
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! node-core-audio@0.4.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-core-audio@0.4.1 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 Linux 3.10.25+ npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-core-audio" npm ERR! cwd /home/pi/webAudio npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/webAudio/npm-debug.log npm ERR! not ok code 0
I'm encountering a very similar error trying to install node-core-audio. Was this ever resolved?
*Note:
streamws@0.1.1 install
/node_modules/node-core-audio/node_modules/audio-streamer/node_modules/binaryjs/node_modules/streamws node install.js
[ws v0.1.1] Attempting to compile blazing fast native extensions. [ws v0.1.1] Native extension compilation successful!
node-core-audio@0.4.1 install
/node_modules/node-core-audio node-gyp rebuild
make: Entering directory <app-path>/node_modules/node-core-audio/build' CXX(target) Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o In file included from ../NodeCoreAudio/AudioEngine.cpp:9:0: ../NodeCoreAudio/AudioEngine.h: In constructor ‘Audio::AudioEngine::AudioEngine(v8::Local<v8::Object>)’: ../NodeCoreAudio/AudioEngine.h:110:11: warning: ‘Audio::AudioEngine::m_pLocker’ will be initialized after [-Wreorder] Locker* m_pLocker; ^ ../NodeCoreAudio/AudioEngine.h:100:5: warning: ‘bool Audio::AudioEngine::m_bOutputIsEmpty’ [-Wreorder] m_bOutputIsEmpty, ^ ../NodeCoreAudio/AudioEngine.cpp:27:1: warning: when initialized here [-Wreorder] Audio::AudioEngine::AudioEngine( Local<Object> options ) : ^ ../NodeCoreAudio/AudioEngine.cpp: In member function ‘void Audio::AudioEngine::applyOptions(v8::Local<v8::Object>)’: ../NodeCoreAudio/AudioEngine.cpp:216:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < oldBufferCount; i++) { ^ ../NodeCoreAudio/AudioEngine.cpp: In member function ‘void Audio::AudioEngine::RunAudioLoop()’: ../NodeCoreAudio/AudioEngine.cpp:391:180: error: ‘memcpy’ was not declared in this scope memcpy(m_cachedOutputSampleBlockForWriting, m_cachedOutputSampleBlock[m_uCurrentReadBuffer], m_uNumCachedOutputSamples[m_uCurrentReadBuffer] * m_uOutputChannels * m_uSampleSize); ^ ../NodeCoreAudio/AudioEngine.cpp:406:11: error: ‘Sleep’ was not declared in this scope Sleep(1); ^ make: *** [Release/obj.target/NodeCoreAudio/NodeCoreAudio/AudioEngine.o] Error 1 make: Leaving directory
make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.13.0-45-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd
npm ERR! node-core-audio@0.4.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-core-audio@0.4.1 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 Linux 3.13.0-45-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--save" "node-core-audio"
npm ERR! cwd
To install the lib on ubuntu, i had to do a little modification, see #41
Same problem on Mac OSX. It says the command that failed is node-gyp rebuild
Hi,
when I try to install node-core-audio to my Debian instance I end up with "make failed with exit code: 2".
Before that I get a warning in AudioEngine.cpp:78:51 that argument 3 has to be type "long int", but "unsinged int" was used.
Is that a known problem? How can I fix it?
Regards, Tobias.