Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37969

Examples do not work in Qt creator when installed in /opt (rcc:-1: error: File does not exist '../../shared/shared.qrc')

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.3.0 Beta1
    • Examples and Demos
    • None
    • Kubuntu 13.10
      Qt 5.3.0 beta

    Description

      When trying out any of the QtQuick examples in Qt Creator one gets "rcc:-1: error: File does not exist '../../shared/shared.qrc'" during compilation.

      Not certain if this bug should be filled for project "Qt/Examples and demos" or "Qt creator"

      To reproduce:

      • under Linux install "Qt 5.3.0 beta 1" globally, by running the installer as root, and installing to /opt/Qt5.3.0
      • after installation, start Qt creator as normal user.
      • in the "welcome" screen, go to examples and select the "QtQuick calqltr example".
      • you now get a prompt: "The project you are about to open is located in the write-protected location", select "Copy project and open"
      • now try compiling the project. You will get hundreds of "rcc:-1: error: File does not exist '../../shared/shared.qrc'" errors.

      This is caused by Qt creator only copying the project directory /opt/Qt5.3.0/Examples/Qt-5.3/quick/demos/calqlatr to a writeable location.
      calqlatr.pro contains a references to "../../shared/shared.qrc", but the "shared" folder is not copied.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              docteam Qt Documentation Team
              max Max
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes