|
|
Hi, All:
I found in Qt-interest Archive:
///////////////////////////////////////////////////////////////////////////
Qt-interest Archive, July 2005
[Qt4] Win-OpenSource static build
How can I build a Qt library to statically link my Windows Qt programs?
My System is WindowsXP.
What I tried so far:
I used the qt-win-opensource installer,
which downloaded and installed MinGW.
That Qt-MinGW toolchain is working for my dynamically linked programs.
But I need to statically link some other,
so i started the qt shell from start menu.
Now invoking
configure -release -static
and
mingw32-make sub-src
ends up in a failure with the ar.exe from MinGW.
Which i worked around by using an ar-Script
in the \src\gui subdirectory release Makefile.
But at last the build process stopped at building
uic3.exe with the following error messages:
------------------------------------------
here were many undefined references
------------------------------------------
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\..\bin\uic3.exe] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/src/tools/uic3'
mingw32-make[1]: *** [sub-tools\uic3-make_first-ordered] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/src'
mingw32-make: *** [sub-src] Error 2
How can I build a Qt library to statically link my Windows Qt programs?
Has somebody did that already and could give some advise?
Any help would be appreciated.
With kind regards
Stefan Sander
//////////////////////////////////////////////////////////////////
I meet the same problem these days...
Had this problem been resolved?
Cliff Jump
|
|