Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Kivy python cross-platform app framework?

    App Development
    3
    8
    601
    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.
    • poVoq
      poVoq last edited by

      Seems like the Kivy framework should be relatively easy to get working on UT, as it can be made to work with SDL2 it seems, or in the hopefully near future also with Wayland. It seems to work well on Android, iOS and Desktop and there was a previous attempt to get it working:
      https://github.com/kivy/kivy/wiki/Ubuntu-Touch

      https://kivy.org/

      Way above my skills to get it working, but there is a nice XMPP client for it, which I would try to port once this framework is supported 🙂

      Any one interested?

      OnePlus3 (dev)

      1 Reply Last reply Reply Quote 1
      • B
        BobaLava last edited by

        I'm fairly new and looking into Ubuntu Touch app development, but I don't really understand why Kivy apps wouldn't run on Ubuntu Touch if they were developed to run in Ubuntu? What exactly is the disconnect here?

        1 Reply Last reply Reply Quote 0
        • poVoq
          poVoq last edited by

          Regular Ubuntu uses X11 and GNOME3, Ubuntu Touch uses neither.

          OnePlus3 (dev)

          1 Reply Last reply Reply Quote 0
          • A
            abmyii last edited by abmyii

            Did some testing today:

            photo5769342123638895589.jpg

            photo5769342123638895585.jpg

            photo5769342123638895588.jpg

            photo5769342123638895590.jpg
            (https://github.com/tito/2048)

            photo5769342123638895597.jpg photo5769342123638895596.jpg photo5769342123638895595.jpg

            (https://github.com/kivy-garden/mapview)

            Porting Kivy exposes some interesting potential, and it works for the most part out of the box - though some glitches will need to be fixed before it's stable.

            1 Reply Last reply Reply Quote 3
            • poVoq
              poVoq last edited by

              That looks very promising. I take it that GPU acceleration works already?

              Do you have a repository somewhere online?

              OnePlus3 (dev)

              A 1 Reply Last reply Reply Quote 1
              • A
                abmyii @poVoq last edited by abmyii

                @poVoq Yup, it runs on Mir. No repo yet - I'm just testing things for now. To test, I made / writable and then installed kivy from this ppa https://launchpad.net/~kivy-team/+archive/ubuntu/kivy?field.series_filter=xenial like so (SDL2 is also required, but should be installed automatically - not certain though as I had it preinstalled):

                apt-get install kivy python3-pil
                

                And then to run:

                DESKTOP_FILE_HINT=unity8.desktop python3 <file.py>
                

                It gives a Segmentation Fault sometimes, but rerunning usually fixes it.

                1 Reply Last reply Reply Quote 0
                • poVoq
                  poVoq last edited by poVoq

                  Hmm, if it works from the default Xenial repos it should also be possible to include it as a prerequisite in a clickable with python preset and subsequently a regular click package I think.

                  Edit1: ah, wait it's a PPA. Sorry was too quick to reply.

                  Edit2: No actually Clickable seems to support PPA as well, I guess? https://clickable-ut.dev/en/latest/clickable-json.html#dependencies-ppa

                  OnePlus3 (dev)

                  A 1 Reply Last reply Reply Quote 1
                  • A
                    abmyii @poVoq last edited by

                    @poVoq Yup, that should work fine.

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