Difference between revisions of "BuildingWindows"
|Line 116:||Line 116:|
cd openssl<Press tab and it will autocomplete to, as of this writing, ''openssl-0.9.
cd openssl<Press tab and it will autocomplete to, as of this writing, ''openssl-0.9.''>
perl Configure VC-WIN32 --prefix=c:\\dev\\OpenSSL
perl Configure VC-WIN32 --prefix=c:\\dev\\OpenSSL
Revision as of 00:26, 12 August 2008
Building Mumble on Windows
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. 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.
- Follow these instructions to the letter
- Report any deviations from these instructions
Create C:\dev, and inside that directory create a file prep.bat containing:
@echo off SET QTDIR=C:\dev\Qt4.4.1 SET DBUSDIR=C:\dev\dbus SET LIB= SET MYSQL=c:\dev\mysql CALL "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 SET INCLUDE=C:\dev\WinSDK\include;%INCLUDE% SET PATH=%QTDIR%\bin;%DBUSDIR%\bin;c:\dev\OpenSSL\bin;c:\dev\cmake\bin;%MYSQL%\lib\opt;%PATH%;c:\program files\1gnuwin32\bin
Start a new command shell (run cmd.exe) and: (Note: make sure you have Visual C++ Express edition or Visual Studio 2008 and GnuWin32 installed before you run prep.bat or you will get errors).
C: CD \dev prep.bat
Whenever something appears
Using your computer while compiling
Download Mumble SVN
Open c:\dev, rightclick and SVN Checkout...
checkout to C:\dev\mumble\
Visual Studio and GnuWin32
You'll need Visual Studio 2008 (or Visual C++ Express Edition) with SP1 and GnuWin32.
GnuWin32: http://gnuwin32.sourceforge.net/packages/patch.htm (First link under the "Download" category.)
When you have installed GnuWin32 go to your "Program Files" directory and rename GnuWin32 to 1GnuWin32 . For some reason when cmake sees this as something it can use if it is not renamed.
Download http://prdownloads.sf.net/boost/boost_1_35_0.zip?download and http://prdownloads.sf.net/boost/boost-jam-3.1.16-1-ntx86.zip?download and unzip both to C:\dev\
cd \dev\boost_1_35_0 copy ..\boost-jam-3.1.16-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_35_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
Microsoft DirectX SDK
From http://download.cegit.de/kde-windows/repository/win32libs/single/ download the lib and bin files for iconv, libxml and zlib. Unpack 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 http://www.cmake.org/files/v2.6/cmake-2.6.1-win32-x86.zip and unpack it to c:\dev. Rename the top directory to just 'cmake'.
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 latest OpenSSL source (you can find the latest source at: http://www.openssl.org/source/ , get the one that has, in red, [LATEST] next to it. Unpack it to c:\dev\ (it will create a directory called openssl-x.y.z)
Open a new shell (so that %PATH% includes ActivePerl).
cd \dev prep cd openssl<Press tab and it will autocomplete to, as of this writing, openssl-0.9.8h> perl Configure VC-WIN32 --prefix=c:\\dev\\OpenSSL ms\do_masm 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: http://dev.mysql.com/downloads/mysql/5.0.html#downloads . Use a custom install and install only the headers and libraries. Use c:\dev\MySQL as the base directory. To do this go through the installer until you come to a window that says "Custom Setup" at the top. You will see five parent selections: MYSQL Server, Client Programs, etc. On all of the first four click on the little hard drive icon and select "This feature will not be available." On the last one--the fifth--click the red X and select "This feature, and all subfeatures, will be installed on local hard drive." Proceed through the installer.
cd \dev prep cd Qt4.3.4 patch -p0 < path/to/qt434msvc.patch
configure -debug-and-release -qt-sql-sqlite -qt-sql-mysql -no-qt3support -no-exceptions -qt-zlib -qt-libpng -qt-libjpeg -openssl -qdbus -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-msvc2005 nmake
This will also take quite a while.
Building Mumble and Murmur
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 nmake command listed below. This will result in a much smaller binary with fewer dependencies.
cd \dev\mumble qmake nmake clean nmake