Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building examples: File does not exist '../shared/shared.qrc'
Forum Updated to NodeBB v4.3 + New Features

Building examples: File does not exist '../shared/shared.qrc'

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 576 Views 2 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.
  • april_heardA Offline
    april_heardA Offline
    april_heard
    wrote on last edited by april_heard
    #1

    I'm facing issues with getting the any examples to work. The ones I have tried complain with:

    File does not exist '../shared/shared.qrc'
    

    My steps are:

    • Installed Qt Creator from Arch Linux repositories (using pacman)
      It is not installed into a virtual environment
    • Open Welcome Section in Qt Creator 4.11.0-4 and go to Examples
    • Choose the externaldraganddrop example (located at /usr/share/doc/qt/examples/quick/externaldraganddrop/)
    • Accept the suggestion to "Copy Project & Open" the example to a writeable location (in my home folder)
    • Configure Project: accept default (desktop kit)

    Upon building & running the project I am faced with a lot of these errors:

    WARNING: Failure to find: ../shared/shared.qrc
    /usr/bin/rcc: File does not exist '../shared/shared.qrc'
    

    My next step was to copy /usr/share/doc/qt/examples/quick/shared/ to the correct relative location of '../shared/'

    from my project's location (in my home directory) I can see that the file shared.qrc is located where it is expected:

    $ ls ../shared/shared.qrc
    -rw-r--r-- 1 user user 623 Dec 12 03:45 ../shared/shared.qrc
    

    I see a similar question here:

    Examples difficult to use - QtWebkit Examples in particular | Qt Forum https://forum.qt.io/topic/83731/examples-difficult-to-use-qtwebkit-examples-in-particular

    The solution there was to install OpenSuse, which is not realistic for me. This should work on Arch Linux, right?

    Anyone know how I can resolve this?

    EDIT: I removed the confusing stuff. Too much information. Question is now more directly to the point.

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

      What if you do it quick and dirty and copy the complete examples folder ?

      Don't forget to try a full clean rebuild.

      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
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Are you trying to build the examples directly in the folder where they are ?

        This won't work since it's in a read-only part of your system.

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

        april_heardA 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Are you trying to build the examples directly in the folder where they are ?

          This won't work since it's in a read-only part of your system.

          april_heardA Offline
          april_heardA Offline
          april_heard
          wrote on last edited by
          #3

          @SGaist said in Building examples: File does not exist '../shared/shared.qrc':

          Hi,

          Are you trying to build the examples directly in the folder where they are ?

          This won't work since it's in a read-only part of your system.

          No, as I stated, I'm not doing that. Maybe I should edit my question to make it less confusing. But I explained how to copied the examples to a writeable location.

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

            What if you do it quick and dirty and copy the complete examples folder ?

            Don't forget to try a full clean rebuild.

            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
            2

            • Login

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