Results 1 to 2 of 2

Thread: Need help with QMAKE_EXTRA_UNIX_COMPILERS

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Need help with QMAKE_EXTRA_UNIX_COMPILERS

    Hi,

    I need to add additional config handler to generate pre-process header, as
    ser.input = SER_HEADERS
    ser.output = ser_${QMAKE_FILE_NAME}
    ser.commands = $$SER_CC ${QMAKE_FILE_NAME}
    QMAKE_EXTRA_UNIX_COMPILERS += ser
    where $$SER_CC is my own compiler, which will generate a ASCII header file. The problem is that when linking to create the executable, the "ser.output" is treated as an object files and is linked in to create the executable. Of course the linking fails.

    How can I have a rule not to link with the "ser" outputs?

    Thanks.

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Need help with QMAKE_EXTRA_UNIX_COMPILERS

    Got it, I need to add
    ser.CONFIG = no_link
    Thanks anyway

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.