On 2017-10-20 18:37, Alexander E. Patrakov wrote: > 2017-10-17 16:03 GMT+05:00 <namittal at codeaurora.org>: >> I using ubuntu 14.04 and pulseaudio 4.0. I am compiling very simple >> test >> module, module-test.c >> >> #include <pulsecore/module.h> >> >> int pa__init(pa_module* m){ >> return 0; >> } >> >> when i try to compile it using >> >> gcc -g -shared -o module-test.so module-test.c >> >> i get this error >> >> module-test.c:1:30: fatal error: pulsecore/module.h: No such file or >> directory >> #include <pulsecore/module.h> >> ^ >> compilation terminated. >> >> i looked in /usr/include and there is no folder name pulsecore. i >> tried >> installing development packages like libpulse-dev but that didn't >> solve this >> issue. > > Hello. > > The real issue is that external modules are currently not supported at > all. So - please clone pulseaudio git, and create your module there. > You will not be able to load it into a distribution-provided > pulseaudio. > > In other words, modules are used by PulseAudio not as an "extension > point for third parties like you", but as a convenience for > distributors so that they can split the package and do not require > libraries that are needed only for rare cases to be installed by > default. How will i Compile my module? #include will still locate distribution pulseaudio. How will i compile from git clone?