I compiled a simple game using the SDL2 port recently released by Kalamatee for testing purposes. Currently, SDL2 is not yet fully functional, as it lacks sound and OpenGL. But this is already a big step forward, and I can't wait for the full version
@retrofaza - I compiled a simple game using the SDL2 port recently released by Kalamatee for testing purposes. Currently, SDL2 is not yet fully functional, as it lacks sound and OpenGL. But this is already a big step forward, and I can't wait for the full version
Wow that is an awesome news! I have tried to port SDL 2 to AROS in the past and also recently with arrival of GCC ver 10 but all attempts have failed. I am curious to see what was done to make it compile. Where did you get the lib from?
I integrated latest changes from Kalamatee into my repository (that includes enabling GL support). If anyone would like to try porting SDL2 software with this BETA version please contact me via PM here or on Discord and I'll share SDK (headers + linker library).
@deadwood
I tested compiling a game...but have found segfault, to be sure didn't depend from the game i compiled a simple example (lazyfoo SDL2 lesson 1) and it segfault.
Attached is the shot of BT from lesson1
Don't know if you prefer to have this kind of report on this thread or PM or another thread.
Let me know.
Thanks
It's good to post it here so that all other developers benefit from it as well.
In this specific case, the bug was already solved in Intuition. Please make sure you update your installation with U1 update (or fetch fresh sources and re-build)
Ok i forgot to update the hosted 64 bit.
Now i compiled about 10 lessons of Lazyfoo about SDL2.
Lesson 1 to 6 working fine.
From lesson 7 to 10 it says that could not create a renderer, i attach a shot and the code of lesson 7 (but same code are inside the other lessons).
Thanks replacing SDL_WINDOW_SHOWN with SDL_WINDOW_OPENGL make it work...
but only with a session of gdb enabled, without using gdb to run it segfault.
Attached a screenshot.
@Farox - Thanks replacing SDL_WINDOW_SHOWN with SDL_WINDOW_OPENGL make it work...
but only with a session of gdb enabled, without using gdb to run it segfault.
Attached a screenshot.
I confirm that this example sometimes crashes for me too.
EDIT: Indeed, that was a problem with the stack
Edited by retrofaza on 14-08-2025 10:56, 4 months ago
Can you share your binary? I tried binary shared by @retrofaza and I can't get the crash.
FYI, as long as you request SDL_WINDOW_OPENGL the GL renderer will be selected automatically - you don't have to use that variable. Comment on the stack is valid. Be sure you have more than 512MB assigned to AROS and stack of 128k or higher when working with software rendering.
EDIT: starting from shell or from icon (stack 128k, removed CLI ToolType) worked for me 10x with @retrofaza's binary
Edited by deadwood on 14-08-2025 10:16, 4 months ago
It was a problem of stack (for me only over of 240k worked).
Edited by Farox on 14-08-2025 14:38, 4 months ago
You can view all discussion threads in this forum. You cannot start a new discussion thread in this forum. You cannot reply in this discussion thread. You cannot start on a poll in this forum. You cannot upload attachments in this forum. You cannot download attachments in this forum.