-
Notifications
You must be signed in to change notification settings - Fork 75
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
Cannot cross-compile from Linux to Windows #155
Comments
vonaka
changed the title
Cannot cross-compile on Linux to Windows
Cannot cross-compile from Linux to Windows
Apr 9, 2023
Does this have an update by any chance? Attempting to do the same thing, but: package command-line-arguments
imports github.com/duysqubix/gobc/internal/windows
imports github.com/gopxl/pixel/v2/pixelgl
imports github.com/go-gl/gl/v3.3-core/gl: build constraints exclude all Go files in /home/rpl-node/go/pkg/mod/github.com/go-gl/[email protected]/v3.3-core/gl |
I haved this issue, ensure mingw is correctly set in your var environnement |
Successfully got cross compilation to work following instructions here: https://stackoverflow.com/questions/41566495/golang-how-to-cross-compile-on-linux-for-windows
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to compile my application from Linux to Windows. I use go-gl jointly with go-sdl2 and to compile the program I follow these instructions. Additionally, I set
CGO_CFLAGS
to-DTAG_WINDOWS -D_WIN32
andCGO_LDFLAGS
to-lopengl32
and I rungo build
withWGL
tag:Unfortunately, when I run the program on my Windows machine
gl.Init
fails to loadglGetnTexImage
. Following README, I callgl.Init
after activating OpenGL context:On Windows I have opengl 4.6.
The text was updated successfully, but these errors were encountered: