Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Howto: Compile Pulseaudio from git

  1. #1
    Join Date
    Aug 2006
    Location
    Smederevo/Serbia
    Beans
    177
    Distro
    Ubuntu 14.04 Trusty Tahr

    Howto: Compile Pulseaudio from git

    To compile Pulseaudio from git, you need to follow this few steps.

    1) First we will need to install some dependencys (deps in the rest of the text). So, open terminal and paste this:
    Code:
    sudo apt-get build-dep pulseaudio && sudo apt-get install checkinstall git libpulse-dev
    1.1) This should install all the deps you need to compile pulseaudio. If there is some missing deps after configure (step 4), then open Synaptic and find -dev package of the missing lib.

    2) Now we will get pulseaudio from git repo:
    Code:
    git clone git://anongit.freedesktop.org/pulseaudio/pulseaudio
    3) Go into new pulseaudio directory where the source code is:
    Code:
    cd pulseaudio
    4) Now paste this into terminal:
    Code:
    ./autogen.sh
    - And when that is finished, then paste this:
    4.1)
    Code:
    CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall" CXXFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall" CPPFLAGS="-D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--no-as-needed -lxcb" $HOME/pulseaudio/./configure --build=x86_64-linux-gnu  --prefix=/usr --includedir="\${prefix}/include" --mandir="\${prefix}/share/man" --infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var --libexecdir="\${prefix}/lib/pulseaudio" --srcdir=. --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules   --enable-x11 --disable-hal --libdir=\${prefix}/lib/x86_64-linux-gnu --with-module-dir=\${prefix}/lib/pulse-5.0/modules --disable-oss-wrapper
    If this finishes without any error, you can continue with step 5, but if there is an error of missing deps, then follow 1.1 step.

    5) Now we initiate a compile:
    Code:
    make -jX
    Clarification: The X in "-jX" is a number of CPU cores your computer has +1. So if you have 4 cores CPU you use -j5, and if that CPU has Hyperthreading, then it would be -j9. I hope you get the picture.

    If all goes well, next step will be installing:

    6)
    Code:
    sudo make install
    6.1) This step is optional. It will create a .deb file, and install it.
    [code]sudo checkinstall[code]

    - The first thing you will get is this question:
    Code:
    Should I create a default set of package docs?  [y]:
    Answer it with [n] ( just press letter n )

    - Next will be some warrning, just ignore it and press ENTER
    - Now you have few options to pick.
    - Press number 1 and ENTER - in there write something like "pulseaudio from git" and press ENTER.
    - Now press number 3 and ENTER - there you will write a version like this: 6:5.0 and press ENTER again.
    - Now you can continue with creating a .deb package - so press ENTER.
    - Wait for it to finish, and now you have created and install .deb package of new pulseaudio you compiled.

    7) Now you can go to some system monitor and kill pulseaudio process, so the new version starts, or you can just logout and log back in.

    If you have any problems with this, just write it here, and I will help you with it.
    Last edited by Milos_SD; March 11th, 2014 at 11:27 PM.

  2. #2
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: Howto: Compile Pulseaudio from git

    Spoke to soon error after step.4
    Code:
    bash: /home/sdcafe/Kompajlirani_programi/Pulse_Audio/pulseaudio/./configure: No such file or directory

  3. #3
    Join Date
    Aug 2006
    Location
    Smederevo/Serbia
    Beans
    177
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Howto: Compile Pulseaudio from git

    Oh, yea, sorry for that. I forgot to edit that part.
    I will fix it now.

    Edit: Fixed.

    P.S. BTW, that is the directory where I keep pulseaudio source.
    Last edited by Milos_SD; March 11th, 2014 at 10:58 PM.

  4. #4
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: Howto: Compile Pulseaudio from git

    Quote Originally Posted by Milos_SD View Post
    Oh, yea, sorry for that. I forgot to edit that part.
    I will fix it now.

    Edit: Fixed.

    P.S. BTW, that is the directory where I keep pulseaudio source.
    Sorry for what?
    I thought that was the case but I did not want to assume.
    But still had no .configure file found so went into /home/usr(me)/pulseaudio
    and just doubled clicked "autogen.sh" and then the "configure" file was present.
    All went well after that
    Last edited by QDR06VV9; March 14th, 2014 at 09:51 PM. Reason: spell monster

  5. #5
    Join Date
    Aug 2006
    Location
    Smederevo/Serbia
    Beans
    177
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Howto: Compile Pulseaudio from git

    I am glad. Thank you for remainding me about autogen.sh. I forgot about it, becouse you need to use it just for the first time, and I did that few years ago. I added that step into the howto.

  6. #6
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: Howto: Compile Pulseaudio from git

    Quote Originally Posted by Milos_SD View Post
    I am glad. Thank you for remainding me about autogen.sh. I forgot about it, becouse you need to use it just for the first time, and I did that few years ago. I added that step into the howto.
    You Sir are a Gentleman and Scholar !
    Kind Regards Rick

  7. #7
    Join Date
    Apr 2010
    Location
    Huntsville,Alabama USA
    Beans
    101
    Distro
    Ubuntu Development Release

    Re: Howto: Compile Pulseaudio from git

    Quote Originally Posted by runrickus View Post
    Spoke to soon error after step.4
    Code:
    bash: /home/sdcafe/Kompajlirani_programi/Pulse_Audio/pulseaudio/./configure: No such file or directory
    I still get the bash: /home/cpatrick08/pulseaudio/./configure: No such file or directory error messgae after step 4.1, nevermind had it in /home/cpatrick/source/pulseaudio and I changed the command, and now it works.
    Last edited by cpatrick08; March 17th, 2014 at 02:02 AM.

  8. #8
    Join Date
    Nov 2010
    Beans
    65

    Re: Howto: Compile Pulseaudio from git

    I made it all the way to the end and got this: (Reading database ... 221839 files and directories currently installed.)
    Preparing to unpack .../pulseaudio_5.0-1_i386.deb ...
    Unpacking pulseaudio (6:5.0-1) over (1:4.0-0ubuntu11) ...
    dpkg: error processing archive /home/donna/pulseaudio/pulseaudio_5.0-1_i386.deb (--install):
    trying to overwrite '/etc/pulse/client.conf', which is also in package libpulse0:i386 1:4.0-0ubuntu11
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Errors were encountered while processing:
    /home/donna/pulseaudio/pulseaudio_5.0-1_i386.deb

  9. #9
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: Howto: Compile Pulseaudio from git

    That looks like a checkinstall error.

  10. #10
    Join Date
    Apr 2010
    Location
    Huntsville,Alabama USA
    Beans
    101
    Distro
    Ubuntu Development Release

    Re: Howto: Compile Pulseaudio from git

    When I run command in step 1 on Trusty 64 bit i get following error message The following packages have unmet dependencies: libjack-dev : Depends: libjack0 (= 1:0.121.3+20120418git75e3e20b-2.1ubuntu1) but it is not going to be installed
    E: Build-dependencies for pulseaudio could not be satisfied.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •