Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: Pa_Initialize on Ubuntu 12.04 #33

Open
kommander opened this issue Jul 19, 2014 · 13 comments
Open

undefined symbol: Pa_Initialize on Ubuntu 12.04 #33

kommander opened this issue Jul 19, 2014 · 13 comments

Comments

@kommander
Copy link

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
Copy link
Contributor

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
Copy link
Contributor

Any updates?

@jdfreder
Copy link

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

@jdfreder
Copy link

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

@jdfreder
Copy link

@xseignard did you ever get this to work?

@xseignard
Copy link
Contributor

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

@guicontat
Copy link

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
Copy link

jdfreder commented Jul 8, 2015

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

@maximilianmikus
Copy link

thx @guicontat that worked!

@ZECTBynmo
Copy link
Member

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
Copy link

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

@ZECTBynmo
Copy link
Member

@guicontat why not just fork the repository?

@renschler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants