Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Compile qrc to rcc in Creator
Forum Updated to NodeBB v4.3 + New Features

Compile qrc to rcc in Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 5.3k 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.
  • S Offline
    S Offline
    SteveKing
    wrote on 2 Aug 2011, 08:30 last edited by
    #1

    Hi,

    I think I'm having brain fade at the moment, but can someone show me a simple .pro file that takes a single qrc file and creates an rcc from it? I don't want to build it into a DLL or an app, simply a binary set of resources that we can load at run time.

    Thanks,
    Steve

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on 2 Aug 2011, 08:37 last edited by
      #2

      You do not need a .pro file. Just call the rcc from the command line:
      @
      rcc -binary myresource.qrc -o myresource.rcc
      @

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SteveKing
        wrote on 2 Aug 2011, 09:46 last edited by
        #3

        I just thought it would be cleaner to have it in its own .pro as for our scenario it's a serperate buildable component. I guess I'll go with the command line.

        Thanks

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on 2 Aug 2011, 12:45 last edited by
          #4

          You might be able to do something using "this":http://doc.qt.nokia.com/latest/qmake-environment-reference.html#customizing

          1 Reply Last reply
          0

          4/4

          2 Aug 2011, 12:45

          • Login

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