From Mumble Wiki
Revision as of 11:54, 1 August 2009 by DD0T (talk | contribs) (Added bonjour instructions)
Jump to: navigation, search

Building Mumble on Windows

Mumble has quite a few dependencies for building on Windows, and as the feature set grows, so does the list of dependencies. This page will try to detail the steps required to set up a Win32 build environment.

The paths used here equal the defaults assumed in the Mumble build files. You are free to change them, but you'll then need to change the file as well. If you find any problems or incorrect steps in this article please either correct them or contact us and we will try our best to resolve the issue.

Also note, that if you are submitting a bug report for a self-built executable, we expect you to either

  • Follow these instructions to the letter


  • Report any deviations from these instructions

Deviations means anything, from "I installed to the D: drive" to "I changed the gcc build options for Qt" or "I used another version of Speex".



Download the most recent Git from and install it. Make sure you select "Run Git from the Windows Command Prompt."

Visual Studio

You'll need Visual Studio 2008 (or Visual C++ Express Edition) with SP1.

Visual Studio 2008 Professional 90 day trial:

Visual C++ Express Edition: (Look at the bottom right corner for "Visual C++ 2008.")

Create the bat file

Create C:\dev, and inside that directory create a file prep.bat containing:

@echo off
SET QTDIR=C:\dev\Qt4.5.1
SET DBUSDIR=C:\dev\dbus
SET MYSQL=c:\dev\mysql
SET ICE=c:\dev\Ice
CALL "%PROGRAMFILES(X86)%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
) ELSE (
CALL "%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
SET PATH=%QTDIR%\bin;%DBUSDIR%\bin;c:\dev\OpenSSL\bin;c:\dev\libsndfile;c:\dev\cmake\bin;%MYSQL%\lib\opt;%ICE%\bin;c:\dev\protobuf-2.0.3\vsprojects\Release;%PATH%

Start a new command shell (run cmd.exe) (Make sure you have Microsoft Visual C++ and Git installed before you run prep!)

cd \dev

After you run prep make sure a message similar to "Setting environment for using Microsoft Visual Studio 2008 x86 tools" appears.

Whenever something appears

like this

you're supposed to enter it in that command shell (or copy it from this webpage and right click in the command window and select Paste). When you later want to compile things, remember to call prep.bat first to set paths correctly.

Note to those following this guide: When you extract compressed files, sometimes they will have container folders and sometimes they will not. Please ensure (for example) that when you extract a compressed file like QT4.5.1, that you see "bin" "include" and such folders as that directly inside of the folder named "Qt4.5.1". If you just see one folder and no other files, you have done it wrong.


Download the most recent version of TortoiseSVN at and install it. The defaults are fine.


Note that this dependency is optional and can easily be disabled before compiling. Only install this if you want the Logitech G15 keyboard features for Mumble.

Download the G15 software from here:,en? and install it.

Now go to C:\Program Files\Logitech\GamePanel Software\LCD Manager\SDK and extract "". Take the folder that has been extracted and rename it to G15SDK. Put this folder into c:\dev.


Download and and unzip both to c:\dev

cd \dev 
cd boost_1_39_0
copy ..\boost-jam-3.1.17-1-ntx86\bjam.exe
bjam --toolset=msvc --prefix=C:\dev\Boost install

This might take a while, but when done you'll have Boost installed. Note that none of the other build dependencies do themselves depend on boost, so if you want you can just continue in a new command shell (but remember to call prep.bat). Once all is done, you can safely delete the boost_1_39_0 and boost-jam directories. If you get the warning, that some targets were skipped or failed, it can be ignored for our purposes.

Microsoft Windows SDK

Go here to download: . At the time of this writing, the latest version is the "Windows SDK for Windows Server 2008 and .NET Framework 3.5". Install it to C:\dev\WinSDK

As you are going through the installer you will come to a window where you will see two main categories and then subcategories below them. Uncheck the green check boxes next to “Documentation” and “Samples”. Continue with the installation. These take a long time to download and are not really needed for Mumble.

Microsoft DirectX SDK

Go to and download the latest SDK. Install it to c:\dev\DXSDK


From download the following archives:

  • zlib*
  • zlib*
  • iconv*
  • iconv*
  • libxml2*bin.tar.bz2
  • libxml2*lib.tar.bz2

Whereas * represents the newest version on the server. Unpack all of them to 'c:\Program Files\win32libs'. If you have extracted them all correctly you should see inside of 'c:\Program Files\win32libs' "include," bin," lib," and "manifest" folders. Note that you may also download the dbus library from there, but if you do it will not automatically spawn dbus-daemon as that needs patching.

Download CMake and unpack it to c:\dev. Rename the top directory to just 'cmake'.

Checkout the SVN of WinDBus from to c:\dev\windbus

cd \dev 
mkdir windbus-build
cd windbus-build
cmake -DCMAKE_BUILD_TYPE=Release -DDBUS_INSTALL_SYSTEM_LIBS=ON -G "NMake Makefiles" c:\dev\windbus\cmake
nmake install

Regardless of what you say, Windbus is installed to c:\<Program Files>\dbus. Move that entire directory into c:\dev (so it ends up as c:\dev\dbus)

Copy all .dll files from c:\Program Files\win32libs\bin to c:\dev\dbus\bin

You can remove the c:\dev\windbus and c:\dev\windbus-build directories at this point.


Download the OpenSSL source named "openssl-0.9.8g.tar.gz" from here Unpack it to c:\dev (it will create a directory called openssl-x.y.z)

Download and install ActivePerl from here:

Open a new shell (so that %PATH% includes ActivePerl).

cd \dev
cd openssl<press tab>
perl Configure VC-WIN32 --prefix=c:\\dev\\OpenSSL
nmake -f ms\ntdll.mak
nmake -f ms\ntdll.mak install

You can remove c:\dev\openssl-x.y.z after this.


Download the latest release of MySQL Server. It can be found here: (select "Without installer (unzip in C:\)"). Unzip it to c:\dev\MySQL.


Download the latest version of ZeroC ICE from and make sure you select the VS2008 version. Install to c:\dev\Ice


Download and unzip to c:\dev. Rename the directory from qt-win-opensource-src-4.5.2 to Qt4.5.2

Download and put it in c:\dev\Qt4.5.2. Then, start Git Bash, which came with git.

cd /c/dev/Qt4.5.2
patch -lp0 < qt450msvc.patch

Start a regular command shell:

cd \dev
cd Qt4.5.2
configure -debug-and-release -qt-sql-sqlite -qt-sql-mysql -no-qt3support -no-exceptions -qt-zlib -qt-libpng  -qt-libjpeg  -openssl-linked -dbus-linked -I c:\dev\OpenSSL\include -L c:\dev\OpenSSL\lib -I c:\dev\dbus\include -L c:\dev\dbus\lib -I c:\dev\mysql\include -L c:\dev\mysql\lib\opt -platform win32-msvc2008

This will also take quite a while.


Download the binary release from and install it to c:\dev\libsndfile\ . Make sure the libsndfile-1.dll is visible to the executables.


Download the bonjour sdk from and install it to c:\dev\Bonjour\ .

Intel C++ Compiler

You can also use the Intel C++ Compiler in conjuction with VS2008. You can find it here:

This is strictly optional and you can compile a perfectly working version of Mumble without this compiler following this guide. This guide does not give information on how to use the Intel compiler with VS2008 to compile Mumble, so you will need to either have the programming experience necessary to know how to do this or find the procedures to do so elsewhere.

Download Mumble and Submodules

To clone the repositories :

cd \dev
git clone git:// mumble
cd mumble
git submodule init
git submodule update

To use the v1.1.x branch (which you most likely do) run this command after running the commands above:

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

Protocol Buffers

Download Protocol Buffers from Google ( and unpack it to c:\dev\protobuf-x.y.z. Follow the documentation in c:\dev\protobuf-x.y.z\vsprojects\readme.txt. Note that if the release number changes you will need to change prep.bat to whatever z.y.z changed to or you won't be able to call protoc.exe.

Building Mumble and Murmur

Once all of the above is done we can get to compiling Mumble itself.

If you want to have ASIO support you have to install an additional, proprietary, ASIO SDK. If you do not need it you can disable it by editing the C:\dev\mumble\src\mumble.pri. Add no-asio to the line which says CONFIG += qt thread debug_and_release warn_on to make it CONFIG += qt thread debug_and_release warn_on no-asio. This disables support for ASIO and gets rid of the dependency. Note that the compile will fail unless you either add no-asio or install the ASIO SDK.

Bonjour is now a dependency as well; chances are you will want to leave it out too. Just put no-bonjour in mumble.pri.

If you want to compile Mumble without G15 support change the qmake command below to qmake CONFIG+="no-g15"

cd \dev
cd mumble
nmake clean

Note that this builds the debug versions, which is what we strongly recommend to use while developing. If you want to send the binary to someone else, use nmake release instead of the last nmake command listed above. This will result in a much smaller binary with fewer dependencies.

Running Mumble and Murmur

Once compiled, you can go into c:\dev\mumble\release or (\debug if you compiled the debug version) and can execute mumble.exe or murmur.exe. Before executing Mumble or Murmur you need to open a command prompt and do

cd \dev
cd mumble\debug (or release)

Then execute either Mumble or Murmur from the command prompt with