[Qt-interest] Change Qt library names for app template

Aleksandar Vasilev alxvasilev at gmail.com
Tue Jan 27 06:42:22 CET 2009


Hi all,

I have the following problem:
I am building Qt in static mode with MINGW (Windows XP), using cygwin
bash shell and the native MINGW (not cygwin's MINGW). Whenever the build
process has to create an application (exe file) the link process fails
with an error that libQt*4.a is not found, for example libQtCore4.a or
libQtXml4.a. The libraries that are built do not have the '4' suffix. I
checked the makefiles, and they seem to specify linking both with
libQt*.a and libQt*4.a. I changed the makefiled manually by deleting the
'4' suffix and the link completes normally, but it is quite annoying to
have the build stop every now and then and require me to edit makefiles.
So I searched for the place where these library names are defined but
could not find anywhere the names defined explicitly. From the research
I made it seems that these lib names are hardcoded in qmake itself for
the app template. But looking at the source of qmake I again could not
find the names defined explicitly or in any way that I could recognize.
Can anyone point me the right place where these lib names are defined?

Thanks in advance

Best regards
Alex





More information about the Qt-interest-old mailing list