Hi everyone. I know: 99% of questions about Qt is installation problems of open-source version (I think Trolltech made it specially for increasing sales of commercial version . My question is not trivial, haven't found it yet (except my same one on qtforum.org),

I'm trying to compile Qt 4.3.1.

Here is my script:

Qt Code:
  1. @echo off
  2. rem
  3. rem This file is generated
  4. rem
  5.  
  6. echo Setting up a MinGW/Qt only environment...
  7. echo -- QTDIR set to C:\Qt\4.3.1
  8. echo -- PATH set to C:\Qt\4.3.1\bin
  9. echo -- Adding C:\MinGW\bin to PATH
  10. echo -- Adding %SystemRoot%\System32 to PATH
  11. echo -- QMAKESPEC set to win32-g++
  12.  
  13. set QTDIR=C:\Qt\4.3.1
  14. set PATH=C:\Qt\4.3.1\bin
  15. set PATH=%PATH%;C:\MinGW\bin
  16. set PATH=%PATH%;%SystemRoot%\System32
  17. set QMAKESPEC=win32-g++
  18.  
  19. cd %QTDIR%
  20. REM make confclean
  21. pause
  22. configure -debug-and-release -static -no-qt3support -no-rtti -no-stl -no-exceptions -no-accessibility -qt-libpng -qt-libjpeg -qt-sql-psql -I "C:\Progra~1\PostgreSQL\8.2\include" -L "C:\Progra~1\PostgreSQL\8.2\lib" l libpq
  23. cd %QTDIR%\src
  24. REM qmake
  25. mingw32-make sub-src
To copy to clipboard, switch view to plain text mode 

There are no problems with paths etc. All processes passed without any error. I've just one big problem: can't compile programs which use libQt...4d (e.g. - libQtGui4d) libs (v4 debug libs). There are all other versions of libs compiled and placed into lib folder (e.g. - there are libQtGuid.a, libQtGui.a, libQtGui4.a).

Programs which doesn't use v4 debug libs are also compiled and launched successfully.

I've spent two days without any hint. There are no such problem reports yet in internet. I think most of Qt users suspect nothing about absence of v4 debug libs.

So questions are:
1. Does anyone have libQt...d4.a files in Qt lib folder yet? If yes - give me some clue - what I've missed and where. What for these "v4" versions needed yet?

2. Does qtmake launching (commented in my script) is neccessary? What does it do at all in my case?

In officialy generated qtvars.bat it's present, in lot of forum posts - absent. Who knows?

Thanks for any questions.