Changes between Version 1 and Version 2 of Building/libtorrent
- Timestamp:
- 07/31/2014 10:33:02 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Building/libtorrent
v1 v2 28 28 == Windows == 29 29 30 **The versions of OpenSSL, Boost & libtorrent are outdated but should be no issue using latest releases**31 32 30 1. Install the following: 33 31 34 * MS VC++ 2008/2010 Express: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express35 * OpenSSL win32 v1.0.0 (non-light): http://www.slproweb.com/products/Win32OpenSSL.html36 * Python 2.732 * [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] 37 35 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: 39 37 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: 41 42 {{{ 42 43 bootstrap.bat 43 44 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. 47 47 48 4. Edit the file 'C:\boost_1_49_0\tools\build\v2\user-config.jam' to force msvcversion:48 4. Edit `C:\boost\tools\build\v2\user-config.jam` to force `msvc` version: 49 49 50 50 {{{ 51 using msvc : 9.0 ;52 }}}51 using msvc : 9.0 ; 52 }}} 53 53 54 54 5. Open `Visual Studio` command prompt … … 57 57 set INCLUDE=C:\OpenSSL-Win32\include;%INCLUDE% 58 58 set LIB=C:\OpenSSL-Win32\lib;%LIB% 59 set BOOST_ROOT=C:\boost _1_49_059 set BOOST_ROOT=C:\boost 60 60 set BOOST_BUILD_PATH=%BOOST_ROOT% 61 61 set PATH=%BOOST_ROOT%;%PATH% … … 63 63 b. Navigate to libtorrent python bindings folder 64 64 {{{ 65 cd C:\libtorrent-rasterbar -0.15.10\bindings\python65 cd C:\libtorrent-rasterbar\bindings\python 66 66 }}} 67 67 c. Build libtorrent with python bindings: … … 70 70 }}} 71 71 72 If there is no setup.py (i.e. downloaded from repository) on Windows you can simple use setup.py.ininstead.72 If there is no `setup.py` (i.e. tarball from version control repo) use `setup.py.in` instead. 73 73 74 74 You can create setup.py on Ubuntu: (although makes no difference to the windows section of the script) … … 79 79 }}} 80 80 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` 81 84 82 85 Non-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]