-
Notifications
You must be signed in to change notification settings - Fork 80
go returned unspecified error #53
Comments
Hi there, thanks for the details. I've been trying Go1.4 and it seems to work fine for me so far.
So, if not, then the next step is to check that you can cross-compile the toolchain manually (without goxc):
I find it a bit weird that your GOPATH is inside your GOROOT, but each to their own, as long as it's not a mistake. Let me know what you find. Ta |
Hmm. I moved GOPATH to /home/nick/gopath. Hello World builds well, but my application doesn't. It uses go-gtk library. Here's the code: package main
import (
"github.com/mattn/go-gtk/gtk"
"os"
)
func main() {
gtk.Init(&os.Args)
window := gtk.NewWindow(gtk.WINDOW_TOPLEVEL)
window.SetTitle("Hello World")
window.Connect("destroy", gtk.MainQuit)
gtk.Main()
} And the error I get: It seems like the problem is here. But this is a simple import and library code is already built with go get command. go build command shouldn't be called in this folder at all, or I'm mistaking?
UPD: Oh, I've forgotten to tell you that I can build toolkit with all.bash successfully. However, I reinstalled go then and tried to run goxc on Hello World using clean go installation, and that worked.
So, can I compile packages which import C library for another platform at all? |
Closing as not goxc related. However, it would be great to see your piece of advice. |
Hey there, yes, unfortuntately goxc isn't much use for cross-compiling C/C++ dependencies. There's some other projects you might want to look at to help with that, but you'd need to cross-compile the GCC toolchain, which is a lot more work. You might want to look at a project called xgo, which is moving towards a better solution: https://github.com/karalabe/xgo Oh and I think you're much better off keeping your GOPATH outside of GOROOT. There's no real benefit to mixing them up. Cheers |
Hello! I'm having trouble when running
goxc -bc="windows,386" -d=dist -q
with Go 1.4 in my project's folder (/home/nick/apps/project). Thank you in advance for looking at this!Note: though it advices me to run goxc -t, I've already done that.
It returns the following (sorry for so long output):
Providing necessary information
The text was updated successfully, but these errors were encountered: