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

    Miroil for 20.04

    Scheduled Pinned Locked Moved Lomiri (was Unity8)
    3 Posts 3 Posters 1.7k Views
    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.
      • alan_gA Offline
        alan_g
        last edited by

        Those that have been following along will know that MirOil is a library intended to be added to Mir that will enable Lomiri to migrate to Mir 2.x.

        The development of MirOil stalled last year as the people involved found the time available for it in short supply. Over the holidays I found some time to revisit this and made some progress.

        I've been experimenting on building Mir+MirOil and QtMir on 20.04 with the UBports repository (http://repo2.ubports.com/) added. (Note this is not recommended for your main machine.)

        The current situation is that there are now two branches in the Mir repository: "miroil" and "1.x/miroil" which add miroil to the main and release/1.8 branches of Mir respectively.

        There's also a corresponding fork of UBport's QtMir branch "focal_-miroil-2.0" (from https://gitlab.com/ubports/core/qtmir). I've put this on https://github.com/MirOil-for-Lomiri/qtmir.git and called it "ubports/focal-_miroil-2.0".

        The current status is that (with the right dependencies installed) that this version of QtMir builds against both the Mir branches mentioned above and runs against the 1.x branch. It fails to run against the 2.x branch because there are dependencies like lomiri-ui-toolkit that don't currently build against 2.x.

        If you set up this environment, build and install Mir from "1.x/miroil" and then build and install QtMir from "ubports/focal_-_miroil-2.0" you can run a the demo program as follows:

        export QML2_IMPORT_PATH=/usr/local/lib/qt5/qml
        export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/lib/qt5/plugins/platforms
        QT_PLUGIN_PATH=/usr/local/lib/qt5/plugins
        WAYLAND_DISPLAY=wayland-99 MIR_SERVER_CURSOR=null QT_QPA_PLATFORM=mirserver cmake-build-debug/demos/qtmir-demo-shell/qtmir-demo-shell&
        

        And run, e.g. gedit with:

        WAYLAND_DISPLAY=wayland-99  gedit
        

        It will likely be some time before I do much more on this, so if anyone else wants to help push things forward: Please don't wait for me!

        AppLeeA 1 Reply Last reply Reply Quote 17
        • AppLeeA Offline
          AppLee @alan_g
          last edited by

          Thank you very much for all your work @alan_g :folded_hands:

          1 Reply Last reply Reply Quote 4
          • S Offline
            sunnyboy258
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post