Skip to content
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

Compile runtime on linux #104

Merged
merged 5 commits into from
Aug 18, 2023
Merged

Compile runtime on linux #104

merged 5 commits into from
Aug 18, 2023

Conversation

IkerGalardi
Copy link
Contributor

With this PR the runtime of the game engine gets compiled in linux.

The most important change is the "modification" of the SDL library configuration. IMO this is a hint on that the approach of including the library and headers falls apart when trying to port the engine into different platforms.

#66

The SDL_config.h header dictates the selected configuration for the SDL
library. This normally does not affect consuming libraries as the
configuration normally switches on/off certain implementation details.
In this case the header SDL_syswm.h was using said configuration for
including the windows.h header (wich as you might imagine is not
available on non window splatforms.
@IkerGalardi
Copy link
Contributor Author

IkerGalardi commented Aug 17, 2023

The compilation error is generated because the wrong video driver is defined on the windows build. Myabe doing aundefon linux is not the best idea and instead a define should be used explicitly for each platform.

@PanosK92
Copy link
Owner

Thank you for trying to do this, I'll get back to you soon 😄

@PanosK92
Copy link
Owner

I took care of the issue. Can you please re-generate the project files and ensure that the runtime still compiles for Linux?

@IkerGalardi
Copy link
Contributor Author

The path was case insensitive, causing the function to fail on linux (fixed on the latest commit.

Sorry for the wrong naming on the commits, is there any guide on what subsystem names to put?

@PanosK92 PanosK92 merged commit f079a65 into PanosK92:master Aug 18, 2023
3 checks passed
@PanosK92
Copy link
Owner

Excellent, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants