Qt-interest Archive, December 2006
static and shared libs of Qt and MinGW
Message 1 in thread
Hello
I'm using Qt 4.2.1 for Windows.
Per default, Qt comes with libQtCore4.a and so on in the .\lib\ directory.
It whould be very cool, that the user/programmer has the possibility to
build his app once with shared, another once with static libs of QT and
mingw-libs.
It should be possible, to have a
make release-static
or somethings like that.
make release // with shared Qt-libs
make [debug] // default
make release-static // with STATIC Qt-libs
... // whatever
To have a "make release-static" is very important, because if you whant
to distribute your apps, you dont need to bundle all needed Qt- und
mingw- DLL libs.
I know, there is a
configure -static
option.
This will also change the config files for qmake in \mkspecs\ dir?!
And prepares for recompile the whole Qt to build all(?) libs static.
But, why did Trolltech not shipping static AND shared libs? Then, I only
need a switch in the pro file or better, with make release-static or
similar.
Bye
Michael
--
[ signature omitted ]