Changes between Version 15 and Version 16 of Building/libtorrent


Ignore:
Timestamp:
09/04/2015 10:29:17 AM (9 years ago)
Author:
Cas
Comment:

update build steps for windows

Legend:

Unmodified
Added
Removed
Modified
  • Building/libtorrent

    v15 v16  
    6161  * [http://www.microsoft.com/en-us/download/details.aspx?id=44266 MS VC++ Compiler for Python] 
    6262 
    63  
    64  
    6563 2. Download and install these packages: 
    6664  * [http://www.slproweb.com/products/Win32OpenSSL.html OpenSSL win32 (non-light)] 
    6765  * [http://www.python.org/ Python 2.7] 
    6866  * [http://www.microsoft.com/en-us/download/details.aspx?id=5582 MSVC 2008 SP1 Redist Package (x86)] 
    69  
     67  * [https://www.microsoft.com/en-gb/download/details.aspx?id=21 .NET Framework 3.5] 
    7068 3. Download source tarballs and extract to path without space e.g. C:\ drive: 
    7169  * [http://www.boost.org/ boost] 
     
    7674 Open a `Visual Studio 2008 Command Prompt`[[br]] 
    7775 '''OR'''[[br]] 
    78  If using `VC++ Compiler for Python`, open Windows Command Prompt and execute `vcvarsall.bat`, e.g.: 
     76 If using `VC for Python`, open Windows Command Prompt and execute `vcvarsall.bat`, e.g.: 
    7977  {{{ 
    80   C:\Users\User\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat 
     78"%USERPROFILE%\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" 
    8179  }}} 
     80 and due to a bug in boost when using `VC for Python` requires editing `project-config.jam` line to the following: 
     81 {{{ 
     82using msvc : : : <setup>"%USERPROFILE%\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\vcvarsall.bat" ; 
     83 }}} 
    8284 
    8385 From Command Prompt, execute the following commands: 
    8486 {{{ 
    85    bootstrap.bat 
    86    b2 
     87bootstrap.bat 
     88b2 --with-system --with-date-time --with-python 
    8789 }}} 
    88  ''Building Boost can take a long time and uses 2-3 gigabytes of disk space.'' 
    8990 
    90  5. Create a Boost `user-config.jam` file in `BOOST_ROOT` (e.g. `C:\boost`) with the following to force `msvc` version: 
     91 5. Create a Boost `user-config.jam` file in the toplevel folder (e.g. `C:\boost`) with the following to force `msvc` version: 
    9192 {{{ 
    92     using msvc : 9.0 ; 
    93  }}} 
     93using msvc : 9.0 ; 
     94}}} 
     95 
     96 Again if using `VC for Python` the boost bug requires modifing the above line to this: 
     97 {{{ 
     98using msvc : 9.0 : : <setup>"%USERPROFILE%\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\vcvarsall.bat" ; 
     99}}} 
    94100 
    95101 6. libtorrent Build Steps: 
     
    98104set INCLUDE=C:\OpenSSL-Win32\include;%INCLUDE% 
    99105set LIB=C:\OpenSSL-Win32\lib;%LIB% 
    100 set BOOST_ROOT=C:\boost 
    101 set BOOST_BUILD_PATH=%BOOST_ROOT% 
    102 set PATH=%BOOST_ROOT%;%PATH% 
     106set BOOST_BUILD_PATH=C:\boost 
     107set PATH=%BOOST_BUILD_PATH%;%PATH% 
    103108}}} 
    104109   b. Navigate to libtorrent Python bindings folder: 
     
    107112}}} 
    108113   c. Build libtorrent with Python bindings: 
    109  
    110114   {{{ 
    111115b2 boost=source link=static geoip=static boost-link=static release optimization=space encryption=openssl