-
Notifications
You must be signed in to change notification settings - Fork 1
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
[FEATURE] - Windows Compilation Support #27
Comments
We think it would make sense to go further down the It would probably make sense to get a |
The rest of the warnings (generated by |
I have managed to get SDL to mostly compile with mingw. The missing puzzle piece to that was not setting the C compiler to mingw |
Not closing #27 yet, but windows "support" is getting close. I got [this](https://github.com/Toasterbirb/Ludum-Dare-51) project to compile for windows and it ran successfully in wine
I'd consider Windows builds functional at this point. The tests compile but don't run due to some issue with the doctest + mingw combo. So far this LD project is the only test case for this build configuration and further testing is needed for more streamlined experience. To configure a windows build, use the included scripts/win_build.sh script. It will create a new build directory and configure it with mingw and some other variables The full build time dependency list isn't yet known, but the following are required at minimum for compiling Birb2D on windows:
These should be pretty simple to setup in WSL. Since most of the issues came from non-portable code and other issues, using Visual Studio and such without mingw should also be possible, but I can't give any guidance for that |
Describe the feature
It would be nice to be able to compile the engine and dependencies for a Windows environment.
What has been tried so far
mingw Support @Toasterbirb
mingw
on Gentoomingw
support inCMakeLists.txt
https://cmake.org/cmake/help/latest/variable/MINGW.htmlSDL
development libraries formingw
fromportage
What we found so far
mingw
support inCMakeLists.txt
caused issue with compilation in Linux (SDL2_mixer
)SDL
development libraries formingw
had dependency issuesGObjectIntrospection
issue requiringpython
which themingw
environment doesn't haveMSVC Support @thatnerdjosh
We installed the following on a Windows 10 host:
sdl2-gfx
for CMake supportCMakeLists.txt
to compileSDL2_gfx
in the same way as the other SDL libraries.Within the "Developer Command Prompt for VS 2022":
What we found so far
We need to fix warnings that affect portability of the program. A port has already been completed that we may be able to leverage to resolve some (or all) of these.
The text was updated successfully, but these errors were encountered: