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

    clickable permissions issue

    Scheduled Pinned Locked Moved App Development
    4 Posts 3 Posters 686 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.
      • L Offline
        lxsed
        last edited by

        Hi.
        I'm trying to port cocos2d-x (my v2 fork) to Ubuntu Touch.
        I compiled all the libraries, but I understood that docker containers don't have permission to access "other" files. I decided to check it and it seems to be true (I thought cmake doesn't see directories one level above the project)

        Here is my directory structure:

        • $HOME
          • qttest (project dir)
          • lib
            • libz.a

        When the library directory is OUTSIDE the project directory, the container can't access it:
        make[2]: *** No rule to make target '/home/ruchyekov/lib/libz.a', needed by 'qttest'. Stop.

        And even clickable run "ls $HOME" gives only qttest and not a single other directory/file

        So, how can I set permissions for clickable so that it can read files outside the project directory?

        lduboeufL 1 Reply Last reply Reply Quote 0
        • L Offline
          lxsed
          last edited by

          source:
          https://drive.google.com/file/d/15iYkZgC8nso4QiQX6y6gqSMVvJ_ptmHf/view?usp=sharing

          1 Reply Last reply Reply Quote 0
          • lduboeufL Offline
            lduboeuf @lxsed
            last edited by lduboeuf

            @lxsed said in clickable permissions issue:

            Hi.
            I'm trying to port cocos2d-x (my v2 fork) to Ubuntu Touch.
            I compiled all the libraries, but I understood that docker containers don't have permission to access "other" files. I decided to check it and it seems to be true (I thought cmake doesn't see directories one level above the project)

            Here is my directory structure:

            • $HOME
              • qttest (project dir)
              • lib
                • libz.a

            When the library directory is OUTSIDE the project directory, the container can't access it:
            make[2]: *** No rule to make target '/home/ruchyekov/lib/libz.a', needed by 'qttest'. Stop.

            And even clickable run "ls $HOME" gives only qttest and not a single other directory/file

            So, how can I set permissions for clickable so that it can read files outside the project directory?

            If you want to work with a third party lib you have to ship it within the click and link to it in your app.
            If it is a lib that exist in the target os and not in the default clickable setup you have to specify dependencies_target: https://clickable-ut.dev/en/latest/project-config.html#dependencies-target

            e.g: https://gitlab.com/ubports/development/apps/lomiri-gallery-app/-/blob/main/clickable.yaml

            1 Reply Last reply Reply Quote 0
            • developerbaymanD Offline
              developerbayman
              last edited by

              kinda different but not but in python would say the dependencies in a requirements.txt file be listed (obviously) but how would i list them like the requirements.txt? or would i need to list them like im installing them also what if its a pip only package and not something through say apt?

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post