Problems compiling Qt3 win32 with mingw

AgarFu heaven at croasanaso.sytes.net
Sun Jan 23 02:12:15 CET 2005


Hi, I'm following this instructions http://kde-cygwin.sourceforge.net/qt3-win32/compile-mingw.php
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 -DQT_THREAD_SUPPOR
T -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DUNICODE -DQT_MA
KEDLL -DQT_THREAD_SUPPORT -DQT_NO_CUPS -DQT_NO_NIS -DQT_NO_BIG_CODECS -DQT_NO_ST
YLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_POCKETPC -DQT_D
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.


More information about the kde-cygwin mailing list