-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross compile #26
Comments
Have you tried |
@brian-armstrong-discord Yes I've now got all the deps installed. Initially thought that would fix it, however building with crosscompile still doesn't work. |
What is the error? |
I'd like to add my voice to this issue as well. It seems like cross-compiling, regardless of the host os, isn't working as hoped. On macOS:
On Linux:
My "go greeness" is showing here, but could it be that the platform is getting lost along the way, resulting in a build attempt that's just all kinds of confused? |
Well, this package also has c deps that are needed, and compilation has to occur with cgo. Maybe https://gist.github.com/steeve/6905542 is relevant? |
It looks like if nothing else, in cross-compile mode, you need CGO_ENABLED=1. But you'll also need a valid cross-compile setup for compiling the C deps. |
Did you manage to work around this issue @samsamm777 |
|
Only this error left now:
|
Results in
|
Ah debian8 is old apparently crystal-lang/crystal#8653 (comment). It works with this command on OSX.
|
Final command :-D It works 👍
|
Im having issues with cross compiling. Compiling normally on OSX works fine. However when i try the following it produces errors. Any ideas?
$ GOOS=linux go build # github.com/discordapp/lilliput ../../discordapp/lilliput/lilliput.go:26: undefined: ImageHeader ../../discordapp/lilliput/lilliput.go:41: undefined: Framebuffer ../../discordapp/lilliput/lilliput.go:48: undefined: Framebuffer ../../discordapp/lilliput/ops.go:43: undefined: Framebuffer
Edit:
I get this error when building the deps for osx or linux.
The text was updated successfully, but these errors were encountered: