Hi folks,
i'm trying to develop an application which uses pulseaudio for sound output. I wan to use the simple api.I compile the shared library with:
gcc -I/usr/lib/jvm/java-8-oracle/ include -I/usr/lib/jvm/java-8-oracle/ include/linux -L/usr/lib/x86_64-linux-gnu/ -o libaudioserver.so -lpulse-simple -shared -fPIC de_blickle_audioserver_ pulseaudio_PulseAudioClient.c
gcc -I/usr/lib/jvm/java-8-oracle/
so i link against libpulse-simple.so. I thought in the shared library there are the functions for the simple api. But when showing the symbols of libpulse-simple, nm returns no symbol at all.
When showing the dependencies of my shared library (libaudioserver.so), no pulseaudio-lib is shown:
ldd libaudioserver.so
linux-vdso.so.1 => (0x00007ffe5b5d5000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so. 6 (0x00007f6c797c5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6c79d8c000)
ldd libaudioserver.so
linux-vdso.so.1 => (0x00007ffe5b5d5000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.
/lib64/ld-linux-x86-64.so.2 (0x00007f6c79d8c000)
When executing my program it compains with
/usr/lib/jvm/java-8-oracle/ bin/java: symbol lookup error: /home/rainer/NetBeansProjects/ audioserver/src/main/native/ libaudioserver.so: undefined symbol: pa_simple_new
/usr/lib/jvm/java-8-oracle/
So my question is:
Where do i get the symbols for the simple api from. Is there another shared library i have to reference ?
Regards, Rainer_______________________________________________ pulseaudio-discuss mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
