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

    Clickable can't install dependencies for native app

    Scheduled Pinned Locked Moved Unsolved App Development
    1 Posts 1 Posters 152 Views 1 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.
      • S Offline
        Semp
        last edited by

        Device: Nexus 5
        Host: Ubuntu 20.04

        I'm currently trying to port an existing C++ application (namingly, SuperTux) to Ubuntu Touch.

        I managed to get clickable to compile on desktop properly; however, when testing on my phone, clickable fails to install the dependencies:

        ...
        (Reading database ... 52898 files and directories currently installed.)
        Removing python-minimal (2.7.12-1~16.04) ...
        Processing triggers for man-db (2.7.5-1) ...
        Selecting previously unselected package python-minimal:armhf.
        (Reading database ... 52872 files and directories currently installed.)
        Preparing to unpack .../python-minimal_2.7.12-1~16.04_armhf.deb ...
        Unpacking python-minimal:armhf (2.7.12-1~16.04) ...
        Processing triggers for man-db (2.7.5-1) ...
        dpkg: python: dependency problems, but removing anyway as you requested:
         libglib2.0-dev:armhf depends on python:any (>= 2.6.6-7~).
         google-mock:armhf depends on python:any.
        
        (Reading database ... 52898 files and directories currently installed.)
        Removing python (2.7.12-1~16.04) ...
        Processing triggers for man-db (2.7.5-1) ...
        Setting up python2.7-minimal:armhf (2.7.12-1ubuntu0~16.04.13) ...
        /usr/bin/python2.7: 1: /usr/bin/python2.7: Syntax error: word unexpected (expecting ")")
        dpkg: error processing package python2.7-minimal:armhf (--configure):
         subprocess installed post-installation script returned error exit status 2
        dpkg: dependency problems prevent configuration of python-minimal:armhf:
         python-minimal:armhf depends on python2.7-minimal (>= 2.7.12-1~); however:
          Package python2.7-minimal:armhf is not configured yet.
        
        dpkg: error processing package python-minimal:armhf (--configure):
         dependency problems - leaving unconfigured
        Errors were encountered while processing:
         python2.7-minimal:armhf
         python-minimal:armhf
        W: --force-yes is deprecated, use one of the options starting with --allow instead.
        E: Sub-process /usr/bin/dpkg returned an error code (1)
        The command '/bin/sh -c apt-get update && apt-get install -y --force-yes --no-install-recommends libogg-dev:armhf libvorbis-dev:armhf libopenal-dev:armhf libboost-all-dev:armhf libsdl2-dev:armhf libsdl2-image-dev:armhf libfreetype6-dev:armhf libcurl4-openssl-dev:armhf libglew-dev:armhf libharfbuzz-dev:armhf libfribidi-dev:armhf && apt-get clean' returned a non-zero code: 100
        Command exited with non-zero exit status 100, see above for details. This is most likely not a problem with Clickable.
        

        My clickable.json file is this:

        {
          "builder": "cmake",
          "dependencies_target": [
            "libogg-dev",
            "libvorbis-dev",
            "libopenal-dev",
            "libboost-all-dev",
            "libsdl2-dev",
            "libsdl2-image-dev",
            "libfreetype6-dev",
            "libcurl4-openssl-dev",
            "libglew-dev",
            "libharfbuzz-dev",
            "libfribidi-dev"
          ]
        }
        

        (If needed, I can provide the exact steps to reproduce my build, including a git patch)

        How should I proceed to fix this problem?

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