AudioNet / node-core-audio

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

undefined symbol: Pa_Initialize on Ubuntu 12.04 #33

Open kommander opened 10 years ago

kommander commented 10 years ago

Getting: node: symbol lookup error: /home/sebastian/ots0614/node_modules/node-core-audio/build/Release/NodeCoreAudio.node: undefined symbol: Pa_Initialize

Having PA v19 installed.

xseignard commented 9 years ago

Hello, Same problem here, i'm on ubuntu 14.10, I installed portaudio with the following

sudo apt-get install libportaudio-dev libportaudio0

Any idea?

xseignard commented 9 years ago

Any updates?

jdfreder commented 9 years ago

I encountered the same problem, it may be the version of port audio... I haven't checked yet though.

jdfreder commented 9 years ago

... I should add, I'm running this on a Raspberry PI (Rasbian).

jdfreder commented 9 years ago

@xseignard did you ever get this to work?

xseignard commented 9 years ago

no, I gave up and used a combination of web audio api + webosckets

guicontat commented 9 years ago

Hello,

I'm on Ubuntu 14.04 and I tried those things :

Download Port Audio source in ~/node_modules/node-core-audio/portaudio with this link http://www.portaudio.com/archives/pa_stable_v19_20140130.tgz

(Don't forget to remove the previous portaudio folder, and name the newest "portaudio" instead of pa_stable_v19_blablabla)

Then in portaudio folder

./configure make install

Then i changed the binding.gyp file in the module folder, especially the linux part

'OS=="linux"', { "libraries" : [ '<(module_root_dir)/portaudio/lib/.libs/libportaudio.so', '<(module_root_dir)/portaudio/include/portaudio.h' ], 'cflags': [ "-fno-exceptions -lrt -lasound -ljack -lpthread -fPIC" ], 'cflags!': [ "-fno-exceptions-lrt -lasound -ljack -lpthread -fPIC" ], 'cflags_cc!': [ "-fno-exceptions -lrt -lasound -ljack -lpthread -fPIC"], 'cflags_cc': [ "-std=c++0x -lrt -lasound -ljack -lpthread -fPIC" ] }

And after that i start "node-gyp rebuild" in the module folder

And it seem to work !

jdfreder commented 9 years ago

Thanks @guicontat ! I've been using WebAudio over SlimerJS, but I'd like to still give this a try.

maximilianmikus commented 9 years ago

thx @guicontat that worked!

ZECTBynmo commented 9 years ago

Thanks for working towards Ubuntu support!! Especially @guicontat

Since it appears you guys have gotten it working, would anyone be willing to submit a pull request? :)

Much appreciated!

guicontat commented 9 years ago

@ZECTBynmo Can you add me in the contributors in order to create a new branch please :) ?

ZECTBynmo commented 9 years ago

@guicontat why not just fork the repository?

renschler commented 6 years ago

I just ran into this issue and like @jdfreder I am also running this on a Raspberry PI (Rasbian).