From deeeb569e03a6772302ef40deb5eb13e39ef81b7 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 17 Mar 2013 05:37:35 -0700 Subject: [PATCH] Updated info about boost and libtorrent --- Compiling-with-MSVC-2008(static-linkage).mediawiki | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Compiling-with-MSVC-2008(static-linkage).mediawiki b/Compiling-with-MSVC-2008(static-linkage).mediawiki index 1f1108b..f07b86d 100644 --- a/Compiling-with-MSVC-2008(static-linkage).mediawiki +++ b/Compiling-with-MSVC-2008(static-linkage).mediawiki @@ -73,16 +73,14 @@ Let's assume that the working directory for our compilation will be '''C:\qBitto === Compiling Libtorrent === * 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 -* 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 ..\boost_1_51_0\b2.exe b2.exe -* Set the BOOST_ROOT environment variable to point to the Boost source directory(absolute path) - set BOOST_ROOT="C:\qBittorrent\boost_1_51_0" -* 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 + copy ..\boost_1_53_0\b2.exe b2.exe +* 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: + 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 * 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 - 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 cd .. rem Now navigate to the next folder, issuing the command 'cd QT