<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>
<div>
<div>Hi folks,<br/>
 </div>
i'm trying to develop an application which uses pulseaudio for sound output. I wan to use the simple api.<br/>
 </div>
The environment of my application is Java, so i use a shared library with JNI. In this shared library i am calling (beside others) pa_simple_new.<br/>
<br/>
 </div>

<div>I compile the shared library with:<br/>
<br/>
<br/>
gcc -I/usr/lib/jvm/java-8-oracle/<wbr/>include -I/usr/lib/jvm/java-8-oracle/<wbr/>include/linux -L/usr/lib/x86_64-linux-gnu/ -o libaudioserver.so  -lpulse-simple -shared -fPIC de_blickle_audioserver_<wbr/>pulseaudio_PulseAudioClient.c<br/>
 </div>

<div>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.<br/>
 </div>

<div>When showing the dependencies of my shared library (libaudioserver.so), no pulseaudio-lib is shown:<br/>
<br/>
ldd libaudioserver.so<br/>
    linux-vdso.so.1 =>  (0x00007ffe5b5d5000)<br/>
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.<wbr/>6 (0x00007f6c797c5000)<br/>
    /lib64/ld-linux-x86-64.so.2 (0x00007f6c79d8c000)<br/>
 </div>

<div>When executing my program it compains with<br/>
<br/>
/usr/lib/jvm/java-8-oracle/<wbr/>bin/java: symbol lookup error: /home/rainer/NetBeansProjects/<wbr/>audioserver/src/main/native/<wbr/>libaudioserver.so: undefined symbol: pa_simple_new<br/>
 </div>

<div>So my question is:<br/>
 </div>

<div>Where do i get the symbols for the simple api from. Is there another shared library i have to reference ?<br/>
 </div>
Regards, Rainer</div></div></body></html>