Results 1 to 3 of 3

Thread: qmake question

  1. #1
    Join Date
    Apr 2008
    Posts
    6
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qmake question

    Hello

    I have a bunch of third party libraries in my project. Some of these have multiple source files with the same name, only in different directories. When I add all sources to a single qmake project, it tries to overwrite the object files (that originate from different directories but have the same name). This happens because $OBJECTS_DIR is equal for all sources.
    What am I missing?

    Thanks for any help.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: qmake question

    this is known problem of qmake, there are two options:
    1. rename file.
    2. use another build system, for example CMake.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qmake question

    Alternatively you could use subdirs. each 3rdparty would be compiled as a static lib and then they would all be linked to the main target(s).
    Current Qt projects : QCodeEdit, RotiDeCode

  4. The following user says thank you to fullmetalcoder for this useful post:

    aarpon (7th April 2009)

Similar Threads

  1. qmake sux a lot
    By singermornings in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 08:33
  2. qmake debug/release scope question
    By redoctober0 in forum Qt Programming
    Replies: 1
    Last Post: 30th September 2008, 20:41
  3. qmake and libraries question
    By bnilsson in forum Qt Programming
    Replies: 4
    Last Post: 28th June 2008, 18:30
  4. qmake question
    By lni in forum Qt Programming
    Replies: 4
    Last Post: 18th April 2007, 00:42
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

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.