오픈소스 연구/libtorrent
Building libtorrent with Visual Studio
ryujt
2016. 3. 18. 23:16
boost 설치
boost 파일을 다운받고 boost가 root 위치에서 아래와 같이 실행합니다. (http://www.boost.org/)
- C:\boost root>bootstrap.bat
- C:\boost root> b2 --with-system --with-date_time --with-python
libtorrent 설치
libtorrent 파일을 다운받고 아래와 같이 실행합니다. (https://github.com/arvidn/libtorrent/releases)
- C:\libtorrent root> set BOOST_BUILD_PATH=C:\boost_root
- C:\libtorrent root> set PATH=%BOOST_BUILD_PATH%;%PATH%
- C:\libtorrent root> b2 boost=source link=static geoip=static boost-link=static release optimization=space
기타
- 저는 OpenSSL이 필요 없어서 설치하지 않았습니다.
- 참고: http://dev.deluge-torrent.org/wiki/Building/libtorrent
- 최신 버전의 boost에서는 위의 링크에 나온 것처럼 패치하지 않고 바로 빌드가 됩니다.