[Bug][] SDL2 is still broken

asked 2015-09-12 01:19:29 +0300

cl_ix gravatar image

updated 2015-09-12 09:25:07 +0300

SDL2 still has major problems that haven't been fixed since more than a year.

  • Audio - Neither the default mixer or SDL_mixer work. PulseAudio is recognized but nothing plays through the speaker (I experimented with ALSA, and ALSA audio playback failed as well.)
  • Landscape - Setting up a 960x540 window does not create a landscape view. Nor are there no hints for creating a landscape window.
  • Touch Screen events - SDL2 touch events return values that are not consistent with those provided by iOS and Android SDL2 applications.

It would be helpful, especially for game developers, if SDL2 was fixed since it's unusable in its current state.

Also, can Jolla Harbour stop rejecting apps that emulate landscape views with a rotated off-screen buffer until the landscape problem is fixed?

Also, a public repository for Jolla's fork of SDL2 would be helpful, along with suggestions on which libhybris and liblipstick calls need to be made.

edit retag flag offensive close delete



Looks like the collaboration meetings should resume soon, so what about adding the state of SDL support as a topic discussion ?

It is really a shame that something as important as SDL is still not in a usable state even though the corresponding issues have been reported so long ago. Therefore in my opinion bringing the issues to a wider audience via the collaboration meeting might help to finally get it fixed. :)

MartinK ( 2015-09-12 02:04:56 +0300 )edit

@MartinK, @thp who is (or was) employed by Jolla, was the developer who worked on SDL2, He's washed his hands completely of SDL2 and related Sailfish projects, and is not interested in providing the most recent changes he made to SDL2, with respect to the landscape issues. Jussi Pakkanen, said to be the lead Sailfish SDK developer, does not show any Github activity with respects to Nemo Mobile or Sailfish projects hosted on Github.

Many e-mails were sent through the developers mailing list about these and related issues since 2014. These issues were generally ignored and downplayed by the Jolla developers, otherwise attributed to lack of man-power. Would a collaboration meeting achieve different results?

cl_ix ( 2015-09-12 02:24:51 +0300 )edit

@cl_ix: Ouch! Well, I don't really know - it might give some publicity to how bad the SDL2 situation is but if it actually makes stuff move - that's hard to tell.

I think that if I have been not pressing for Qt Positioning on the meetings it would still not be cleared for Harbour to this day so I think it can help sometimes. But there have been many other issues that people have been pestering Jolla about on meeting, that are still not implemented/fixed/allowed/answered...

MartinK ( 2015-09-13 01:36:34 +0300 )edit

I have several games ported to Sailfish all using SDL2 in landscape mode and I cannot submit them even though I was informed in the developers' mailing list I should render my graphics in landscape mode and I should make my own translation regarding touch events on the screen.

I spend several hours doing so and now all my games are rejected.

Do we have any solution? Jolla Harbour should either stop rejecting apps that emulate landscape views with a rotated off-screen buffer, or someone fix SOON the SDL2 library

hamlatzis ( 2015-11-19 11:59:57 +0300 )edit

@hamlatzis This is really a shame! I think making Sailfish OS more accessible to developers should be more important than before in the current emergency situation - and especially in this case where the fix should be relatively simple in either case, at least compared to other stuff like paid apps support.

MartinK ( 2015-11-20 01:21:10 +0300 )edit