[SOLVED] Qt Creator - Project dependencies not detecting changes in static libs
-
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
-
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
-
Thanks Koahnig, that is the perfect solution!
-
Ended up switching to the SCons build system. Its great.
-
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.