Changes between Version 15 and Version 16 of Building/libtorrent
- Timestamp:
- 09/04/2015 10:29:17 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Building/libtorrent
v15 v16 61 61 * [http://www.microsoft.com/en-us/download/details.aspx?id=44266 MS VC++ Compiler for Python] 62 62 63 64 65 63 2. Download and install these packages: 66 64 * [http://www.slproweb.com/products/Win32OpenSSL.html OpenSSL win32 (non-light)] 67 65 * [http://www.python.org/ Python 2.7] 68 66 * [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] 70 68 3. Download source tarballs and extract to path without space e.g. C:\ drive: 71 69 * [http://www.boost.org/ boost] … … 76 74 Open a `Visual Studio 2008 Command Prompt`[[br]] 77 75 '''OR'''[[br]] 78 If using `VC ++ Compilerfor 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.: 79 77 {{{ 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" 81 79 }}} 80 and due to a bug in boost when using `VC for Python` requires editing `project-config.jam` line to the following: 81 {{{ 82 using msvc : : : <setup>"%USERPROFILE%\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\vcvarsall.bat" ; 83 }}} 82 84 83 85 From Command Prompt, execute the following commands: 84 86 {{{ 85 86 b2 87 bootstrap.bat 88 b2 --with-system --with-date-time --with-python 87 89 }}} 88 ''Building Boost can take a long time and uses 2-3 gigabytes of disk space.''89 90 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: 91 92 {{{ 92 using msvc : 9.0 ; 93 }}} 93 using msvc : 9.0 ; 94 }}} 95 96 Again if using `VC for Python` the boost bug requires modifing the above line to this: 97 {{{ 98 using msvc : 9.0 : : <setup>"%USERPROFILE%\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\vcvarsall.bat" ; 99 }}} 94 100 95 101 6. libtorrent Build Steps: … … 98 104 set INCLUDE=C:\OpenSSL-Win32\include;%INCLUDE% 99 105 set 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% 106 set BOOST_BUILD_PATH=C:\boost 107 set PATH=%BOOST_BUILD_PATH%;%PATH% 103 108 }}} 104 109 b. Navigate to libtorrent Python bindings folder: … … 107 112 }}} 108 113 c. Build libtorrent with Python bindings: 109 110 114 {{{ 111 115 b2 boost=source link=static geoip=static boost-link=static release optimization=space encryption=openssl