1 апр. 2009 г.

Сборка библиотеки LibTorrent

прочитайте прежде статью: Development Environment Settings

Сборка с помощью Visual Studio 2005

cd "%LIBRARIES_ROOT%libtorrent"

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-8.0 link=static debug logging=none dht-support=on runtime-link=static asynch-exceptions=on character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-8.0 link=static release logging=none dht-support=on runtime-link=static asynch-exceptions=on character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-8.0 link=static debug logging=none dht-support=on runtime-link=static asynch-exceptions=off character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-8.0 link=static release logging=none dht-support=on runtime-link=static asynch-exceptions=off character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-8.0 link=static debug logging=none dht-support=on runtime-link=shared asynch-exceptions=on character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-8.0 link=static release logging=none dht-support=on runtime-link=shared asynch-exceptions=on character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-8.0 link=static debug logging=none dht-support=on runtime-link=shared asynch-exceptions=off character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-8.0 link=static release logging=none dht-support=on runtime-link=shared asynch-exceptions=off character-set=unicode openssl=pe

Сборка с помощью Visual Studio 2008
set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-9.0 link=static debug logging=none dht-support=on runtime-link=static asynch-exceptions=on character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-9.0 link=static release logging=none dht-support=on runtime-link=static asynch-exceptions=on character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-9.0 link=static debug logging=none dht-support=on runtime-link=static asynch-exceptions=off character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-9.0 link=static release logging=none dht-support=on runtime-link=static asynch-exceptions=off character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-9.0 link=static debug logging=none dht-support=on runtime-link=shared asynch-exceptions=on character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-9.0 link=static release logging=none dht-support=on runtime-link=shared asynch-exceptions=on character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-9.0 link=static debug logging=none dht-support=on runtime-link=shared asynch-exceptions=off character-set=unicode openssl=pe

set INCLUDE=%BOOST_ROOT%;%LIBRARIES_ROOT%\libtorrent;%LIBRARIES_ROOT%\openssl\include;
CALL "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\VSVARS32.BAT"
%LIBRARIES_ROOT%boost-jam-3.1.17\bin.ntx86\bjam --v2 toolset=msvc-9.0 link=static release logging=none dht-support=on runtime-link=shared asynch-exceptions=off character-set=unicode openssl=pe


P.S.: Смотри также:
http://www.rsdn.ru/forum/network/3404574.flat.aspx#3404574
http://www.rsdn.ru/forum/dotnet/3404592.flat.aspx#3404592

Комментариев нет:

Отправить комментарий