Linking my app dynamically against statically built QT?
-
Hi,
I built my QT statically by configuring as follows (platform is Win32 bit VS2008)
configure -static -no-sql-sqlite -no-qt3support -no-opengl -platform win32-msvc2008
and the did nmake.Now I want my app to link dynamically against the statically built QT.
I would really appreciate your help in knowing how to do it?Note: My app will also load some QT static plugins by using Q_IMPORT_PLUGIN, Is it possible with dynamically linked app against statically linked QT.
Thanks
-
What do you mean by dynamically link against static library?
-
I mean I want to link my app dynamically against QT. (QT was statically linked)
Is it even possible here? -
I afraid no. You should have two different qt instances (one dynamically linked and one statically linked).
-
Thanks Denis.
I have one more question:
Lets say I build my QT dynamic linked and then link my app against it.
Can my app still use some static linked plugins from QT by doing Q_IMPORT_PLUGIN or thats also not possible. -
[quote author="butters" date="1289581791"]
Lets say I build my QT dynamic linked and then link my app against it.
Can my app still use some static linked plugins from QT by doing Q_IMPORT_PLUGIN or thats also not possible.
[/quote]It's possible. Just make sure you put a CONFIG += static into the .pro file for the plugin...