-
Notifications
You must be signed in to change notification settings - Fork 46
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
Not Compiling on/for Windows #81
Comments
I've found that printing out the "c.CombinedOutput()" line in the build script gives me this output:
Seems that one of the packages has a problem finding a SDL header file |
I got it to compile, unfortunatley I couldn't get it to run with SDL_gfx so for now I removed all references to gfx and did I had to follow all the instruction on the Go SDL github, copying all the header files from the development SDL to my gcc folder. Example: going to Since I am running on TDM-GCC mine was located in That is the only way i could get it to run on windows. |
After many failed attempts, I was finally able to compile it successfully on my voidlinux machine following the method @9D-Tony suggested, but i also found a way to keep SDL2_gfx and have frame limiting on. To make the process more automatic i created this bash script, which in short just uses the static SDL2 libraries and header from go-sdl2 to compile to different targets and architectures from linux. I only used it to build linux and windows binaries, however, but it should be possible for mac too. After downloading the script, you can remove the ./masterbuilder -t windows -a amd64 or to keep things clean, point to it from another path : ./masterbuilder -t windows -a amd64 -s <path/to/masterplan> -o <path/to/output> You can check out Everything seemed to work fine during my brief tests, but i still haven't used the app for long enough to know for sure. |
Both Cross compiling and Native Windows compiling seems to fail with the build script.
Branch: sdl-rework
Commit: latest
GO: go1.18.3
The text was updated successfully, but these errors were encountered: