Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Qt Creator - Project dependencies not detecting changes in static libs
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt Creator - Project dependencies not detecting changes in static libs

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 6.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sipickles
    wrote on last edited by
    #1

    Hi, I am using Qt Creator 2.5.83.

    Following the advice in this video: http://qt-project.org/videos/watch/introduction_to_automated_testing_for_qt_applications

    ... I have set my projects up so my main body of code is in a static library. I then have two separate applications both linking to the static library, a main app and a test app.

    This allows me to use the same code for tests and the app itself. The app and test launcher both have a 'Project Dependency' of the static lib, in Qt Creator.

    With a clean rebuild, this works fine. However, if I make a change to the library code and build the library, I have to do a REBUILD on the linking apps to get them to pull in the changes. It's like Qt Creator doesn't recognise that the lib has been updated so doesn't relink the apps. If I just do a build, it claims there is no work to do.

    Is there any way I can get Qt Creator to detect the linked lib has changed?

    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Have a look at "this thread.":http://qt-project.org/forums/viewthread/22830/

      The solution in my case is given "here.":http://qt-project.org/forums/viewthread/22830/#106833

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sipickles
        wrote on last edited by
        #3

        Thanks Koahnig, that is the perfect solution!

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sipickles
          wrote on last edited by
          #4

          Ended up switching to the SCons build system. Its great.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cirobispo
            wrote on last edited by
            #5

            Hi, I was in some sort of problem just like that. I'll be more specific:

            I have a project with 3 more projects inside (subdirs). One for app (widgets) and others as static libs. So the idea is to call throught app the last lib. Something like: First lib goes asks for last lib to do some task, this task is to do some query. Compiling each of one alone does not get me errors, but when I ask for a build all, my last libs says it does not find QSqlDatabase.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved