Problems compiling Qt3 win32 with mingw

Joe Mervini jamervini at
Mon Jan 24 18:02:47 CET 2005

I had the same problems. First, make sure you have the latest release 
available. Also make sure that you have the latest version of MINGW. 
The version that I originally had produced the errors with the '/' '\' 
recognition.  If you have these it will work right out of the box 
following the compile-mingw.php. One note is that you may need to run 

The downloads that I used from the appropriate sites were:


If you have problems with compiling some of the network/kernel files 
let me know and I can point you in the right direction.

On Jan 22, 2005, at 6:12 PM, AgarFu wrote:

> Hi, I'm following this instructions 
> But I'm having lots of problems, The first one. Makefile generated for 
> moc directory seems
> to be bad, I solve it editing Makefile, change / into \ and executing 
> mingw32-make again, this dont solve
> the problem, when mingw32-make finish I execute qmake and mingw32-make 
> again. Finally moc is ok.
> Then, go back into src and mingw32-make again. This time compilation 
> ends with an error while
> compiling kernel/qwidget_win.cpp, undefined reference to LWA_ALPHA. I 
> found the definition of
> this constant in google.
> #ifndef LWA_ALPHA
>  #define LWA_ALPHA 0x00000002
> #endif
>  I put it into kernel/qwidget_win.cpp and mingw32-make again.
> The last error is this:
> g++ -c -mthreads -w -O2 -fno-exceptions -fno-rtti -DQT_SHARED 
> LL -DQT_MAKEDLL -I"tmp" -I"3rdparty\libmng" -I"3rdparty\libjpeg" 
> -I"3rdparty\lib
> png" -I"3rdparty\zlib" -I"c:\PyQt\qt-3\include" -I"c:\PyQt\qt-3\src" 
> -I"tmp\moc\
> release-shared-mt" -I"c:\PyQt\qt-3\mkspecs\win32-g++" -o 
> tmp\obj\release-shared-
> mt\qfontengine_win.o kernel\qfontengine_win.cpp
> kernel/qfontengine_win.cpp: In member function `void
>    QFontEngine::getGlyphIndexes(const QChar*, int, glyph_t*, bool) 
> const':
> kernel/qfontengine_win.cpp:325: cannot convert `WCHAR*' to `UINT*' in
>    assignment
> kernel/qfontengine_win.cpp:334: cannot convert `WCHAR*' to `UINT*' in
>    assignment
> kernel/qfontengine_win.cpp: In member function `virtual 
> QFontEngine::Error
>    QFontEngineWin::stringToCMap(const QChar*, int, glyph_t*, 
> advance_t*, int*,
>    bool) const':
> kernel/qfontengine_win.cpp:379: cannot convert `WCHAR*' to `UINT*' in
>    assignment
> kernel/qfontengine_win.cpp:392: cannot convert `WCHAR*' to `UINT*' in
>    assignment
> mingw32-make: *** [tmp\obj\release-shared-mt\qfontengine_win.o] Error 1
> I can't solve it yet, could you help me, please?
> Yes, I know, my english is awful, sorry.
> _______________________________________________
> kde-cygwin mailing list
> kde-cygwin at
					Joe Mervini
					IT Manager
		           ABQ UV Pollution Solutions, Inc.
				    11030 Cochiti SE
				Albuquerque, NM 87123

505.332.2169		505.332.2175 (fax)		505.710.8575 (mobile)

				jamervini at

More information about the kde-cygwin mailing list