Difference between revisions of "BuildingLinux"

From Mumble Wiki
Jump to: navigation, search
m (GIT: fix typo)
(GIT: Update repo path)
Line 55: Line 55:
  
 
Next, download the Mumble source (this may take a minute. At this time of writing, 5th February, the size is 11.33 MiB):
 
Next, download the Mumble source (this may take a minute. At this time of writing, 5th February, the size is 11.33 MiB):
  git clone git://mumble.git.sourceforge.net/gitroot/mumble/mumble mumble
+
  git clone git://github.com/mumble-voip/mumble.git mumble
 
  cd mumble
 
  cd mumble
 
  git submodule init
 
  git submodule init

Revision as of 16:25, 26 February 2011

Building Guides

This page is one of a set of Building pages/guides for the different OSes with information on building Mumble/Murmur.

BuildingLinux BuildingFreeBSD BuildingOpenBSD BuildingMacOSX BuildingWindows


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.

Install the dependencies

For Mumble 1.1.8 or newer, QT 4.4 is required.

For Debian / Ubuntu

We do not recommend building Mumble on Debian 5 ("Lenny") or older. Please update to Debian 6 ("Squeeze") or newer. You may still be able to build it by playing with package sources to include only required packages from Squeeze, but that is not a supported solution.

You need to make sure you have the needed libraries and dependencies installed to build Mumble and Murmur from source. This can be done in one of those ways:

If your distribution provides packages of the 1.2.x versions, it is sufficient to just run:

apt-get build-dep mumble

Otherwise, you need to install some development packages manually:

apt-get install build-essential qt4-dev-tools libqt4-dev libspeex1 libspeex-dev \
                libboost-dev libasound2-dev 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 is 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:

apt-get install git

On older systems like Debian 5 Lenny or Ubuntu 10.04 Lucid Lynx, you have to install git-core instead of git:

apt-get install git-core

Next, download the Mumble source (this may take a minute. At this time of writing, 5th February, the size is 11.33 MiB):

git clone git://github.com/mumble-voip/mumble.git mumble
cd mumble
git submodule init
git submodule update

To use the current branch (which you most likely do):

git checkout --track -b master origin/master

Or to use the v1.1.x branch:

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

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