• 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.9k 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.
    • M Offline
      mimecar
      last edited by 2 Oct 2017, 17:09

      Hi @wilfridd. I've fixed the link, check again.

      W 1 Reply Last reply 2 Oct 2017, 21:18 Reply Quote 0
      • W Offline
        wilfridd @mimecar
        last edited by 2 Oct 2017, 21:18

        @mimecar
        That's ok! Many thanks

        1 Reply Last reply Reply Quote 0
        • 11 days later
        • T Offline
          Tewel
          last edited by 13 Oct 2017, 22:14

          Thank You. Works great!

          1 Reply Last reply Reply Quote 0
          • 8 days later
          • T Offline
            Tewel
            last edited by 22 Oct 2017, 06:03

            Is it possible to run an „only“ C++ projekt with qt and on the device? I need, for example, the QNetworkAccessManager, its only in c++. If I try to compile it, it says „no executable found“... Thanks for help.

            1 Reply Last reply Reply Quote 0
            • M Offline
              mimecar
              last edited by 22 Oct 2017, 14:46

              If it is a C++ project that needs external libraries, you have to add them to the project configuration. Did you do it? Is the application running well on your PC?

              T 1 Reply Last reply 22 Oct 2017, 18:06 Reply Quote 0
              • T Offline
                Tewel @mimecar
                last edited by 22 Oct 2017, 18:06

                @mimecar Hello, thank you for helping. Im not sure. There are 3 modes: 1. Desktop: it works fine 2. UbuntuSDK for Desktop, it does not work, whants me to give him the executable „please specify one“ the 3. UbuntuSDK for device, I didn‘t tried yet. How do I give him the right libs? And where? Is there a documentation? I don‘t know exactly what I should search for to get the specific instruction... My experiences are only with visual-studio... and not cross anything :0) But I would like to get through this...

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mimecar
                  last edited by 25 Oct 2017, 18:02

                  Hi, @Tewel,

                  So far I have only worked with QML and JavaScript. If you send me the project you want to compile (with the minimum code the library uses), I'll check it over the weekend.

                  T 2 Replies Last reply 26 Oct 2017, 06:38 Reply Quote 1
                  • T Offline
                    Tewel @mimecar
                    last edited by Tewel 26 Oct 2017, 06:38

                    @mimecar Thank you, thats a nice offer! You led me to a thing I whant to try first „Integration of qlm and c++“ there is a documentation. In the web are some hints that its nessesary to do this first, if you whant to use c++ with qml and ubuntu. But there was no time until now to figure it out. I will tell if its the solution....

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      Tewel @mimecar
                      last edited by Tewel 31 Oct 2017, 19:23

                      @mimecar Ok, the Connection of QML with c++ was needed first. Found a very helpfull Tutorial https://www.youtube.com/playlist?list=PLfkTJXI2Tk-e6Px7PRXvMxT6tH8e7rQ9i
                      Thank you for helping.

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        mimecar
                        last edited by mimecar 11 Jan 2017, 10:41 31 Oct 2017, 20:16

                        Ok @Tewel, I will check your link.

                        A gift for Halloween (Advanced QML concepts chapter):
                        https://mimecar.gitbooks.io/ubuntu-touch-programming-course/en/

                        Code published:
                        https://github.com/mimecar/ubuntu-touch-programming-course-src

                        1 Reply Last reply Reply Quote 1
                        • H Offline
                          HendriXXX
                          last edited by 1 Nov 2017, 13:26

                          I'm trying to get ubuntu-sdk running on my laptop.System is Ubuntu 16.04.
                          I have followed your guide. I get following errors when trying to start ubuntu-sdk...

                          Stopping containers: All containers stopped. Creating default network bridge ..... FAILED 
                          error: Creating the bridge failed with: not implemented 
                          —-Task exited with errors, please check the output---
                          

                          And next popup says..

                          qtcreator: Setting up the container backend failed.
                          
                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            fulvio
                            last edited by fulvio 11 Feb 2017, 10:36 2 Nov 2017, 10:35

                            Hi @HendriXXX
                            NOT sure if it is the solution, but take a look at this: https://insights.ubuntu.com/2016/04/07/lxd-networking-lxdbr0-explained/
                            Looking at that document running from a shell: sudo lxd init could be useful.
                            Otherwise (the simple solution) is download the virtual machine already configured with the sdk
                            using the link that you can find in this thread published by mimecar.

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              mimecar
                              last edited by 5 Nov 2017, 14:11

                              @HendriXXX, have you tried what Fulvio says?

                              1 Reply Last reply Reply Quote 0
                              • H Offline
                                HendriXXX
                                last edited by 5 Nov 2017, 19:25

                                Yes I tried everything. Sadly result are same. It is strange because it works in my desktop computer right away. Maybe it is related somehow to my netboot specs..

                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wdehoog
                                  last edited by 11 Nov 2017, 10:27

                                  @mimecar Thank you very much for providing your virtualbox image.

                                  One question when I connect my phone (moto g 2014) 'adb shell' under windows works but on the VM says 'device offline'.

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    mimecar
                                    last edited by 11 Nov 2017, 11:40

                                    Good evening @wdehoog. Have you "connected" the phone to the virtual machine? Has the phone's display shown a warning when trying to connect your computer?

                                    1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      wdehoog
                                      last edited by 11 Nov 2017, 12:15

                                      Yes it is 'connected' (otherwise there would be no device). I did not see any warning on the phone's display. It is no issue since I have setup ssh access. I was just being curious.

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        mimecar
                                        last edited by 11 Nov 2017, 12:44

                                        Check in the hidden folders of your computer user if you have one related to ADB. There may be some previous configuration and therefore the computer is not requesting the connection.

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          mimecar
                                          last edited by 11 Nov 2017, 20:38

                                          @HendriXXX, I think I've got it.

                                          The steps are:

                                          • sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
                                          • sudo apt-get update
                                          • sudo apt-get upgrade && sudo apt-get dist-upgrade

                                          Reboot the computer

                                          • sudo lxd init

                                          Do you want to configure a new storage pool (yes/no) [default=yes]?
                                          Name of the new storage pool [default=default]:
                                          Name of the storage backend to use (dir, lvm, zfs) [default=zfs]:
                                          Create a new ZFS pool (yes/no) [default=yes]?
                                          Would you like to use an existing block device (yes/no) [default=no]?
                                          Size in GB of the new loop device (1GB minimum) [default=15GB]:
                                          Would you like LXD to be available over the network (yes/no) [default=no]?
                                          Would you like stale cached images to be updated automatically (yes/no) [default=yes]?
                                          Would you like to create a new network bridge (yes/no) [default=yes]? no

                                          LXD has been successfully configured.

                                          Launch IDE with:

                                          • ubuntu-sdk-ide

                                          Configure the kits and restart ubuntu-sdk-ide. A message will appear indicating that the container is faulty. Accept to correct them. After this step it will work fine. I was able to run an example application on the computer and the M10 FHD with these steps.

                                          P 1 Reply Last reply 4 Apr 2018, 09:17 Reply Quote 1
                                          • M Offline
                                            mimecar
                                            last edited by 12 Nov 2017, 16:06

                                            A question related to the course. Are your applications working well with UBports firmware (I still have Canonical firmware)? Are there any errors other than those related to LXD and Ubuntu 16.04?

                                            F 1 Reply Last reply 13 Nov 2017, 10:35 Reply Quote 0
                                            32 out of 113
                                            • First post
                                              32/113
                                              Last post