[Qt-creator] About compile QTcreator with mingw
Friedemann Kleint
Friedemann.Kleint at nokia.com
Wed Nov 17 11:36:00 CET 2010
Hi,
we usually use MinGW as follows:
In a Windows Command Prompt, set up the environment variables as follows:
---------------------------------------------------
@echo off
set LIB=
set INCLUDE=
set QTDIR=C:\<path_to_qt>
set PATH=%QTDIR%\bin;C:\<path_to_mingw>\bin;c:\<path_to_creator>\bin;%PATH%
set QMAKESPEC=win32-g++
---------------------------------------------------
It is recommended to put this in a bat-file, say qtvars.bat. For convenience,
you can then create a desktop link to cmd.exe by specifying:
%SystemRoot%\system32\cmd.exe /E:ON /V:ON /k c:\...\qtvars.bat
This will give you a command prompt with the correct environment set (like the
Visual Studio command prompt).
Next, a quick check: In that prompt, type:
sh.exe
That should result in a 'command not found' error. If some sh.exe is found,
the compile process will go haywire. You would have to remove it from the path
(don't ask why ;-) ).
In that prompt, configure and build Qt as usual. Verify by launching designer
or assistant. No messages about missing DLLs should show.
You should then be able to build and run Qt Creator using qmake and make and
it should find the right DLLs.
We have used gcc 4.4 and gcc 4.5. Note however, that debugging will currently
not work with gcc 4.5 due to it not producing debugging symbols.
I hope this helps,
Regards,
Friedemann
--
Friedemann Kleint
Nokia, Qt Development Frameworks
More information about the Qt-creator-old
mailing list