• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Add custom starter to App scope

Scheduled Pinned Locked Moved Support
23 Posts 5 Posters 5.9k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dobey @Wendigo
      last edited by 12 Nov 2018, 22:01

      @wendigo GLES works for native apps that are talking directly to Mir (Qt, SDL, etc… packaged in clicks). The browser does not have 3D accel working via GPU, which is why WebGL is disabled. Likewise, apps running under libertine do not have direct hardware access, and are not talking directly to Mir. The Xmir wrapper does not provide 3D accel on the phones/tablets, so such things cannot be used there.

      I don't know anything about the internals of love2d, but if it's using SDL or Qt, then building it appropriately and shipping it along with the app that's using it, inside the click, with the .desktop file of the app doing all the right stuff, it could indeed use the accelerated graphics.

      1 Reply Last reply Reply Quote 0
      • G Offline
        gmelchett
        last edited by 13 Nov 2018, 18:03

        Too bad Mir support was removed from SDL a few days ago 😞
        https://github.com/SDL-mirror/SDL/commit/feb85d5ae0ef4c3e5602cfc4976f7a97f049ff2c

        D 1 Reply Last reply 13 Nov 2018, 21:36 Reply Quote 0
        • D Offline
          dobey @gmelchett
          last edited by 13 Nov 2018, 21:36

          @gmelchett Well, you don't have to use the version from git. I suspect it was removed there in favor of using Wayland, with newer versions of Mir, as is also done for other toolkits. That will be the way forward in the future, but for now, direct client support is needed on the phone/tablet builds.

          1 Reply Last reply Reply Quote 0
          • M Offline
            mymike
            last edited by 8 Jan 2019, 16:53

            any update about love games on UT?

            1 Reply Last reply Reply Quote 0
            • W Offline
              Wendigo
              last edited by 17 Jan 2019, 17:10

              Not really. Since Love2d depends on SDL2 we'd first figure out how to compile SDL with clickable:

              • All dependencies included
              • With SDL2 version <= 2.0.7
              M 1 Reply Last reply 18 Jan 2019, 11:02 Reply Quote 1
              • M Offline
                mymike @Wendigo
                last edited by 18 Jan 2019, 11:02

                @wendigo thanks
                but why do we need to compile love2d? can't we use an existing armhf love build?
                let me know if there are any progress (and maybe how can I help in this), as I'm interested in a love game on UT...

                btw, are you also ion telegram, where we can chat easily?

                W 1 Reply Last reply 23 Jan 2019, 17:00 Reply Quote 0
                • W Offline
                  Wendigo @mymike
                  last edited by 23 Jan 2019, 17:00

                  @mymike said in Add custom starter to App scope:

                  @wendigo thanks
                  but why do we need to compile love2d? can't we use an existing armhf love build?
                  let me know if there are any progress (and maybe how can I help in this), as I'm interested in a love game on UT...

                  btw, are you also ion telegram, where we can chat easily?

                  IIRC the armhf build for Raspberry Pi was built for X11 with Mir/Wayland explicitly excluded via compiler flags, but I'm not quite sure. All I remember is that it didn't work.
                  You can find me on Telegram and Matrix (FluffyChat) under the name: [ a t ]mickey83
                  Though I'm more active on Matrix.

                  W 1 Reply Last reply 25 Jan 2019, 20:53 Reply Quote 1
                  • W Offline
                    Wendigo @Wendigo
                    last edited by 25 Jan 2019, 20:53

                    I had a second look, guess I was wrong. The Mir/Wayland backend was excluded from the RasPi version of SDL2. Love2d was offered for armhf in deb format, which I don't know how to install via clickable. (if that is possible at all)

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mymike
                      last edited by 27 Jan 2019, 20:00

                      what about installing SDL2 and Love2d in the system image? so that every app/game that needs them doesn't need to have them inside the click package. I know we are almost out of space, but they're quite small and useful...
                      this way we can install them as deb. I'll have a shot to see if installed as deb they work...

                      D 1 Reply Last reply 28 Jan 2019, 01:12 Reply Quote 0
                      • D Offline
                        dobey @mymike
                        last edited by 28 Jan 2019, 01:12

                        @mymike We can't, and really shouldn't, ship every possible library that one might want to use in an app, or that is required by a game, which someone wants to package for UT. And if we ship the main SDL library, then how many others should we ship? We can't ship them all, and many different ones are used by different developers.

                        It's not hard to have an SDL that supports Mir built into a click package.

                        M 1 Reply Last reply 28 Jan 2019, 07:18 Reply Quote 0
                        • M Offline
                          mymike @dobey
                          last edited by 28 Jan 2019, 07:18

                          @mymike We can't, and really shouldn't, ship every possible library

                          ok, I understand

                          It's not hard to have an SDL that supports Mir built into a click package.

                          just try to build SDL with clickable?

                          D 1 Reply Last reply 28 Jan 2019, 14:48 Reply Quote 0
                          • D Offline
                            dobey @mymike
                            last edited by 28 Jan 2019, 14:48

                            @mymike said in Add custom starter to App scope:

                            just try to build SDL with clickable?

                            Yes, with the libraries config, or you might be able to just pull the library out of the deb package if it doesn't have any hard-coded paths built into it, and is linked to the correct version of Mir.

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              mymike
                              last edited by 28 May 2019, 14:31

                              @Wendigo said in Add custom starter to App scope:

                              Not really. Since Love2d depends on SDL2 we'd first figure out how to compile SDL with clickable:

                              • All dependencies included
                              • With SDL2 version <= 2.0.7

                              https://forums.ubports.com/topic/2178/c-and-sdl-with-clickable-a-little-help-please/16 SDL2 works on UT, now how can I package love2d in a click?

                              D 1 Reply Last reply 28 May 2019, 17:49 Reply Quote 0
                              • D Offline
                                dobey @mymike
                                last edited by 28 May 2019, 17:49

                                @mymike said in Add custom starter to App scope:

                                @Wendigo said in Add custom starter to App scope:

                                Not really. Since Love2d depends on SDL2 we'd first figure out how to compile SDL with clickable:

                                • All dependencies included
                                • With SDL2 version <= 2.0.7

                                https://forums.ubports.com/topic/2178/c-and-sdl-with-clickable-a-little-help-please/16 SDL2 works on UT, now how can I package love2d in a click?

                                Do basically the same thing to build love2d with SDL2 support, and include the necessary files in your click by installing them to the correct place during the clickable build so that build-click will include them.

                                M 1 Reply Last reply 28 May 2019, 18:32 Reply Quote 0
                                • M Offline
                                  mymike @dobey
                                  last edited by 28 May 2019, 18:32

                                  @dobey eh, the thing is that for SDL2 I just copied someone else's template, do idk how it works...

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post