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

Ubuntu Touch Programming Course

Scheduled Pinned Locked Moved App Development
documentationubuntu touch
113 Posts 27 Posters 67.8k Views 12 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.
    • N Offline
      Nithin
      last edited by 10 Feb 2018, 21:42

      Assuming Kubuntu being a possible cause for the problem, I decided to try it out on Kde Neon and Ubuntu. Kde Neon again seemed to have the same problem of not wanting to install dependencies. So then I Installed Ubuntu and tried the same on it. only to encounter some other errors, here are a few ones.

      during

      sudo lxd init
      in the question on default storage back-end to use, Ubuntu wouldn't take zfs for an option for some reason.
      so had to then use the command
      sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
      this doesnt work either. instead one has to use
      sudo add-apt-repository ppa:ubuntu-lxc/stable

      After this there was no zfs option available at all.
      so had to use this

      sudo apt install -t xenial-backports lxd lxd-client

      after all of this i am back to the same problem which i faced in the first step.

      I am trying to follow the tutorial here and managed to install the new Ubuntu Sdk. When I run or build the app i get the following messages

      in Issues> error: There was a error in the device detection of desktop, no IP address was returned.
      in application output> Application failed to start: No private key file given.

      As a last step will try compiling the clock app as mentioned in the Readme.Developers.

      T 1 Reply Last reply 15 Mar 2018, 19:20 Reply Quote 1
      • M Offline
        mimecar
        last edited by 11 Mar 2018, 13:12

        Good evening.

        I have uploaded the translation of the chapter "Formatting label and events". I'll upload the source code next week. I have another collaboration from Fulvio pending and I hope to upload it next week.
        https://mimecar.gitbooks.io/ubuntu-touch-programming-course/content/en/chapter-04-s03.html

        P 2 Replies Last reply 15 Mar 2018, 20:13 Reply Quote 2
        • T Offline
          Talkless @Nithin
          last edited by Talkless 15 Mar 2018, 19:20

          @nithin said in Ubuntu Touch Programming Course:

          After this there was no zfs option available at all.
          so had to use this

          sudo apt install -t xenial-backports lxd lxd-client

          Thanks! Using lxd from xenial-backports helped to overcome that Creating the bridge failed with: not implemented issue.

          It would be nice to have this hint in Course.

          Volla Phone X

          1 Reply Last reply Reply Quote 0
          • P Offline
            Pulsar33 @mimecar
            last edited by 15 Mar 2018, 20:13

            @mimecar : following you.
            Thanks for your work !
            Pulsar33

            Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
            Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
            Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

            1 Reply Last reply Reply Quote 0
            • P Offline
              Pulsar33 @TischlerWilly
              last edited by Pulsar33 4 Apr 2018, 07:37 3 Apr 2018, 23:14

              @tischlerwilly @mimecar : Error No Storage Pool Found
              As said by tischlerwilly, I have the same error when installing the developper kits :

              No storage pool found
              I'm also using MINT 18(.3) 64bits. Did you find the solution, please ?
              Best regards
              Pulsar33

              Oooops ! See below ...

              Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
              Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
              Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

              1 Reply Last reply Reply Quote 0
              • P Offline
                Pulsar33
                last edited by 4 Apr 2018, 07:48

                @mimecar @HendriXXX @TischlerWilly :

                Hello,
                Sorry, I've discovered that when I search for something with CTRL-F in a long thread with Firefox, the process doesn't see all the content. So at the beginning of the thread, searching for "pool", I found only the posts of TischlerWilly and mimecar but no complete answer.
                This is why I thought there was no answer ...
                If I go at the end of the thread, I find the answers of HendriXXX and mimecar, so I'll give a try to the solution and report here how it goes.
                Have a nice day
                Pulsar33

                Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pulsar33 @mimecar
                  last edited by 4 Apr 2018, 09:17

                  @mimecar said in Ubuntu Touch Programming Course:

                  • sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable

                  This command returned an error. I tried this instead :

                  • sudo add-apt-repository ppa:ubuntu-lxc/stable

                  I hope it was the good choice. Next I followed the proposal of HendriXXX :

                  • sudo chown lxd:lxd /var/lib/lxd/unix.socket

                  All the process worked and my kits are created now.
                  However, I didn't see the error "container is faulty"
                  Proceeding to the next steps ...
                  Best regards
                  Pulsar33

                  Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                  Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                  Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                  1 Reply Last reply Reply Quote 1
                  • G Offline
                    gsilvapt
                    last edited by 4 Apr 2018, 23:01

                    This may seem off-topic, but way a custom PPA when LXC and LXD are available in the repositories?

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      Pulsar33 @mimecar
                      last edited by Pulsar33 4 Jun 2018, 08:03 6 Apr 2018, 08:00

                      @mimecar : Hello
                      I've been able to generate Hello Word and Calculator applications.
                      All is perfectly clear and well explained. Thank you !

                      However, I'm facing three errors as described below. Maybe are they due to the same reason.

                      • When I create a project, only 14.10 or 14.04 options are available :
                        Only 14.10

                      • If I check the kits in Compile & Execute, I see a warning about path not matching :
                        Path not matching

                      • Moreover, each time I launch Qt Creator, an update is proposed for each kit and errors occur.
                        Showing details, several tranfers are not available and tasks end with errors:
                        [...]
                        Ign http://archive.ubuntu.com vivid-security/restricted Translation-en
                        Ign http://archive.ubuntu.com vivid-security/universe Translation-en
                        Err http://archive.ubuntu.com vivid/main Sources 404 Not Found [IP: 91.189.88.161 80]
                        Err http://archive.ubuntu.com vivid/restricted Sources 404 Not Found [IP: 91.189.88.161 80]
                        Err http://archive.ubuntu.com vivid/universe Sources 404 Not Found [IP: 91.189.88.161 80]
                        Err http://archive.ubuntu.com vivid/multiverse Sources 404 Not Found [IP: 91.189.88.161 80]
                        Err http://archive.ubuntu.com vivid/main amd64 Packages 404 Not Found [IP: 91.189.88.161 80]
                        [...]
                        Err http://archive.ubuntu.com vivid-security/multiverse amd64 Packages 404 Not Found [IP: 91.189.88.161 80]
                        W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/main/source/Sources 404 Not Found [IP: 91.189.88.161 80]
                        W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/restricted/source/Sources 404 Not Found [IP: 91.189.88.161 80]
                        W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/universe/source/Sources 404 Not Found [IP: 91.189.88.161 80]
                        W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/multiverse/source/Sources 404 Not Found [IP: 91.189.88.161 80]
                        [...]
                        W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid-security/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.88.161 80]
                        E: Some index files failed to download. They have been ignored, or old ones used instead.
                        ---Task exited with errors, please check the output---

                      As far as ipvoid knows, the faulty IP is :
                      IP Address: 91.189.88.161
                      Hostname: keeton.canonical.com
                      Organization: Canonical Group Limited
                      ASN: AS41231 Canonical Group Limited
                      Continent: Europe (EU)
                      Country: United Kingdom (GB)
                      Latitude\Longitude: 51.5142 / -0.0931
                      Region: England
                      City: London

                      It seems that this must be solved to continue learning how to create my own applications. Have you a solution please ?
                      Have a nice day.
                      Pulsar33

                      Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                      Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                      Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                      advocatuxA 1 Reply Last reply 6 Apr 2018, 11:24 Reply Quote 0
                      • advocatuxA Offline
                        advocatux @Pulsar33
                        last edited by 6 Apr 2018, 11:24

                        @pulsar33 Vivid reached End of Life in February 4, 2016. You need to replace all the archive.ubuntu.com with old-releases.ubuntu.com in your sources.list

                        P 1 Reply Last reply 7 Apr 2018, 16:01 Reply Quote 1
                        • P Offline
                          Pulsar33 @advocatux
                          last edited by Pulsar33 4 Jul 2018, 16:02 7 Apr 2018, 16:01

                          @advocatux @mimecar : Hello
                          Thank you for the reply, however I'm not sure to know what to do now. As far as I understand, the problem is to update the kits, not my system which is perfectly up to date (I use MINT18.3). I've searched the whole GUI of Qt Creator but not found how to specify the sources.

                          Where are defined the sources for the kits ?

                          Moreover, why am I the first to have the problem following the Programming Course if the end of life of Vivid was in February 2016 ?

                          Good evening
                          Pulsar33

                          Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                          Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                          Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                          T 1 Reply Last reply 8 Apr 2018, 11:27 Reply Quote 0
                          • T Offline
                            Talkless @Pulsar33
                            last edited by 8 Apr 2018, 11:27

                            @pulsar33 said in Ubuntu Touch Programming Course:

                            As far as I understand, the problem is to update the kits, not my system which is perfectly up to date

                            It seem so. I guess we need to update /etc/apt/sources.list inside lxd contaner used for building?

                            Volla Phone X

                            T 1 Reply Last reply 8 Apr 2018, 11:57 Reply Quote 1
                            • T Offline
                              Talkless @Talkless
                              last edited by Talkless 4 Aug 2018, 11:59 8 Apr 2018, 11:57

                              I did this:

                              • Enter container with lxc exec device-armhf -- /bin/bash
                              • Replace archive into old-releases in sources.list with sed -i "s|archive|old-releases|" /etc/apt/sources.list

                              But after that, running apt update inside container, I get errors about ports.ubuntu.com/ubuntu-ports/dists/vivid/... (404 Not Found), while old-releases works fine for other repositories.

                              There are in fact no vivid in this repo:
                              http://ports.ubuntu.com/ubuntu-ports/dists/

                              So what cane ports host be changed into? Is there archive as that old-releases somewhere?

                              Volla Phone X

                              C P 2 Replies Last reply 8 Apr 2018, 13:08 Reply Quote 1
                              • C Offline
                                chris @Talkless
                                last edited by chris 4 Aug 2018, 13:21 8 Apr 2018, 13:08

                                @talkless In my containers I replaced all urls by http://old-releases.ubuntu.com/ubuntu
                                also the ports ones
                                vivid vivid-security vivid-backports vivid-updates (main / multiverse / restricted / universe) are all included there

                                T 1 Reply Last reply 8 Apr 2018, 13:50 Reply Quote 0
                                • T Offline
                                  Talkless @chris
                                  last edited by 8 Apr 2018, 13:50

                                  @chris said in Ubuntu Touch Programming Course:

                                  @talkless In my containers I replaced all urls by http://old-releases.ubuntu.com/ubuntu
                                  also the ports ones
                                  vivid vivid-security vivid-backports vivid-updates (main / multiverse / restricted / universe) are all included there

                                  But there's no ubuntu-ports repository (directory) inside http://old-releases.ubuntu.com/

                                  Volla Phone X

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    Pulsar33 @Talkless
                                    last edited by 8 Apr 2018, 15:04

                                    @talkless @chris @mimecar : Well shot Guys !
                                    Thank you for the tip. I didn't try for the armhf-device kit but I succeed for the desktop kit. In fact, the configuration is different for the two kits and the desktop kit only involves "archive". So the tip of @Talkless was clean and the (long) update took place without error.

                                    101 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 95.3 MB of archives. After this operation, 36.1 MB of additional disk space will be used.
                                    [...]
                                    Get:103 http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/ vivid/main unity8-private amd64 8.15+15.04.20161129-0ubuntu1 [584 kB]
                                    [...]
                                    Processing triggers for libc-bin (2.21-0ubuntu4.0.1) ...
                                    ---Task exited with no errors---

                                    Most updates are from ci-train-ppa-service ...
                                    The HelloWorld example compiles and runs without problem.

                                    Upon the next launch of Qt Creator, only the armhf-device update is proposed.
                                    Finding ports.ubuntu.com correct source may solve the last problem.

                                    Good evening
                                    Pulsar33

                                    Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                                    Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                                    Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      Pulsar33
                                      last edited by 10 Apr 2018, 23:35

                                      Hello,
                                      I'm not sure I've done the right things and I hope a "guru" will warn me if necessary but I found how to update the device-armhf kit :

                                      lxc exec device-armhf -- /bin/bash
                                      root@device-armhf:/# cd /etc/apt
                                      root@device-armhf:/etc/apt# sed -i "s|archive|old-releases|" sources.list
                                      root@device-armhf:/etc/apt# sed -i "s|ports.ubuntu.com/ubuntu-ports|old-releases.ubuntu.com/ubuntu|" sources.list

                                      Then, the (long) update ends with no error.

                                      This seems fine but I must now understand why all my choices are for 14-10 framework despite the fact that my kits are made with 15-04 framework ...
                                      limited choices

                                      Solution is welcome !
                                      Best regards
                                      Pulsar33

                                      Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                                      Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                                      Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        metalbiker
                                        last edited by 13 Apr 2018, 11:54

                                        I think this is a major indication that the SDK needs to be maintained so we can make Ubuntu Touch a success. I think a lot of you can agree with that.

                                        advocatuxA 1 Reply Last reply 13 Apr 2018, 14:51 Reply Quote 0
                                        • advocatuxA Offline
                                          advocatux @metalbiker
                                          last edited by 13 Apr 2018, 14:51

                                          @metalbiker this is a volunteer based project, and it's free software, so if any developer(s) wants to maintain it, the door is open.

                                          1 Reply Last reply Reply Quote 0
                                          • tatonutaT Offline
                                            tatonuta
                                            last edited by 8 Jul 2018, 12:43

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