libtorrent

package module
v0.0.0-...-0ea53ad Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 1 Imported by: 3

README

libtorrent-go Build Status

test SWIG Go bindings for libtorrent-rasterbar

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

Changes

  • CamelCased identifier names
  • peer_info support
  • save and load resume_data support
  • crashes on Android ARM fixed

Download and Build

  • First, you need Docker and golang

  • Create Go home folder and set $GOPATH environment variable:

      mkdir ~/go
      export GOPATH=~/go
    
  • Download libtorrent-go:

      go get github.com/scakemyer/libtorrent-go
      cd ~/go/src/github.com/scakemyer/libtorrent-go
    
  • Pull the cross-compiler image for your platform:

      make pull PLATFORM=android-arm
    
  • Next, you need to prepare Docker environments. You can do it with two ways:

      make envs
    

    This will download and build all needed development packages and could take hours. But it can be necessary if you want to make your own customizations.

    You can also prepare specific environments like so:

      make env PLATFORM=android-arm
    
  • Build libtorrent-go:

      make [ android-arm | android-arm64 | android-x86 | android-x64 |
             linux-x86   | linux-x64   | linux-arm   | linux-armv7 | linux-arm64 |
             windows-x86 | windows-x64 | darwin-x64  ]
    

    To build libtorrent bindings for all platforms use make or specify needed platform, e.g. make android-arm. Built packages will be placed under ~/go/pkg/<platform>

Thanks

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