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

Ubuntu 16.04 BQ Aquaris M10 Mir app dev issues.

Scheduled Pinned Locked Moved App Development
11 Posts 3 Posters 782 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.
    • Z Offline
      zezba9000
      last edited by zezba9000 3 May 2024, 00:59 5 Mar 2024, 00:59

      So for homebrew testing I've compiled the mir-demo "fingerpain.c" in Virtualbox that runs in miral on Ubuntu 17.04.
      I've compiled the same demo on my Aquaris M10 armhf device.

      In both Ubuntu "16.04 UBPorts Aquaris M10" and "17.04 Unity8" I've tried running the app via terminal that works in "miral" using this command.

      export MIR_SOCKET=/var/run/mir_socket
      ./a.out
      

      However I keep getting the error "Segmentation fault" actually running the demo on Mir/Unity8.
      What is required to actually run a Mir app? Do I need to package it first before it will run?
      I can't seem to find what I need to get it launching correctly.

      A 1 Reply Last reply 5 Mar 2024, 07:54 Reply Quote 0
      • A Online
        arubislander @zezba9000
        last edited by 5 Mar 2024, 07:54

        @zezba9000 since Mir is now a Wayland compositor, maybe the Mir versions you are trying to compile / run it against are too old?
        Why are you trying to get it running against Ubuntu 17.04, which is long out of support?
        Even UT 16.04 is now longer actively supported.

        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
        Happily running Ubuntu Touch
        Google Pixel 3a (20.04 DEV)
        JingPad (24.04 preview)
        Meizu Pro 5 (16.04 DEV)

        Z 1 Reply Last reply 5 Mar 2024, 08:29 Reply Quote 0
        • Z Offline
          zezba9000 @arubislander
          last edited by zezba9000 3 May 2024, 08:31 5 Mar 2024, 08:29

          @arubislander Ubuntu 17.04 has Unity8 session built in and directly supports Mir.
          The mir-demos are the official Mir demo source code. The UBPorts 16.04 and Ubuntu 17.04 both are running Mir and both report the identical error.

          The reason I'm doing this is I want to target Mir in a framework I'm developing for legacy systems and platforms.
          I'm just missing this final part in my understanding for what Mir apps need to be launched.

          This is the test/demo code I've been playing with: https://github.com/zezba9000/MirClientWindow/blob/master/TestMirC/main.c

          A 1 Reply Last reply 5 Mar 2024, 11:19 Reply Quote 0
          • A Offline
            alan_g @zezba9000
            last edited by 5 Mar 2024, 11:19

            @zezba9000 you are asking questions about a stack that people moved on from. Four years ago:

            • The mirclient API your client uses was dropped in favour of Wayland; and,
            • Unity8 was renamed Lomiri

            The error you are seeing is because Unity8 used to scan the client's command line to identify the .desktop file. (I forget what it actually looked for, but if you peek at the .desktop files for apps that do work, it will be obvious.)

            But while I applaud using Mir, targeting a long obsolete version from an obsolete OS release seems like a bad idea. Even legacy systems ought to be running an OS that is supported.

            Z 1 Reply Last reply 5 Mar 2024, 17:53 Reply Quote 0
            • Z Offline
              zezba9000 @alan_g
              last edited by zezba9000 3 May 2024, 17:54 5 Mar 2024, 17:53

              @alan_g This is for legacy targets such as the "BQ Aquaris M10". It would be like saying targeting MacOS 9 or SNES is a bad idea (which its not given future goals).
              Those targets can't change but I'm still interested in them as hobby/retro targets.

              I can't find documentation for Mir anymore. IDK if it was removed or not so I have no other group to ask who might know/remember what this issue might be. Anyway I'll look into this .desktop file.

              1 Reply Last reply Reply Quote 1
              • Z Offline
                zezba9000
                last edited by 3 Apr 2024, 07:06

                So the answer to my question was you just need to launch apps from a <app>.desktop file put in "/usr/share/applications" path.
                After finishing some Wayland stuff I wanted to get this Mir working for legacy targets like 16.04 Ubuntu Touch Mir targets.
                8179a057-31c4-4db9-9692-1ee5c1cb6a07-image.png

                A 1 Reply Last reply 3 Apr 2024, 10:28 Reply Quote 2
                • A Online
                  arubislander @zezba9000
                  last edited by arubislander 4 Mar 2024, 13:55 3 Apr 2024, 10:28

                  Great work, keeping these treasures alive!

                  @zezba9000 said in Ubuntu 16.04 BQ Aquaris M10 Mir app dev issues.:

                  So the answer to my question was you just need to launch apps from a <app>.desktop file put in "/usr/share/applications" path.

                  I think placing the file in ~/.local/share/applications should also work.

                  πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                  Happily running Ubuntu Touch
                  Google Pixel 3a (20.04 DEV)
                  JingPad (24.04 preview)
                  Meizu Pro 5 (16.04 DEV)

                  1 Reply Last reply Reply Quote 1
                  • Z Offline
                    zezba9000
                    last edited by 8 Apr 2024, 21:06

                    FYI here is a backup of legacy Mir stuff. Also working with C# via Mono or .NET 8 runtime.
                    I'll use what I have here to port into an actual C# framework. (Orbital-Framework)
                    https://github.com/zezba9000/MirClientWindow

                    A 1 Reply Last reply 9 Apr 2024, 05:28 Reply Quote 0
                    • A Online
                      arubislander @zezba9000
                      last edited by 9 Apr 2024, 05:28

                      @zezba9000 Great write-up. Eager to try this.

                      Did you consider setting up the build environment in a Libertine container?

                      πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                      Happily running Ubuntu Touch
                      Google Pixel 3a (20.04 DEV)
                      JingPad (24.04 preview)
                      Meizu Pro 5 (16.04 DEV)

                      Z 1 Reply Last reply 14 Apr 2024, 21:30 Reply Quote 0
                      • Z Offline
                        zezba9000 @arubislander
                        last edited by 14 Apr 2024, 21:30

                        @arubislander said in Ubuntu 16.04 BQ Aquaris M10 Mir app dev issues.:

                        @zezba9000 Great write-up. Eager to try this.

                        Did you consider setting up the build environment in a Libertine container?

                        I'm not familiar with "Libertine". Does this make it easier to dev on X11? You have more info on this?

                        FYI now have Mir working in my Orbital-Framework and its implimented much better there.
                        Here is a link to that: https://github.com/reignstudios/Orbital-Framework/blob/master/Platforms/Lin/Shared/Orbital.Demo.Mir/Program.cs

                        More code for Mir here: https://github.com/reignstudios/Orbital-Framework/tree/master/Platforms/Lin/Shared/Orbital.Host.Mir

                        Later I'll add GLES support but I need to get other graphic API stuff done in general in Orbital before I do that.
                        Anyway this makes Window creation very easy across platforms and now legacy Mir is supported.

                        962405b2-e759-4941-b9e6-2be0b77a81d7-image.png

                        A 1 Reply Last reply 15 Apr 2024, 06:06 Reply Quote 0
                        • A Online
                          arubislander @zezba9000
                          last edited by 15 Apr 2024, 06:06

                          @zezba9000 said in Ubuntu 16.04 BQ Aquaris M10 Mir app dev issues.:

                          I'm not familiar with "Libertine". Does this make it easier to dev on X11? You have more info on this?

                          There is some information on using Libertine containers in the UBports documenten. It can be found by following this link.

                          It is framed in the context of running desktop applications, but it works just as well for commandline applications also.

                          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                          Happily running Ubuntu Touch
                          Google Pixel 3a (20.04 DEV)
                          JingPad (24.04 preview)
                          Meizu Pro 5 (16.04 DEV)

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