SWIG Go bindings for libtorrent-rasterbar
C++ Makefile Shell Go
Latest commit 5ec0477 Jun 15, 2015 @steeve Upgrade to libtorrent 1.0.5, boost 1.58.0 and OpenSSL 1.0.2c
Signed-off-by: Steeve Morin <steeve.morin@gmail.com>
Permalink
Failed to load latest commit information.
android-arm Upgrade to libtorrent 1.0.5, boost 1.58.0 and OpenSSL 1.0.2c Jun 15, 2015
darwin-x64 Upgrade to libtorrent 1.0.5, boost 1.58.0 and OpenSSL 1.0.2c Jun 15, 2015
linux-arm Upgrade to libtorrent 1.0.5, boost 1.58.0 and OpenSSL 1.0.2c Jun 15, 2015
linux-x64 Upgrade to libtorrent 1.0.5, boost 1.58.0 and OpenSSL 1.0.2c Jun 15, 2015
linux-x86 Upgrade to libtorrent 1.0.5, boost 1.58.0 and OpenSSL 1.0.2c Jun 15, 2015
windows-x64 Upgrade to libtorrent 1.0.5, boost 1.58.0 and OpenSSL 1.0.2c Jun 15, 2015
windows-x86 Upgrade to libtorrent 1.0.5, boost 1.58.0 and OpenSSL 1.0.2c Jun 15, 2015
.gitignore Initial commit Aug 17, 2013
LICENSE Initial commit Aug 17, 2013
Makefile Better support for DHT Puts and boost_array Jun 15, 2015
README.md Update build configuration to use static building when possible. Dec 23, 2013
alert.i Update for SWIG 3 Jun 26, 2014
alert_types.i Update for SWIG 3 Jun 26, 2014
alert_types_mod.hpp Update for SWIG 3 Jun 26, 2014
bitfield.i Add libtorrent::bitfield helper Nov 5, 2014
boost_array.i Better support for DHT Puts and boost_array Jun 15, 2015
create_torrent.i Add create_torrent and entry Nov 5, 2014
dht.i Better support for DHT Puts and boost_array Jun 15, 2015
ed25519.i Better support for DHT Puts and boost_array Jun 15, 2015
entry.i Use std::string.data() instead of .c_str() Apr 20, 2015
extensions.i Add extensions helper Nov 5, 2014
file_storage.i Update for SWIG 3 Jun 26, 2014
libtorrent.go Update for go 1.4, use the go build to run SWIG Nov 5, 2014
libtorrent.swigcxx Better support for DHT Puts and boost_array Jun 15, 2015
libtorrent_android.go Fix android build Dec 11, 2014
libtorrent_cgo.go Better support for DHT Puts and boost_array Jun 15, 2015
platform_host.mk Better makefile Nov 9, 2013
platform_target.mk Fix cross compiling by using the compiler's triple Nov 17, 2014
session.i extensions Nov 5, 2014
socket.i Update for SWIG 3 Jun 26, 2014
std_map.i Custom std_map typemap that's able to iterate on keys Nov 5, 2014
swig Update Makefile to make better use of the native go build Nov 13, 2014
torrent_handle.i Properly handle the intrusive_ptr for libtorrent::torrent_handle::tor… Sep 12, 2014
torrent_info.i Better support for Ed25519 and DHT Put/Get items Apr 22, 2015

README.md

libtorrent-go

SWIG Go bindings for libtorrent-rasterbar

Windows

export CROSSHOST=i586-mingw32
export CROSSHOME=/usr/local/gcc-4.8.0-mingw32
export PATH=$CROSSHOME/bin:$PATH
export PKG_CONFIG_LIBDIR=$CROSSHOME/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_LIBDIR
export CFLAGS="-I$CROSSHOME/include -D_WIN32_WINNT=0x0501"
export CPPFLAGS=$CFLAGS

Boost


./bootstrap.sh
echo "using gcc : mingw32 : $CROSSHOST-g++ ;" >! tools/build/v2/user-config.jam
./b2 -j2 --with-date_time --with-system --prefix=$CROSSHOME toolset=gcc-mingw32 link=static variant=release threading=multi target-os=windows threadapi=win32 install

OpenSSL


CROSS_COMPILE=$CROSSHOST- ./configure threads no-shared mingw --prefix=$CROSSHOME
make clean && make && make install

libtorrent


sed -i 's/$PKG_CONFIG openssl --libs-only-l/$PKG_CONFIG openssl --static --libs-only-l/' ./configure
make clean
./configure --host=$CROSSHOST --prefix=$CROSSHOME --with-boost=$CROSSHOME --with-boost-libdir=$CROSSHOME/lib --enable-static --disable-shared
make -j2 && make install

Linux x86

export CROSSHOST=i586-pc-linux
export CROSSHOME=/usr/local/gcc-4.8.1-for-linux32/
export PATH=$CROSSHOME/bin:$PATH
export PKG_CONFIG_LIBDIR=$CROSSHOME/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_LIBDIR
unset CFLAGS
unset CPPFLAGS

Boost


./bootstrap.sh
echo "using gcc : linux32 : $CROSSHOST-g++ ;" >! tools/build/v2/user-config.jam
./b2 -j2 --with-date_time --with-system --prefix=$CROSSHOME toolset=gcc-linux32 link=static variant=release threading=multi target-os=linux install

OpenSSL


CROSS_COMPILE=$CROSSHOST- ./configure threads no-shared linux-elf --prefix=$CROSSHOME
make clean && make && make install

libtorrent


sed -i 's/$PKG_CONFIG openssl --libs-only-l/$PKG_CONFIG openssl --static --libs-only-l/' ./configure
make clean
./configure --host=$CROSSHOST --prefix=$CROSSHOME --with-boost=$CROSSHOME --with-boost-libdir=$CROSSHOME/lib --enable-static --disable-shared
make -j2 && make install

Linux x86_64

export CROSSHOST=x86_64-pc-linux
export CROSSHOME=/usr/local/gcc-4.8.0-linux64
export PATH=$CROSSHOME/bin:$PATH
export PKG_CONFIG_LIBDIR=$CROSSHOME/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_LIBDIR
unset CFLAGS
unset CPPFLAGS

Boost


./bootstrap.sh
echo "using gcc : linux64 : $CROSSHOST-g++ ;" >! tools/build/v2/user-config.jam
./b2 -j2 --with-date_time --with-system --prefix=$CROSSHOME toolset=gcc-linux64 link=static variant=release threading=multi target-os=linux install

OpenSSL


CROSS_COMPILE=$CROSSHOST- ./configure threads no-shared linux-x86_64 --prefix=$CROSSHOME
make clean && make && make install

libtorrent


sed -i 's/$PKG_CONFIG openssl --libs-only-l/$PKG_CONFIG openssl --static --libs-only-l/' ./configure
make clean
./configure --host=$CROSSHOST --prefix=$CROSSHOME --with-boost=$CROSSHOME --with-boost-libdir=$CROSSHOME/lib --enable-static --disable-shared
make -j2 && make install

Linux ARM

export CROSSHOST=arm-linux-gnueabihf
export CROSSHOME=/usr/local/gcc-linaro-arm-linux-gnueabihf-raspbian
export PATH=$CROSSHOME/bin:$PATH
export PKG_CONFIG_LIBDIR=$CROSSHOME/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_LIBDIR
unset CFLAGS
unset CPPFLAGS

Boost


./bootstrap.sh
echo "using gcc : linuxarm : $CROSSHOST-g++ ;" > tools/build/v2/user-config.jam
./b2 -j2 --with-date_time --with-system --prefix=$CROSSHOME toolset=gcc-linuxarm link=static variant=release threading=multi target-os=linux install

OpenSSL


make clean
CROSS_COMPILE=$CROSSHOST- ./configure threads no-shared linux-elf no-asm --prefix=$CROSSHOME
make && make install

libtorrent


sed -i 's/$PKG_CONFIG openssl --libs-only-l/$PKG_CONFIG openssl --static --libs-only-l/' ./configure
make clean
./configure --host=$CROSSHOST --prefix=$CROSSHOME --with-boost=$CROSSHOME --with-boost-libdir=$CROSSHOME/lib --enable-static --disable-shared
make -j2 && make install

Android ARM

export CROSSHOST=x86_64-pc-linux
export CROSSHOME=/usr/local/gcc-4.8.0-linux64
export PATH=$CROSSHOME/bin:$PATH
export PKG_CONFIG_LIBDIR=$CROSSHOME/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_LIBDIR
unset CFLAGS
unset CPPFLAGS

Boost


./bootstrap.sh
echo "using gcc : linux64 : $CROSSHOST-g++ ;" >! tools/build/v2/user-config.jam
./b2 -j2 --with-date_time --with-system --prefix=$CROSSHOME toolset=gcc-linux64 link=static variant=release threading=multi target-os=linux install

OpenSSL


CROSS_COMPILE=$CROSSHOST- ./configure threads no-shared linux-x86_64 --prefix=$CROSSHOME
make clean && make && make install

libtorrent


sed -i 's/$PKG_CONFIG openssl --libs-only-l/$PKG_CONFIG openssl --static --libs-only-l/' ./configure
make clean
./configure --host=$CROSSHOST --prefix=$CROSSHOME --with-boost=$CROSSHOME --with-boost-libdir=$CROSSHOME/lib --enable-static --disable-shared
make -j2 && make install