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. Multi-platform RESOURCE issue
QtWS25 Last Chance

Multi-platform RESOURCE issue

Scheduled Pinned Locked Moved Solved Mobile and Embedded
ioswindowslinux
4 Posts 3 Posters 1.6k Views
  • 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.
  • D Offline
    D Offline
    DRoscoe
    wrote on last edited by DRoscoe
    #1

    I am using Qt Creator to work on a multi-platform project (Windows, Linux, iOS). Currently, I am building it for iOS Simulator. I have the following line in my main .pro file:

    RESOURCES += qml.qrc

    When I build the program for iOS, I see the following:

    xcodebuild[11058:265169] warning: The file reference for "<path>/qml.qrc" is a member of multiple groups ("Supporting Files" and "Resources"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.

    A quick Google search indicated that this is due to my including "qml.qrc" in the RESOURCES list. Removing it, however, introduces a new problem, this time a fatal one:

    qrc:/main.qml:-1 File not found

    Is there a better way to do this to satisfy all platforms or should I just accept the warning and move on?

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

      Hi,

      AFAIK, that warning won't affect your project. It seems that's something already signaled here

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        AFAIK, that warning won't affect your project. It seems that's something already signaled here

        D Offline
        D Offline
        DRoscoe
        wrote on last edited by
        #3

        @SGaist Its not affecting my programs. I just don't like ignoring warnings, or having my compiler telling me I have a malformed project ;-)

        If there's no workaround, I'll live with it. Thanks!

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AlterX
          wrote on last edited by
          #4

          I am getting this as well....I don't know if it is relevant but I am using an image as BorderImage and is not streched....I put a normal one, and I still see the old image used for ButtonImage.
          I am working on ios 9.3.1

          Qt Ambassador
          Real-time cooperative teams: http://www.softairrealfight.net
          Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

          https://codereview.qt-project.org/...

          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