mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Created Windows compilation (mediawiki)
parent
5506ab323f
commit
9a198dee58
1 changed files with 28 additions and 0 deletions
28
Windows-compilation.mediawiki
Normal file
28
Windows-compilation.mediawiki
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
qBittorrent is officially supported on Windows and installers are available on [http://sourceforge.net/projects/qbittorrent/files/qbittorrent-win32/ Sourceforge].
|
||||||
|
|
||||||
|
== Compilation Steps with msvc 10.0 compiler ==
|
||||||
|
We are building qBittorrent on Windows with msvc compiler instead of MinGW. This choice was made because [http://www.mingw.org/wiki/wide_characters MinGW does not support wide characters]. Msvc compiler also generates smaller executables than MinGW.
|
||||||
|
|
||||||
|
* Download and install [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express Visual C++ 2010 Express]
|
||||||
|
* Download and install [http://qt.nokia.com/downloads/windows-cpp-vs2008 Qt binaries compiled with msvc] (not compiled with MinGW)
|
||||||
|
* Add Msvc and Qt bin/ folders (''C:\Qt\4.8.0\bin'' and ''C:\Program Files\Microsoft Visual Studio 10.0\VC\bin'') to the ''PATH'' environment variable
|
||||||
|
* Download [http://downloads.sourceforge.net/project/boost/boost-jam/3.1.18/boost-jam-3.1.18-1-ntx86.zip?use_mirror=freefr Boost Jam] (bjam) and [http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.zip/download Boost library] (v1.42-1.49 are known to work) and unzip them
|
||||||
|
* Compile boost using the following command in a terminal (bjam must be in the PATH)
|
||||||
|
bjam -q --with-filesystem --with-thread --toolset=msvc variant=release link=static runtime-link=shared
|
||||||
|
* Define ''BOOST_ROOT'' environment variable and point to the boost source folder (you will need to close and reopen your terminal window after that)
|
||||||
|
* Download [http://www.slproweb.com/download/Win32OpenSSL-0_9_8u.exe OpenSSL v0.9.x] and install it
|
||||||
|
* Copy OpenSSL include folder (''C:\OpenSSL\include\openssl'') to Msvc include/ folder (''C:\Program Files\Microsoft Visual Studio 10.0\VC\include'')
|
||||||
|
* Download [http://code.google.com/p/libtorrent/downloads/detail?name=libtorrent-rasterbar-0.15.10.tar.gz&can=2&q= libtorrent] and extract it (v0.14.10-v0.16.0svn are known to work)
|
||||||
|
* Compile libtorrent using the following command in a terminal:
|
||||||
|
bjam -q --without-python --toolset=msvc variant=release link=static runtime-link=shared logging=none geoip=static dht-support=on boost=source define="BOOST_FILESYSTEM_VERSION=2"
|
||||||
|
* Download a recent qBittorrent
|
||||||
|
** GIT respository is located at ''git://github.com/cdumez/qBittorrent.git''
|
||||||
|
** Tarballs are available from sourceforge [http://sourceforge.net/projects/qbittorrent/files/qbittorrent/ here]
|
||||||
|
* Download and install [http://qt.nokia.com/downloads/qt-creator-binary-for-windows Qt Creator IDE]
|
||||||
|
** Configure Qt Creator to use Qt-msvc
|
||||||
|
* Start QtCreator IDE and load qBittorrent project file (qbittorrent.pro)
|
||||||
|
* Edit ''winconf.pri'' to point to the correct include and lib paths on your file system (boost, libtorrent, OpenSSL)
|
||||||
|
** boost libs are generated in ''boost_1_49\stage\lib''
|
||||||
|
** libtorrent lib is generated in ''bin\msvc-10.0express\release\boost-source\geoip-static\link-static\threading-multi\''
|
||||||
|
** OpenSSL libs are located at ''C:\OpenSSL\lib\VC'' as a default
|
||||||
|
* Build qBittorrent using QtCreator, it should compile fine!
|
Loading…
Reference in a new issue