Building examples: File does not exist '../shared/shared.qrc'
-
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.
- Installed Qt Creator from Arch Linux repositories (using pacman)
-
What if you do it quick and dirty and copy the complete examples folder ?
Don't forget to try a full clean rebuild.
-
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.
-
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.
@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.
-
What if you do it quick and dirty and copy the complete examples folder ?
Don't forget to try a full clean rebuild.