Results 1 to 2 of 2

Thread: Using the subdirs TEMPLATE, having problems with dependencies

  1. #1
    Join Date
    Mar 2008
    Location
    Colorado, USA
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Using the subdirs TEMPLATE, having problems with dependencies

    I have the following qt.pro file:
    ################################################## ###
    TEMPLATE = subdirs
    SUBDIRS = qt_shared qt_test

    qt_shared.subdir = qtshared

    qt_test.subdir = qttest

    qt_test.depends = qt_shared
    qt_test.target = QtTest

    ################################################## #####

    This file, qt.pro, is in the directory right above qtshared/ and qttest/.

    I have qtshared.pro (which generates a static library successfully), and qttest.pro (which generates an app QtTest), in their appropriate directories.

    Whenever the dir qtshared/ changes, my generated makefile is smart enough to recompile the library in qtshared , but it is not smart enough to relink the qttest app against this library. Even though none of the source code in qttest changes, I want to relink it against the shared library made in qtshared.


    I don't even have to do it this way, I am essentially looking for a way to have QtTest have a dependency on a static library. After a week and a half of research and experimentation, I have had no luck. Any help is appreciated. Thanks.

  2. #2
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Using the subdirs TEMPLATE, having problems with dependencies

    im stuck in one of the same situation....plz help....

Similar Threads

  1. qmake failure for SUBDIRS template on OSX
    By lonejedi in forum Newbie
    Replies: 3
    Last Post: 24th May 2010, 00:02
  2. using the subdirs Template
    By bhs-ittech in forum Newbie
    Replies: 2
    Last Post: 23rd November 2007, 10:45
  3. qmake INSTALLS and subdirs template ...
    By sandros in forum Qt Programming
    Replies: 1
    Last Post: 24th October 2007, 22:10

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.