Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. CMAKE AUTOGEN of RCC list causes Error with Permission Denied
Forum Updated to NodeBB v4.3 + New Features

CMAKE AUTOGEN of RCC list causes Error with Permission Denied

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
cmakeodroidrccpermissionerror
7 Posts 2 Posters 2.5k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    monkfood
    wrote on last edited by
    #1

    Hi everyone
    I am compiling a Qt5 programm that contains RESOURCES in the cmake file. however in the cmake process I get a permission denied for this file. The process is run on an Odroid XU4
    All files are owned by my root user, and I run the cmake as sudo.
    Does anyone have an idea about this?

    ----------------------------------------------CMAKE>
    set(RESOURCES
    "default_configuration.qrc")

    ----------------------------------------------CONTENT OF QRC>
    <RCC>
    <qresource prefix="/default_configuration">
    <file>bumblebee.ini</file>
    <file>logging.conf</file>
    </qresource>
    </RCC>

    ----------------------------------------------RESULT>
    -- Configuring done
    AUTOGEN: error: Rcc list process for /root/greenhive-cortex/modules/core/default_configuration.qrc failed:

    Permission denied
    -- Generating done

    1 Reply Last reply
    0
    • M Offline
      M Offline
      monkfood
      wrote on last edited by
      #2

      I continued researching the problem and even when i remove the resource, i get a permission denied at the "Automatic moc and rcc" step of the make process. so i guess it is not the ressource.
      But still does someone have an idea where mz permission problem could be?

      [ 1%] Automatic moc and rcc for target XXXXXX
      Generating moc_XXXXXX.cpp
      Permission denied
      AUTOGEN: error: process for /home/odroid/Desktop/build/modules/module_XXXXXX/moc_XXXXXX.cpp failed:

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        It seems that you have parts of your stuff in the root folder of your device and parts in a user home folder. You likely have a permission issue here.

        Try moving everything in the user folder.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • M Offline
          M Offline
          monkfood
          wrote on last edited by
          #4

          True, sorry for the confusion. I had the same thought that the problem could be me working in the root folder. thus I moved all to the user folder and did the process from there. So in the second result everything is in the user folder.

          i use
          odroid@odroid:~/Downloads/build$ cmake ../xxxxxxx/

          and get
          AUTOGEN: error: Rcc list process for /home/odroid/Downloads/xxxxxxx/modules/core/default_configuration.qrc failed:

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Did you check that you have the rights correctly set where the file are generated ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              monkfood
              wrote on last edited by
              #6

              I created the "build" folder in the "Download" folder. So it is owned by the user "odroid".
              Since i run cmake from this folder should not all files be generated there? Are there other places that the cmake generates files that i am not aware of?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                You can have files with different rights anywhere on your system. One thing you can do is nuke that build folder then use chown and chmod on the content of your download folder and ensure that everything belongs to the correct user and with read/write properties.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved