Comments (4)
Hmmm, nice :) Will look into this.
from xgo.
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.
Thanks! Seems to work now.
from xgo.
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)
- Handle ellipsis (cmd/...) syntax for producing multiple distinct programs HOT 2
- Cleanup leftover docker containers on main process kill
- Outside project not in GOPATH can't use go mod with build tags -mod=vendor
- Using with libgit2 (git2go) HOT 1
- How to set go env `GOPROXY=https://goproxy.cn,direct` in the docker container? HOT 1
- Provide precompiled binary on gh-action
- [Feature Request] Support building MSI
- Can't cross-compile a project because of the need for Go 1.14. Is this project still in development?
- Zig equivalent
- How do I set CGO_CFLAGS?
- compile gon2n error
- No $GOPATH is set or forwarded to xgo HOT 1
- Is this project dead? HOT 1
- Upgrade to Go 1.16 (latest) HOT 2
- provide additional header files HOT 1
- Windows binaries silently fail to execute
- Stable release? HOT 2
- Support for go1.16 HOT 1
- C/C++ equivalent?
- Windows 10 Defender flags exe as trojan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xgo.