SDL support on Focal with Clickable
-
@Plarde At the moment you seem to be the resident SDL expert, seeing you can get something working with SDL3 and Wayland support. I have not heard of anyone getting that far.
So maybe you could make a minimum working project that works, and offer that as a template to be included?MR's for new templates can be made to here.
-
As far as I know, SDL2 has mirclient support but it was dropped so there's a specific build for UT that some apps/games use. If I am not mistaken there are a few SDL and Godot that use this. Try to check Circle Jump. Perhaps SDL3 would indeed be better since it supports wayland.
-
That surprises me though, because I think even the old SDL2 version that used to support Mir before that extension was dropped did contain Wayland support. Can the current Mir version we have actually work with Wayland or is it all XMir? I thought the later but maybe not in which case we could then probably use every SDL version there is.
This SDL2 working with XMir vs SDL3 running directly though Wayland is a bit confusing to me.
-
@arubislander I just use the C++ template and remove all the QML and C++ stuff, then I add the SDL3 source code and add it in CMakeLists.txt with add_subdirectory(SDL3). Then I can use SDL normally in a C or C++ file.
My solution is janky and not very clean and I don't know how to make a template, where can I ask questions about best practices? I saw that Clickable can add a PPA, so I think the easiest solution would be to manage SDL3 in a PPA and use that. Else I have to put all of SDL source code inside the template or make CMake download it at build time somehow.
-
@Plarde I think the best place to ask is the App Dev channel on Telegram.
Does the SDL3 source come from a git repository somewhere? In that case you could configure a git submodule so that you don't have to include the source in the template. -
@Plarde ,will contribute once sdl to qguiapp became stable ,
-
this is another example of what i find the most confounding about ubuntu touch "break everything to go in a undefined secure direction and reinventing the wheel to do it" ....im not complaining just an observation .....other than the mobile desktop environment being tailored for mobile (and here would be the checks and balances to guide UT in the secure vision that is has ....whatever that may be) but in the underbelly keep it as close to standard ubuntu linux as possible do to the fact everything would work as intended (at least alot more so anyways) then things like clickable and libertine would be seen as a bonus as a app standard to (which it already is but its forced and has very ...very little support) ....and a virtual machine for developers or say government workers that need that kind of level of security or test cases ......i just dont understand it
-
ubports does not have the money or manpower to reinvent the wheel ......build on the back of giants its what they are for ....like the whole point of open source ....which it seems like alot needs to be re-ported to UT because someone wants to reinvent the wheel .....my mind is officially blown ......i know its possible because what they are doing with droidian ....(dont get me wrong droidian is its own set of logistical nightmares for other reasons ....and why im back pestering you good folks)
-
im willing to bet my left testicle if UBports followed my advice on this this project would do a total 180 and device ports would explode following the first release of a public announced reworked UT ......and so far one of the BEST things UT has going for it i dont seem to hear alot about but i noticed ....UT automatically ops out of the scam of force subscription for example i can still listen to youtube music while on lock screen without a subscription ....i really like that
-
@developerbayman Have you taken a look at Rhino Linux? It is Ubuntu based (which would I think be the only thing that would set UT apart from Droidian, if your advice were followed). The only thing is that they only have images for Pine64 devices, besides iso images for desktop and Raspberry Pi's.
-
@arubislander i have not but im curious ill have to check it out! very cool .......lol but my sights are on UT .....i know droidian and possibly rhino linux? and maybe a few others are there and in alot of cases closer to my ideology ......however they all seem to lack one thing (hyperbole many things are missing lol) ........you they all lack you and the rest of this community .......unlike all these other stupid mobile os projects .......you guys made me fall in love with you ....i would like to see UT thrive because of that .....your kindness earned my love .....even if i think the current UT design is a little ass-nine .........true love conquers all eh?
-
@developerbayman We are happy for your love. But I fear it might not be mutual for long if you flood the forum with your idea of what would take UT to the next level, if it means making it more like Rhino or Droidian. People can only take so much of, what becomes to them, badgering. Listen, I appreciate your enthusiasm, I truly do. But as a project we have been through this back and forth ad nauseam, if not with you, with others. And really, we have no desire of being another Droidian.
If what you say is true, that opening up and becoming more "linuxy" would bring in a flood of new applications (and I would like to add the qualifier) that work as well on a small screen as on larger screens, do we already see this effect with e.g. Droidian? And even if there were an influx of apps on those platforms, such applications could theoretically be repackaged as clicks and made available for UT too. Someone just needs to want it badly enough to make it happen.
Futhermore, clicks are not the issue that is 'holding the OS back', old libraries are. Many of the latest linux mobile apps require newer libraries than are available on 20.04. Updating UT to 24.04, a work that is already in progress, is a huge undertaking, and that isn't necessarily because of the peculiarities of UT that seem to trip you up the most. It is very much the Linux and Open Source way to repackage Open Source apps to 'exotic' formats, see snaps, and Nix packages. NixOS's packaging choice is not stopping it from being the current darling of the Linux hipster community.
Finally I would like you to consider if it is not possible that the reason this Community is much more pleasant, in your estimation, than others for similar projects, might just be due to the way UT is set up. This OS targets a different type of user than does Droidian for instance, that makes the make up of the community different. If we became another Droidian in the software area, chances are huge, we would also become another Droidian community-wise. Then you would have also lost the one-thing you appreciate most about this project.