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

clickable permissions issue

Scheduled Pinned Locked Moved App Development
3 Posts 2 Posters 180 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 13 Feb 2025, 19:32

      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?

      L 1 Reply Last reply 14 Feb 2025, 21:42 Reply Quote 0
      • L Offline
        lxsed
        last edited by 13 Feb 2025, 19:35

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

        1 Reply Last reply Reply Quote 0
        • L Offline
          lduboeuf @lxsed
          last edited by lduboeuf 14 Feb 2025, 21:42

          @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
          2 out of 3
          • First post
            2/3
            Last post