Build steps for pulseaudio

I need to download a pulseaudio source and build it to check a issue. For that I have downloaded the Sample Root file system source from nvdia download centre and extracted it, and searched for pulseaudio, i get two tar files named pulseaudio_8.0.orig.tar.xz and pulseaudio_8.0-0ubuntu3.debian.tar.xz. I have extracted both these tar files and then went inside pulseaudio-8.0 directory and then used a README file and followed the steps in it. When i run the configure script i get the following error, configure: error: Package requirements ( json-c >= 0.11 ) were not met:
Package json-c was not found in the pkg-config search path.
Perhaps you should add the directory containing `json-c.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘json-c’, required by ‘world’, not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBJSON_CFLAGS
and LIBJSON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Could you please help me on this.

Hello swathi2251999,

I’m not quite sure to understand the environment in which you are compiling the pulseaudio sources, but the problem you are facing is that you need the json-c library in order to compile, this can be installed with:

sudo apt-get install -y libjson-c-dev

Best Regards,
Roberto Gutierrez
Embedded Software Engineer,

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.