Difference between revisions of "BuildingWindows"
Line 27: | Line 27: | ||
like this | like this | ||
you're supposed to enter it in that command shell. When you later want to compile things, remember to call prep.bat first to set paths correctly. | you're supposed to enter it in that command shell. When you later want to compile things, remember to call prep.bat first to set paths correctly. | ||
+ | |||
+ | == TortoiseSVN == | ||
+ | |||
+ | == Download Mumble SVN == | ||
== MinGW == | == MinGW == | ||
Line 42: | Line 46: | ||
and unzip them all to the C:\dev\MinGW directory. GDB is an installer, install it to C:\dev\MinGW | and unzip them all to the C:\dev\MinGW directory. GDB is an installer, install it to C:\dev\MinGW | ||
− | Go | + | cd \dev\MinGW\bin |
+ | copy mingw32-make.exe make.exe | ||
+ | |||
+ | == Boost == | ||
+ | |||
+ | Download http://prdownloads.sf.net/boost/boost_1_33_1.zip?download and http://prdownloads.sf.net/boost/boost-jam-3.1.13-1-ntx86.zip?download and unzip both to C:\dev\ | ||
+ | |||
+ | cd \dev\boost_1_33_1 | ||
+ | copy ..\boost-jam-3.1.13-1-ntx86\bjam.exe | ||
+ | bjam -s"TOOLS=mingw" --prefix=C:\dev\Boost install | ||
+ | |||
+ | This might take a while, but when done you'll have Boost installed. You can now safely delete the boost_1_33_1 and boost-jam directories. | ||
+ | |||
+ | == Qt == | ||
+ | |||
+ | Download http://www.trolltech.com/download?target=ftp://ftp.trolltech.com/qt/source/qt-win-opensource-src-4.2.2.zip and unzip to C:\dev. Rename the directory | ||
+ | from ''qt-win-opensource-src-4.2.2'' to ''Qt4.2.2'' | ||
+ | |||
+ | Go to ''C:\\dev\\Qt4.2.2\mkspecs\win32-g++'' and open the file ''qmake.conf''. Change the following lines: | ||
+ | QMAKE_CFLAGS_RELEASE = -O2 | ||
+ | QMAKE_CFLAGS_DEBUG = -g | ||
+ | QMAKE_LFLAGS = -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc | ||
+ | into | ||
+ | QMAKE_CFLAGS_RELEASE = -O3 -march=pentium3 -mtune=pentium4 -mmmx -msse -ffast-math | ||
+ | QMAKE_CFLAGS_DEBUG = -g -march=pentium3 -mtune=pentium4 -mmmx -msse -ffast-math | ||
+ | QMAKE_LFLAGS = -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc | ||
+ | |||
+ | This will enable MMX and SSE instructions, and will also make sure Qt is tuned for modern architectures. It will also remove the exception threading support, which removes a few runtime dependencies. | ||
+ | |||
+ | cd \dev\Qt4.2.2 | ||
+ | |||
+ | == Microsoft Speech SDK == | ||
+ | |||
+ | Go to http://www.microsoft.com/speech/download/sdk51/ and a bit down on the page is a download button for ''SpeechSDK51.exe''. Download and install it to C:\dev\SpeechSDK | ||
+ | |||
+ | == Speex == | ||
+ | |||
+ | Download specific release | ||
+ | Copy and build | ||
+ | |||
+ | == Building Mumble and Murmur == |
Revision as of 03:00, 2 December 2006
Contents
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 mumble.pro file as well.
Also note, that if you are submitting a bug report for a selfbuilt executable, we expect you to either
- Follow these instructions to the letter
or
- 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".
Preparations
Create C:\dev, and inside that directory create a file prep.bat containing:
@echo off SET PATH=C:\dev\MinGW\bin;C:\dev\Qt4.2.2\bin;%PATH% SET QTDIR=C:\dev\Qt4.2.2
Start a new command shell (run cmd.exe) and
C: CD \dev prep.bat
Whenever something appears
like this
you're supposed to enter it in that command shell. When you later want to compile things, remember to call prep.bat first to set paths correctly.
TortoiseSVN
Download Mumble SVN
MinGW
Create a directory c:\dev\MinGW
Download the following files:
- http://prdownloads.sf.net/mingw/gcc-core-3.4.5-20060117-1.tar.gz?download
- http://prdownloads.sf.net/mingw/gcc-g++-3.4.5-20060117-1.tar.gz?download
- http://prdownloads.sf.net/mingw/gdb-6.3-2.exe?download
- http://prdownloads.sf.net/mingw/binutils-2.17.50-20060824-1.tar.gz?download
- http://prdownloads.sf.net/mingw/w32api-3.8.tar.gz?download
- http://prdownloads.sf.net/mingw/mingw-runtime-3.11.tar.gz?download
- http://prdownloads.sf.net/mingw/mingw32-make-3.81-1.tar.gz?download
and unzip them all to the C:\dev\MinGW directory. GDB is an installer, install it to C:\dev\MinGW
cd \dev\MinGW\bin copy mingw32-make.exe make.exe
Boost
Download http://prdownloads.sf.net/boost/boost_1_33_1.zip?download and http://prdownloads.sf.net/boost/boost-jam-3.1.13-1-ntx86.zip?download and unzip both to C:\dev\
cd \dev\boost_1_33_1 copy ..\boost-jam-3.1.13-1-ntx86\bjam.exe bjam -s"TOOLS=mingw" --prefix=C:\dev\Boost install
This might take a while, but when done you'll have Boost installed. You can now safely delete the boost_1_33_1 and boost-jam directories.
Qt
Download http://www.trolltech.com/download?target=ftp://ftp.trolltech.com/qt/source/qt-win-opensource-src-4.2.2.zip and unzip to C:\dev. Rename the directory from qt-win-opensource-src-4.2.2 to Qt4.2.2
Go to C:\\dev\\Qt4.2.2\mkspecs\win32-g++ and open the file qmake.conf. Change the following lines:
QMAKE_CFLAGS_RELEASE = -O2 QMAKE_CFLAGS_DEBUG = -g QMAKE_LFLAGS = -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
into
QMAKE_CFLAGS_RELEASE = -O3 -march=pentium3 -mtune=pentium4 -mmmx -msse -ffast-math QMAKE_CFLAGS_DEBUG = -g -march=pentium3 -mtune=pentium4 -mmmx -msse -ffast-math QMAKE_LFLAGS = -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
This will enable MMX and SSE instructions, and will also make sure Qt is tuned for modern architectures. It will also remove the exception threading support, which removes a few runtime dependencies.
cd \dev\Qt4.2.2
Microsoft Speech SDK
Go to http://www.microsoft.com/speech/download/sdk51/ and a bit down on the page is a download button for SpeechSDK51.exe. Download and install it to C:\dev\SpeechSDK
Speex
Download specific release Copy and build