Updated info about boost and libtorrent

sledgehammer999 2013-03-17 05:37:35 -07:00
parent eeddfa0923
commit deeeb569e0

@ -73,16 +73,14 @@ Let's assume that the working directory for our compilation will be '''C:\qBitto
=== Compiling Libtorrent === === Compiling Libtorrent ===
* Extract the Libtorrent sources in the working dir. * Extract the Libtorrent sources in the working dir.
* Open the MSVC2008 command shell. Start->Programs->Microsoft Visual C++ 2008 Express Edition->Visual Studio Tools->Visual Studio 2008 Command Prompt * Open the MSVC2008 command shell. Start->Programs->Microsoft Visual C++ 2008 Express Edition->Visual Studio Tools->Visual Studio 2008 Command Prompt
* Navigate to the Libtorrent source folder. eg ''cd C:\qBittorrent\libtorrent-rasterbar-0.16.3'' * Navigate to the Libtorrent source folder. eg ''cd C:\qBittorrent\libtorrent-rasterbar-0.16.9''
* Copy the b2.exe from the Boost directory to the Libtorrent directory * Copy the b2.exe from the Boost directory to the Libtorrent directory
copy ..\boost_1_51_0\b2.exe b2.exe copy ..\boost_1_53_0\b2.exe b2.exe
* Set the BOOST_ROOT environment variable to point to the Boost source directory(absolute path) * Compile a static version of Libtorrent. Issue the following command where N is the number of CPU cores you have or how many threads you want b2 to use when compiling, adjust the value of BOOST_ROOT to the Boost source directory(absolute path) and adjuct the value of the "include=" and "library-path=" keywords:
set BOOST_ROOT="C:\qBittorrent\boost_1_51_0" b2 -q --without-python --toolset=msvc-9.0 variant=release link=static runtime-link=static encryption=openssl logging=none geoip=static dht-support=on boost=source character-set=unicode boost-link=static -sBOOST_ROOT="C:\qBittorrent\boost_1_53_0" include="C:\QBITTORRENT\install\include" library-path="C:\QBITTORRENT\install\lib" -j N
* Compile a static version of Libtorrent. Issue the following command where N is the number of CPU cores you have or how many threads you want b2 to use when compiling:
b2 -q --without-python --toolset=msvc-9.0 variant=release link=static runtime-link=static encryption=openssl logging=none geoip=static dht-support=on boost=source character-set=unicode boost-link=static -j N
* If you want to continue with the lazy batch file approach here's the batch file you need to use (still assuming you haven't left the VS2008 Command prompt) -- copy and paste it to e.g. 'mkl.bat' and place it in your lib* folder and then run it: * If you want to continue with the lazy batch file approach here's the batch file you need to use (still assuming you haven't left the VS2008 Command prompt) -- copy and paste it to e.g. 'mkl.bat' and place it in your lib* folder and then run it:
copy %BOOST_ROOT%\b2.exe copy %BOOST_ROOT%\b2.exe
b2 -q --without-python --toolset=msvc-9.0 variant=release link=static runtime-link=static encryption=openssl logging=none geoip=static dht-support=on boost=source character-set=unicode boost-link=static -j 1 b2 -q --without-python --toolset=msvc-9.0 variant=release link=static runtime-link=static encryption=openssl logging=none geoip=static dht-support=on boost=source character-set=unicode boost-link=static -sBOOST_ROOT="C:\qBittorrent\boost_1_53_0" include="C:\QBITTORRENT\install\include" library-path="C:\QBITTORRENT\install\lib" -j 1
echo on echo on
cd .. cd ..
rem Now navigate to the next folder, issuing the command 'cd QT<TAB><ENTER> rem Now navigate to the next folder, issuing the command 'cd QT<TAB><ENTER>