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

    Solved Some wrongs with app installing with clickable

    Support
    2
    3
    69
    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.
    • Z
      zomfly
      last edited by zomfly

      Hi, I have a Nexus 5 with ubuntu touch, but now i have some problems.
      I use wsl2(Ubuntu 22.04) and installed clickable on it.
      I create a demo with all QML.

      zomfly@zfDESKTOP ~/code/ut                                                                                                          [19:37:39]
      > $ clickable create
      You've downloaded /home/zomfly/.cookiecutters/ut-app-meta-template before. Is it okay to delete and re-download it? [yes]: no
      Do you want to re-use the existing version? [yes]: yes
      Select Template:
      1 - QML Only
      2 - C++
      3 - Python
      4 - HTML
      5 - Go
      6 - Rust
      7 - Godot (Precompiled)
      Choose from 1, 2, 3, 4, 5, 6, 7 [1]: 1
      Title [App Title]: demo
      Description [A short description of your app]: demo
      App Name [appname]: demo
      Namespace [yourname]: demo
      Maintainer Name [Your FullName]: demo
      Maintainer Email [email@domain.org]: demo@demo.org
      Select License:
      1 - GNU General Public License v3
      2 - MIT license
      3 - BSD license
      4 - ISC license
      5 - Apache Software License 2.0
      6 - Not open source
      Choose from 1, 2, 3, 4, 5, 6 [1]: 2
      Copyright Year [2023]:
      Gitlab CI script [n]:
      Git Tag Versioning [n]:
      Save as Default [n]:
      
      Successfully created app "demo.demo"
      Get started with the following commands:
      
       $ cd /home/zomfly/code/ut/demo
       $ clickable
      
      zomfly@zfDESKTOP ~/code/ut                                                                                                          [19:38:23]
      > $ cd demo
      
      zomfly@zfDESKTOP ~/code/ut/demo                                                                                                     [19:38:27]
      > $ clickable --ssh 192.168.123.138
      Going to run all of "build", "install", "launch"
      Running command "build"
      Building app
      -- The C compiler identification is GNU 9.4.0
      -- The CXX compiler identification is GNU 9.4.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1")
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /home/zomfly/code/ut/demo/build/all/app
      [ 50%] Merging translations into demo.desktop...
      [ 50%] Built target demo_FILES
      [100%] Generating translation template
      Wrote demo.desktop.in.h
      Merging translations into demo.desktop.
      [100%] Built target demo.desktop
      [100%] Built target demo.demo.pot
      [ 50%] Merging translations into demo.desktop...
      Merging translations into demo.desktop.
      [ 50%] Built target demo.desktop
      [ 50%] Built target demo_FILES
      [100%] Generating translation template
      Wrote demo.desktop.in.h
      [100%] Built target demo.demo.pot
      Install the project...
      -- Install configuration: "Release"
      -- Installing: /home/zomfly/code/ut/demo/build/all/app/install/./manifest.json
      -- Installing: /home/zomfly/code/ut/demo/build/all/app/install//demo.apparmor
      -- Installing: /home/zomfly/code/ut/demo/build/all/app/install//assets
      -- Installing: /home/zomfly/code/ut/demo/build/all/app/install//assets/logo.svg
      -- Installing: /home/zomfly/code/ut/demo/build/all/app/install//qml
      -- Installing: /home/zomfly/code/ut/demo/build/all/app/install//qml/Main.qml
      -- Installing: /home/zomfly/code/ut/demo/build/all/app/install//demo.desktop
      Successfully built package in './demo.demo_1.0.0_all.click'.
      Running review on /home/zomfly/code/ut/demo/build/all/app/demo.demo_1.0.0_all.click
      /home/zomfly/code/ut/demo/build/all/app/demo.demo_1.0.0_all.click: pass
      Running command "install"
      Pseudo-terminal will not be allocated because stdin is not a terminal.
      Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 3.4.0-cyanogenmod-g2b465f7fdcf armv7l)
      
       * Documentation:  https://help.ubuntu.com
       * Management:     https://landscape.canonical.com
       * Support:        https://ubuntu.com/advantage
      
      demo.demo_1.0.0_all.click                                                                                    100% 3454    73.9KB/s   00:00
      Pseudo-terminal will not be allocated because stdin is not a terminal.
      Installing the app.
      Pseudo-terminal will not be allocated because stdin is not a terminal.
      错误:GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.lomiri.click was not provided by any .service files
      Command exited with non-zero exit status 1, see above for details. This is most likely not a problem with Clickable.
      
      arubislanderA 1 Reply Last reply Reply Quote 0
      • arubislanderA
        arubislander @zomfly
        last edited by

        @zomfly Your Nexus 5 is still running 16.04, correct?
        Projects generated with clickable now default to 20.04 framework, which is not available on your Nexus 5. Check the contents of the clickable.yml file and change the 20.04 to 16.04. If the QML files contain references to Lomiri.* packages, then you should also change those to Ubuntu.*.

        🇦🇼 🇳🇱 🇺🇸 🇪🇸
        Happily running Ubuntu Touch
        BQ Aquaris M10 FHD (16.04 RC)
        Google Pixel 3a (20.04 DEV)
        JingPad (20.04 DEV)
        Meizu Pro 5 (16.04 DEV)
        PinePhone / PineTab UT CE (20.04 daily)

        Z 1 Reply Last reply Reply Quote 1
        • Z
          zomfly @arubislander
          last edited by

          @arubislander Thanks a lot! I solved the problem with your comments.
          In Additional, the value of policy_version in *.apparmor should also change to 16.04, and X-Lomiri-Touch in *.desktop.in should change to X-Ubuntu-Touch.

          1 Reply Last reply Reply Quote 1
          • Z zomfly has marked this topic as solved on
          • First post
            Last post