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

    Getting my development environment running

    Scheduled Pinned Locked Moved App Development
    20 Posts 6 Posters 1.1k Views 3 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.
      • rivalR Offline
        rival
        last edited by

        Morning everyone,
        After years of lurking I'm taking the plunge to at least explore how to write the apps that I miss when I'm using Ubuntu Touch. I have the Aquaris E4.5 and M10 HD Tablet, and I would like to use them more than I do so.

        I'm an experienced developer, and I've been working in Linux and other Unix-like environments since the 90s, so I didn't think that it would be particularly difficult to get up and running, particularly as clickable seems to do the heavy lifting.

        However, whichever way I've turned I've run into trouble, and I've not been able to get going. Firstly I thought this could be a good opportunity to learn Go, so I've build the template with that. When I call clickable desktop I get this response

        Successfully built package in './gotest.fats.am_0.0.1_amd64.click'.
        non-network local connections being added to access control list
        Mounting device home to /home/sjp/.clickable/home
        docker: Error response from daemon: error while creating mount source path '/gopath/path/home/sjp': mkdir /gopath: read-only file system.
        sjp@orac:~/MyWorkspace/GoTest$ echo $GOPATH
        /home/sjp
        

        OK, I thought, I'll switch to C++. I found @CiberSheep's video at https://www.youtube.com/watch?v=JBMGhq-xT6c and started to follow that. He has a nice and simple first run through the creation process, but when I try to follow it I get
        non-network local connections being added to access control list

        Mounting device home to /home/sjp/.clickable/home
        QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-phablet'
        qt.qpa.screen: QXcbConnection: Could not connect to display :0
        Could not connect to any X display.
        sjp@orac:~/MyWorkspace/CloudMusic$ echo $DISPLAY
        :0
        

        Finally, I'm also trying to target my E4.5. I've checked that it is in developer mode, and when I plug it in, Ubuntu detects it and mounts it (is this the problem?), but adb won't have any of it

        sjp@orac:~/MyWorkspace/CloudMusic$ adb devices -l
        List of devices attached
        JU002975               unauthorized usb:1-1 transport_id:2
        

        Any help in getting any further with any of these issues is gratefully received!

        Thanks
        Sam

        poVoqP E 2 Replies Last reply Reply Quote 1
        • poVoqP Offline
          poVoq @rival
          last edited by

          @rival did you restart you computer after installing Docker? That is a common starting issue. Sorry if that is too basic of an error πŸ™‚

          Fairphone 5 (waiting for port)

          1 Reply Last reply Reply Quote 0
          • rivalR Offline
            rival
            last edited by

            You know, I think I did, but I'll bounce it now and check again. BRB

            1 Reply Last reply Reply Quote 0
            • rivalR Offline
              rival
              last edited by

              😞 Rebooted, but same errors.

              1 Reply Last reply Reply Quote 0
              • arubislanderA Offline
                arubislander
                last edited by

                • What distro are you running?
                • How did you install clickable?

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                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
                • poVoqP Offline
                  poVoq
                  last edited by

                  What version of clickable? There was an issue specifically with the desktop mode a few weeks ago. Try updating to the latest version or if the direct deploy to phone mode works.

                  Fairphone 5 (waiting for port)

                  1 Reply Last reply Reply Quote 0
                  • rivalR Offline
                    rival
                    last edited by

                    Thanks @arubislander & @poVoq . I'm running Ubuntu 19.10. I installed clickable 6.10.0 from the PPA, which seems to be the latest version.

                    arubislanderA 1 Reply Last reply Reply Quote 0
                    • arubislanderA Offline
                      arubislander @rival
                      last edited by

                      @rival are you logged in to an X session or a Wayland session?

                      πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                      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
                      • rivalR Offline
                        rival
                        last edited by

                        @arubislander Just my desktop session, I don't have anything else running, and I'm just running this on my laptop, I've not created a VM or anything that might be headless.

                        arubislanderA 1 Reply Last reply Reply Quote 0
                        • arubislanderA Offline
                          arubislander @rival
                          last edited by

                          @rival What I mean is, that on Ubuntu you can choose what graphical session you will use on the login screen. It is something like "Ubuntu Waylaynd" and "Ubuntu <something else>". (It is a little inconvenient for me to log out at the moment to check)

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

                          rivalR 1 Reply Last reply Reply Quote 0
                          • rivalR Offline
                            rival @arubislander
                            last edited by

                            @arubislander Thanks, I've got 'Ubuntu' selected rather than 'Ubuntu on Wayland' (I'd never noticed the option before!).

                            1 Reply Last reply Reply Quote 0
                            • rivalR Offline
                              rival
                              last edited by

                              I might be due a full wipe-and-reinstall with 20.04 LTS, so it might be better to wait for that and start with a guaranteed clean machine rather than a laptop I've been using for three years (on 19.10 now)

                              arubislanderA 1 Reply Last reply Reply Quote 0
                              • arubislanderA Offline
                                arubislander @rival
                                last edited by

                                @rival Don't give up yet... I will try the latest clickable on my lappy when I get home (might be a while, I am in CET, and I think I have a meeting this evening). It would be great to get you on board and developing.
                                What timezone are you in? Maybe we could coordinate some realtime interaction.

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

                                rivalR 1 Reply Last reply Reply Quote 0
                                • rivalR Offline
                                  rival @arubislander
                                  last edited by

                                  @arubislander thanks, I'm GMT/UCT. In the meantime I think that I'm going to start on my app in QtCreator and see if I can start writing code that I can port to UT later.

                                  ? arubislanderA 2 Replies Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User @rival
                                    last edited by

                                    πŸ™‚ Do you have an idea for an app, @rival ?

                                    1 Reply Last reply Reply Quote 0
                                    • arubislanderA Offline
                                      arubislander @rival
                                      last edited by

                                      @rival OK, that must be doable... Can I PM you on here for further coordination?

                                      πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                      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
                                      • rivalR Offline
                                        rival
                                        last edited by rival

                                        @3arn0wl the thing I miss the most on Ubuntu Touch is not having a cloud-based player. I've spent years building my collection* on OneDrive (I know, don't start) and I use an app called CloudPlayer on Android (https://play.google.com/store/apps/details?id=com.doubleTwist.cloudPlayerPro) I even pay for the premium version. It allows me to sync albums from my OneDrive to the local machine for my commute. I'd like to replicate this on Ubuntu Touch.

                                        @arubislander of course, but I have more free time tomorrow and Friday than I do today

                                        *by 'collection' I mostly mean Doctor Who stories from Big Finish

                                        AppLeeA 1 Reply Last reply Reply Quote 0
                                        • AppLeeA Offline
                                          AppLee @rival
                                          last edited by

                                          @rival You can sync NextCloud with your UT device using UBSync then use the media player to play your videos (or audio)
                                          IIRC Nextcloud features are being worked on by some people so it should be better supported.

                                          1 Reply Last reply Reply Quote 1
                                          • rivalR Offline
                                            rival
                                            last edited by

                                            Thanks @AppLee I'll install that and give it a go. I suspect that what I want is more specialised than this, but I'll look into it and see if it can help shape my thinking. I'm happy to build something that syncs with the standard player, my original intention (back in the day) was to do something fancy with the music scope.

                                            1 Reply Last reply Reply Quote 0
                                            • E Offline
                                              enrolado @rival
                                              last edited by

                                              @rival Have you checked if your user can run docker? That is, docker ps works? I think I hit a similar issue that was resolved when I added my user to the docker group

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