Giter Club home page Giter Club logo

Comments (4)

karalabe avatar karalabe commented on September 13, 2024

Hmmm, nice :) Will look into this.

from xgo.

karalabe avatar karalabe commented on September 13, 2024

Hah, found it :)

So, xgo can only build a single target, which you need to point it to. In you command, that target was actually an empty Go package, thus why it's a simple Go library object file what it produced. However if you point xgo to the proper command:

xgo \
    -out builds/dca-v0.1.0 \
    --targets=darwin/*,windows/* \
    --deps=http://downloads.xiph.org/releases/opus/opus-1.1.2.tar.gz \
    github.com/uniquoooo/dca/cmd/dca

It will result in:

-rwxr-xr-x  1 root     root     3082872 Apr 13 12:54 dca-darwin-10.6-386
-rwxr-xr-x  1 root     root     3719720 Apr 13 12:54 dca-darwin-10.6-amd64
-rwxr-xr-x  1 root     root     3112399 Apr 13 12:57 dca-windows-4.0-386.exe
-rwxr-xr-x  1 root     root     3845286 Apr 13 12:56 dca-windows-4.0-amd64.exe

There seems to be an issue with building for linux/arm though, I'll need to investigate that.

from xgo.

davidcole1340 avatar davidcole1340 commented on September 13, 2024

Thanks! Seems to work now.

from xgo.

karalabe avatar karalabe commented on September 13, 2024

Looked into the ARM issue. Seems that the upstream gopus package you are using uses some strange pkg-config approach to gather dependent libs on some platforms, however they seem to not return everything needed to link. I've modified xgo to gather pkg-config stuff, but my bet is that it also needs some fixes in gopus to make it build when it hits this file: https://github.com/layeh/gopus/blob/master/opus_shared.go

from xgo.

Related Issues (20)

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.