How to setup developer environment to develop pulseaudio modules?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2017-10-24 at 16:05 +0300, Tanu Kaskinen wrote:
> On Mon, 2017-10-23 at 13:58 +0530, namittal at codeaurora.org wrote:
> > 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?
> 
> You need to add your module to the pulseaudio build system
> (src/Makefile.am). Here's an example of adding a new module:
> https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=b4d2443249c2ab31f58ed97a968db41c1fe61b49

Here are general instructions for compiling:
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/PulseAudioFromGit/

-- 
Tanu

https://www.patreon.com/tanuk


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux