Difference between revisions of "BuildingLinux"

From Mumble Wiki
Jump to: navigation, search
Line 70: Line 70:
 
Be sure to have the pre-requisites installed and in place for your linux distribution (see the sections above) before you begin compiling it.
 
Be sure to have the pre-requisites installed and in place for your linux distribution (see the sections above) before you begin compiling it.
  
  qmake main.pro
+
  qmake -recursive main.pro
 
  make
 
  make
  
 
If you want to compile Murmur (Mumble server) only, then type
 
If you want to compile Murmur (Mumble server) only, then type
  
  qmake main.pro CONFIG+=no-client
+
  qmake -recursive main.pro CONFIG+=no-client
 
  make
 
  make
  

Revision as of 00:26, 19 October 2010

Please edit this page if you find a feature or step you think should be included; it's a wiki for a reason! Note you must register and wait about 3 days in order to be able to edit.

This guide is based (but not only) on this article [1] found at www.linux-gamers.net.

Install the dependencies

For Mumble 1.1.8 or newer, QT 4.4 is required.

For Debian / Ubuntu

The following command makes sure you have the needed libraries and dependencies installed to build Mumble and Murmur from source!

aptitude install qt4-dev-tools libqt4-dev libspeex1 libspeex-dev libboost-dev \
		libasound2-dev libxevie-dev libxevie1 libssl-dev g++ libspeechd-dev \
		libzeroc-ice-dev ice-slice libpulse-dev slice2cpp libcap-dev  \
		libspeexdsp-dev libprotobuf-dev protobuf-compiler libogg-dev \
		libavahi-compat-libdnssd-dev libsndfile1-dev libg15daemon-client-dev libxi-dev


It's recommended to remove the package qt3-dev-tools if installed.

Now go on to the section Installing from Source.

Arch Linux

At the time of writing, Murmur is in pacman's repositories, but doesn't support Ice because the zeroc-ice component isn't in the repositories. To build an Ice-capable Murmur, you'll need to setup and be familiar with the Arch Build System, which is outside the scope of this document.

Next, I grabbed the zeroc-ice tarball, and extracted it into my ABS directory. I edited the PKGCONFIG to remove all the Java bindings for Ice - because I won't be needing them and didn't want to wait for the Java stuff to install as a dependency, if you feel you might want/need Java/Ice later on, then leave it in - then built and installed the package as per the instructions in the ABS walkthrough.

Grab the Murmur-ice tarball and extract it in your ABS directory. Build, and if you want the stable release, install the resulting package with pacman.

If you want to build from git, you should have most of the required runtime dependencies, but you'll also want these for building:

pacman -S base-devel git

At this point you should be able to continue on to Installing from Source.

Installing from source

The most generic approach to install mumble under any Linux is to install from source. Either get the current mumble source over git or get the latest tarball release from sourceforge.net.

GIT

For compiling from git make sure you've installed git-core (includes git-clone)

apt-get install git-core
git clone git://mumble.git.sourceforge.net/gitroot/mumble/mumble mumble
cd mumble
git submodule init
git submodule update

To use the v1.1.x branch (which you most likely do):

git checkout --track -b v1.1.x origin/v1.1.x

Or to use the current branch:

git checkout --track -b master origin/master

If you want to update your local branch, make sure you're still in the main git directory ('mumble' in the above example) and use this command:

git pull

tarball release

Download the latest tarball release from sf.net http://sourceforge.net/project/showfiles.php?group_id=147372 and extract it:

tar xzfv mumble-x.x.x.tar.gz       # (whereas the X are the version numbers of mumble)
cd mumble-x.x.x

Compile Mumble and Murmur

For more configuration options on the qmake command read the supplied INSTALL file.

Be sure to have the pre-requisites installed and in place for your linux distribution (see the sections above) before you begin compiling it.

qmake -recursive main.pro
make

If you want to compile Murmur (Mumble server) only, then type

qmake -recursive main.pro CONFIG+=no-client
make

Note: If you are using Debian/Ubuntu with both Qt3 and Qt4 installed use the command "qmake-qt4" instead of "qmake"

Text to Speech

For text-to-speech voices you will need to install speech dispatcher and at least a voice. Most distros ship packages for that in their repositories.

Run Mumble

cd release
./mumble

Run Murmur