Results 1 to 1 of 1

Thread: qmake - Precompile

  1. #1
    Join Date
    Oct 2008
    Qt products
    Unix/X11 Windows

    Default qmake - Precompile


    I need a precompile step. The reason is that I have a project with DB2 inline sql code. So I have file, i.e. example.sqC. That files needs to be precompiled with db2 first: db2 prep example.sqC bindfile
    This will create the example.C file which I can compile normally then.

    So what I'll do is:
    1. precompile the .sqC file
    2. compile the generated .C file with the other files of the project
    (3. link all together)

    I tried it with QMAKE_EXTRA_COMPILERS and QMAKE_EXTRA_TARGETS. With the extra compilers, I got it to pre compile. But then it wasn't compiled with the "normal" tools, and also my INCLUDEPATH was ignored. And it wasn't linked into the .so file.
    With extra targets, nothing happend.

    Last edited by tsschulz; 22nd October 2017 at 13:00.

Similar Threads

  1. Replies: 4
    Last Post: 7th July 2014, 11:55
  2. QMAKE FLAGS in qmake.conf for solaris-cc-64 uses old flags
    By qmake_query in forum Installation and Deployment
    Replies: 0
    Last Post: 16th October 2012, 09:11
  3. qmake on mac does nothing ?!
    By aheirich in forum Newbie
    Replies: 1
    Last Post: 19th December 2010, 05:25
  4. qmake sux a lot
    By singermornings in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 08:33
  5. Precompile headers
    By bruccutler in forum Newbie
    Replies: 2
    Last Post: 17th April 2007, 15:33


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.