Skip to content

Upgrade to SDL3 #578#620

Open
kanthoney wants to merge 54 commits into
masterfrom
kja_sdl3
Open

Upgrade to SDL3 #578#620
kanthoney wants to merge 54 commits into
masterfrom
kja_sdl3

Conversation

@kanthoney
Copy link
Copy Markdown
Contributor

Upgrade to SDL3 #578

This pretty much works on my machine, so I figure it's close enough to ready to be tested on a wider range of setups.

I haven't been able to resolve the Linux/Wayland splash screen problem where the game screen ends up largely off screen due to Wayland not allowing programatic window placement, so we'll have to continue with the separate splash screen program work around for now.

On Windows, Oolite starts with the window underneath the command prompt I'm launching from - I'm not sure what's causing that.

…rds in keymappings_linux.plist so that shift key works
…WithSize if one does not yet exist and fix problem with populating fullscreen modes
@phkb
Copy link
Copy Markdown
Contributor

phkb commented May 10, 2026

This is probably me, but I'm getting this error trying to compile locally.

src/Core/OOOpenGLOnly.h:58:10: fatal error: 'SDL3/SDL_opengl.h' file not found
   58 | #include <SDL3/SDL_opengl.h>
      |          ^~~~~~~~~~~~~~~~~~~

Is there something else I need to do?

@kanthoney
Copy link
Copy Markdown
Contributor Author

Sorry, you would need to install the SDL3 package, e.g., on Windows, running the ShellScripts/Windows/install_deps.sh script would do it

@phkb
Copy link
Copy Markdown
Contributor

phkb commented May 10, 2026

OK, install script has been run. The package now builds successfully. But the resultant executable doesn't run. I get a brief switch of the mouse pointer to an hourglass, then back to normal, and nothing appears. No splash, no game window. No error files in the oolite.app folder. No log files created.

@kanthoney
Copy link
Copy Markdown
Contributor Author

Does it run from the command line within the MSYS2 environment?

cd oolite.app
./oolite.exe

@phkb
Copy link
Copy Markdown
Contributor

phkb commented May 11, 2026

It does! Why would it be different running the app from Explorer?

@mcarans
Copy link
Copy Markdown
Contributor

mcarans commented May 11, 2026

It does! Why would it be different running the app from Explorer?

I'm guessing a missing dll.

This is a busy week for me - I hope to look at this PR in the weekend.

@kanthoney
Copy link
Copy Markdown
Contributor Author

I wondered whether something still required the old SDL dll. But it's not listed when I run ldd oolite.exe and copying it manually into oolite.app didn't resolve things, so I guess it's not that.

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.

3 participants