-
Notifications
You must be signed in to change notification settings - Fork 299
"no buildable Go source files in... " from cross compile #96
Comments
You might need to set The docs on cgo state:
I'm not sure if cross compilation is supported for those packages, but this would be the first step to try. |
I have same issue on ubuntu 14.04.
I didn't find good solution, so I decided to install in windows. |
I'm afraid there's little I can do to help with this issue, as the problem seems to be with cross-compilation and/or go-gl. I'd recommend raising a bug there if your problem persists. |
When you use CGO_ENABLED=1 you also have to set CC and CXX to windows C(++) cross compilers. If you don't you'll be building and linking with your default host compilers. I don't know if CXX_FOR_TARGET exists, or if it's being used, but setting it won't hurt.
Is a typical exception you get for using the hosts gcc. -mthreads is a windows only gcc option. I'm using |
I try compile windows app in linux, and get this error:
[ralvke@localhost client]$ GOOS=windows GOARCH=amd64 go build -o windows.exe ../../github.com/google/gxui/drivers/gl/blitter.go:11:2: no buildable Go source files in /home/ralvke/Documents/Go/src/github.com/go-gl/gl/v2.1/gl ../../github.com/google/gxui/drivers/gl/driver.go:14:2: no buildable Go source files in /home/ralvke/Documents/Go/src/github.com/go-gl/glfw/v3.1/glfw
The text was updated successfully, but these errors were encountered: