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

    Ubuntu Touch sdk API and desktop mode

    Scheduled Pinned Locked Moved App Development
    4 Posts 2 Posters 875 Views 1 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.
      • A Offline
        Aloys
        last edited by

        Hello,

        I'm a beginner, I just tried to generate an application click package.
        I used clickable and when running in desktop mode, I have the error:

        file:///home/...mypath.../build/all/app/install/qml/Main.qml:18 module "Ubuntu.Connectivity" is not installed
        
        Command exited with non-zero exit status 255, see above for details. This is most likely not a problem with Clickable.
        

        It is present only in desktop mode. And the error appears when I add in the Main.qml: import Ubuntu.Connectivity 1.0

        But why Ubuntu.Connectivity cause an issue and not Ubuntu.Components? they are both in the Ubuntu Touch SDK.

        I initially see this when building the Podbird application, and I reproduce it with the QML template of clickable. I would be also interested to know how the UT-sdk-API is used. I suppose that in native mode, is part of UT in the phone. But in desktop mode, is it managed by clickable within a container or have I to configure, install something else?

        Thanks for your help!

        1 Reply Last reply Reply Quote 0
        • A Offline
          Aloys
          last edited by

          I found my problem: my docker image was obsolete.
          I delete the docker image "clickable/ubuntu-sdk 16.04-amd64"
          I launch again: clickable desktop
          It download a new image and run successfully without error.

          I did not know anything about docker, here is what I discover:

          • First I read a bit on docker: https://docs.docker.com/get-started/
            I understand that with docker there is the image and the container. The container is the execution of the image. The image can be downloaded from docker hub and I think this is what clickable does, the image for 16.04-amd64 is here https://hub.docker.com/r/clickable/ci-16.04-amd64 . And I suppose this image is built from: https://gitlab.com/clickable/clickable-docker-images/-/tree/master/ubuntu-sdk/16.04-amd64
          • to list the images: docker image ls
          REPOSITORY             TAG                 IMAGE ID            CREATED             SIZE
          clickable/ubuntu-sdk   16.04-armhf         62adb04a1781        13 months ago       2.92GB
          clickable/ubuntu-sdk   16.04-amd64         b2a675929781        13 months ago       2.77GB
          

          as you see my images were 13 months old!

          • to delete the 16.04-amd64 image: docker rmi b2a675929781
          • and I delete also the 16.04-armhf image

          There is probably a better solution to update a docker image, no?

          dobeyD 1 Reply Last reply Reply Quote 1
          • dobeyD Offline
            dobey @Aloys
            last edited by

            @ublublu said in Ubuntu Touch sdk API and desktop mode:

            There is probably a better solution to update a docker image, no?

            You should be able to run clickable update no?

            A 1 Reply Last reply Reply Quote 1
            • A Offline
              Aloys @dobey
              last edited by

              Thank you @dobey, you're right!
              That's was so simple but I did not see it.
              And this is documented: http://clickable.bhdouglass.com/en/latest/commands.html#clickable-update

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post