libtorrent

package module
v0.0.0-...-85dc8ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2016 License: BSD-3-Clause Imports: 1 Imported by: 2

README

libtorrent-go Build Status

Cross-compiled SWIG Go bindings for libtorrent-rasterbar 1.0.8 using Go 1.6.

Supported platforms

  • android-arm
  • android-x64
  • android-x86
  • darwin-x64
  • linux-arm
  • linux-x64
  • linux-x86
  • windows-x64
  • windows-x86

How to use it?

  • First, you need a working Go project and Docker

  • Download libtorrent-go:

go get github.com/coreos/libtorrent-go
  • Build libtorrent-go:
cd $GOPATH/go/src/github.com/coreos/libtorrent-go
make [all | android-arm | darwin-x64 | linux-x86 | linux-x64 | linux-arm | windows-x86 | windows-x64 ]

The cross-compilation is done within Docker containers, which are based on github.com/coreos/cross-compiler and on which the libtorrent-rasterbar and Go are compiled. The container images are pulled from Quay.io. You may also rebuild the images by yourself by running:

make env

Again, this is totally optionnal and depends on your needs. Note that this could take a long-time. You may specify the PLATFORMS variable in order to build a subset of the containers.

  • Import libtorrent-go in your Go project:
import "github.com/coreos/libtorrent-go"

Built packages will be placed as $GOPATH/pkg/<platform>/libtorrent-go.a

Why another fork?

Forked from https://github.com/steeve/libtorrent-go

  • Go 1.6
  • CamelCased identifier names
  • Simplified build steps
  • peer_info support
  • Save and load resume_data support
  • Android ARM fixed
Acknowledgements:

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL