How to run non-clickable app on a phone for development



  • Hi all,

    I tried to set-up an app development environment and it mostly worked. I used clickable setup with lxd from the wiki and installed also QtCreator and many qt libraries. Installing ubuntu-sdk-ide didn't worked, I guess it's because I'm on 16.04.
    I just have a few questions:

    • I can simply modify and run clickable app like address-book-app, but how do I get dialer-app on the phone and start it instead of installed version to see changes and really test it? I really like that simple case when app is started and on exit removed from the phone, so it doesn't conflict with installed version. Is there any similar simple way?
      Also, should be app converted to clickable or not in such case ? If I recall, they wanted it to be replaced with snaps, but I guess they never got there and I don't know anything about it right now.

    • Is there any way to simply install all needed qt/qml libraries for the core apps ? Right now I run the app from QtCreator and from the warnings about missing libraries I have to deduce ubuntu package to install (which is not always straightforward).

    • When I run the app from QtCreator, i see following error: file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/1.3/Icon.qml:113:5: QML QQuickImage: Failed to get image from provider: image://theme/chevron
      It doesn't load any icons in the UI, so some buttons in top menu are in a fact invisible. Am I missing some packages ? or it will never work on a desktop - just on a phone ?

    • There are untranslated strings in some apps, but translation state says it's 100%. So I looked and it seems, that some strings are not present in a .pot file (even thou they are in a code as translatable). So they are not available for translation. Is there any way to update .pot automatically by scanning the whole project or do I have to add entries manually ? Or to be more accurate, what is your preferred solution? I don't know if automation process can actually break something for existing translations.

    Thank you.



  • To answer to myself :-).

    • I guess I meant calendar-app and not address-book-app. For address-book-app I can see there is a snap config and also click package config. Click package can be build, but is with "ubuntu-sdk-14.10-qml-dev2" in config, which doesn't even install on 15.04 phone. If I change it to version from calendar-app, it install and crash on a start with no logs (or where they are?).

    So how do you guys build it at all ? Github repository accepts translation changes, but you surely want to deploy them sooner than after port to 16.04 is ready or not ? And it's a core app pre-installed on a phone, so somebody must once build it for 15.04.

    • I guess there is not.

    • sudo apt install suru-icon-theme, but even then, some icons are reported as missing. I guess sources expect older/newer version than is available in 16.04

    • It seems, that build takes care for this itself, also there are sometimes other branches, than master where translation changes are made and complete.



  • @zlamalp said in How to run non-clickable app on a phone for development:

    To answer to myself :-).

    • I guess I meant calendar-app and not address-book-app. For address-book-app I can see there is a snap config and also click package config. Click package can be build, but is with "ubuntu-sdk-14.10-qml-dev2" in config, which doesn't even install on 15.04 phone. If I change it to version from calendar-app, it install and crash on a start with no logs (or where they are?).

    See whether there are any log files WHILE it is running. I've had it once that logs got removed before I had a change to look at :-P

    try something like:

    while : ; do cp application-howevertheselogfilesarecalled-calendar-app*.log my.log ; done


Log in to reply
 

Looks like your connection to UBports Forum was lost, please wait while we try to reconnect.