Getting my development environment running



  • 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



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



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



  • 😞 Rebooted, but same errors.



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


  • 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.



  • 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.



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



  • @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.



  • @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)



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



  • 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)



  • @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.



  • @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.



  • 🙂 Do you have an idea for an app, @rival ?



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



  • @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



  • @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.



  • 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.


Log in to reply