Giter Site home page Giter Site logo

jiaweizhou / libtorrent-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coreos/libtorrent-go

0.0 3.0 0.0 234 KB

SWIG Go bindings for libtorrent-rasterbar

License: BSD 3-Clause "New" or "Revised" License

Makefile 5.79% C++ 93.40% Go 0.80%

libtorrent-go's Introduction

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:

libtorrent-go's People

Contributors

steeve avatar scakemyer avatar anteo avatar quentin-m avatar i96751414 avatar jiaweizhou avatar dimitriss avatar sharkone avatar 1player avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.