Changes between Version 1 and Version 2 of Building/libtorrent


Ignore:
Timestamp:
07/31/2014 10:33:02 PM (10 years ago)
Author:
Cas
Comment:

update win build

Legend:

Unmodified
Added
Removed
Modified
  • Building/libtorrent

    v1 v2  
    2828== Windows ==  
    2929  
    30  **The versions of OpenSSL, Boost & libtorrent are outdated but should be no issue using latest releases** 
    31  
    3230 1. Install the following: 
    3331 
    34  * MS VC++ 2008/2010 Express: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express 
    35  * OpenSSL win32 v1.0.0 (non-light):  http://www.slproweb.com/products/Win32OpenSSL.html 
    36  * Python 2.7  
     32 * [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express MS VC++ 2008/2010 Express] 
     33 * [http://www.slproweb.com/products/Win32OpenSSL.html OpenSSL win32 (non-light)] 
     34 * [http://www.python.org/ Python 2.7] 
    3735 
    38  2. Download lastest boost and libtorrent 0.15.10 tarball and extract to C:\ drive. 
     36 2. Download source tarballs and extract to path without space e.g. C:\ drive: 
    3937 
    40  3. Build boost by opening command prompt and execute the following commands: 
     38 * [http://www.boost.org/ boost] 
     39 * [http://www.libtorrent.org/ libtorrent-rasterbar] 
     40 
     41 3. Build boost - Open a command prompt and execute the following commands: 
    4142 {{{ 
    4243   bootstrap.bat 
    4344   b2 
    44 }}} 
    45  Building Boost takes a while and can take several gigabytes of space 
    46  Close the prompt when done. 
     45 }}} 
     46 Note: Building Boost takes a while and can use several gigabytes of space. 
    4747 
    48  4. Edit the file 'C:\boost_1_49_0\tools\build\v2\user-config.jam' to force msvc version: 
     48 4. Edit `C:\boost\tools\build\v2\user-config.jam` to force `msvc` version: 
    4949 
    5050 {{{ 
    51 using msvc : 9.0 ; 
    52 }}} 
     51    using msvc : 9.0 ; 
     52 }}} 
    5353 
    5454 5. Open `Visual Studio` command prompt  
     
    5757set INCLUDE=C:\OpenSSL-Win32\include;%INCLUDE% 
    5858set LIB=C:\OpenSSL-Win32\lib;%LIB% 
    59 set BOOST_ROOT=C:\boost_1_49_0 
     59set BOOST_ROOT=C:\boost 
    6060set BOOST_BUILD_PATH=%BOOST_ROOT% 
    6161set PATH=%BOOST_ROOT%;%PATH% 
     
    6363   b. Navigate to libtorrent python bindings folder 
    6464   {{{ 
    65 cd C:\libtorrent-rasterbar-0.15.10\bindings\python 
     65cd C:\libtorrent-rasterbar\bindings\python 
    6666}}} 
    6767   c. Build libtorrent with python bindings: 
     
    7070}}} 
    7171 
    72   If there is no setup.py (i.e. downloaded from repository) on Windows you can simple use setup.py.in instead. 
     72  If there is no `setup.py` (i.e. tarball from version control repo) use `setup.py.in` instead. 
    7373 
    7474  You can create setup.py on Ubuntu: (although makes no difference to the windows section of the script) 
     
    7979}}} 
    8080 
     81 There might be an error at the end about `shutil` unable to move the lib but can be ignored. 
     82 
     83 Upon a successful build the resulting library file is named `libtorrent.pyd` and is located under this directory: `libtorrent-rasterbar\bindings\python\bin\msvc-9.0\release\boost-source\geoip-static\link-static\optimization-space` 
    8184 
    8285Non-python build instructions for reference: [http://leechcraft.org/development-building-from-source-win32#Building_libtorrent Leechcraft] and [https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2008%28static-linkage%29 QBittorrent]