PDA

View Full Version : How to link the DLL statically



Sergei Smirnov
21st June 2010, 17:53
Hi evrybody!
I wonder how to link statically all the necessary Qt standard dlls into my dll-file .
I have now created the dll and need to deploy it. But I don't want to bring all the Qt system dlls together with mine.
So I tryed to link it statically. I configuerd the copy of the Qt statically and tried to build the dll. This approach turned out to be unsuccessfull. What I only managed to do was to link applications statically (all dependencies were resolved inside the application) but when I just change the TEMPLATE from app to lib and point out the dll in CONFIG everything fails. I receive just a dll file with all the dependencies unresolved - just as I do with the dynamic version of the Qt library.
Is this possible or not? (In Borland C++ Builder for example I just set one flag to move all its native content statically into the building dynamic library),