Skip to content

Compiling gtorrent win32 on Windows

nodev edited this page Aug 13, 2014 · 7 revisions

What you will need

Microsoft Visual Studio (Express) -- Download

Latest libtorrent-rasterbar -- Download

Latest Boost -- Download

Boost Build Nightly -- Download

Latest version at the time of writing are

libtorrent-rasterbar 1.0.1

Boost 1.56

How to compile

  1. Download and install MS Visual Studio.

  2. Create a workspace folder where all of the development libs and code will be built. In this tutorial, I have chosen, D:\gtorrent\ . I will refer to this folder as GTROOT. Just replace GTROOT with the workspace location.

  3. Extract boost-build, Boost and libtorrent-rasterbar to GTROOT.

  4. Go to Start -> Visual Studio 2013 -> Visual Studio Tools -> VS2013 x64 Cross Tools Command Prompt. This will open up the command prompt.

  5. Using command prompt, go (cd) to GTROOT\boost-build.

  6. Execute bootstrap.bat.

  7. Execute "set PATH=GTROOT\boost-build;%PATH%"

  8. Now, go (cd) to libtorrent-rasterbar folder (GTROOT\libtorrent-rasterbar-1.0.1)

  9. Execute "set BOOST_ROOT=GTROOT\boost_[version]" (eg. GTROOT\boost_1_55_0)

  10. Execute "b2 -j8 variant=debug,release link=static runtime-link=shared address-model=64 boost=source dht=on geoip=static asserts=off logging=none optimization=space invariant-checks=off deprecated-functions=off statistics=off"

Clone this wiki locally