Results 1 to 2 of 2

Thread: Build rules: Please assist

  1. #1
    Join Date
    Jan 2007
    Posts
    38
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Build rules: Please assist

    To use qt resources system, the docs says this

    The .qrc file must be mentioned in the application's .pro file so that qmake knows about it. For example:
    RESOURCES = application.qrc
    qmake will produce make rules to generate a file called qrc_application.cpp that is linked into the application. This file contains all the data for the images and other resources as static C++ arrays of compressed binary data. The qrc_application.cpp file is automatically regenerated whenever the .qrc file changes or one of the files that it refers to changes. If you don't use .pro files, you can either invoke rcc manually or add build rules to your build system.

    I would like to know how to add a build rule to my build system in visual studio .net 2003 ide to ensure that whenever i change the a file that the .qrc file refers to, then the generated qrc_application.cpp file will also be updated.

    all suggestions welcomed.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Build rules: Please assist

    I don't think it is easy to do (if possible at all) as files which are used are stored only in the qrc file itself, so you'd have to find a way to peek into the file and extract its contents and tell VS to use them as dependecies.

Similar Threads

  1. show build date in about box
    By glocker50 in forum Qt Programming
    Replies: 12
    Last Post: 3rd May 2015, 22:14
  2. problem after Qt 4.2.2 static build
    By npc in forum Newbie
    Replies: 2
    Last Post: 23rd February 2007, 12:28
  3. QT4 build debian/ubuntu package 4.2
    By patrik08 in forum Installation and Deployment
    Replies: 3
    Last Post: 21st September 2006, 08:01
  4. Using qmake to build multiple apps and libs
    By marchand in forum Newbie
    Replies: 2
    Last Post: 12th June 2006, 17:33
  5. QMAKE: Specifying Build Dependencies
    By JohnSuykerbuyk in forum Qt Programming
    Replies: 1
    Last Post: 5th May 2006, 09:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.