Qt-interest Archive, May 2008
Compile problem
Message 1 in thread
I'm trying to compile QT4.4-Win with MinGW 4.3 (alpha).
Configure works,
mingw32-make breaks on this error:
g++ -c -include tmp\obj\debug_shared\qt_gui_pch.h -g -Wall -frtti
-fexceptions -
mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_B
UILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII
-DQT_ASC
II_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES
-DPNG_NO_ASSE
MBLER_CODE -DQT_RASTER_IMAGEENGINE -DQT_RASTER_PAINTENGINE -DQT_NO_CUPS
-DQT_NO_
LPR -DQT_NO_FREETYPE -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC
-DQT_NO_STYLE_WINDOWSCE
-DQT_NO_STYLE_WINDOWSMOBILE -DQ_INTERNAL_QAPP_SRC -DQT_DLL -DQT_CORE_LIB
-I"..\.
.\include\QtCore" -I"..\..\include\QtCore" -I"..\..\include"
-I"..\..\include\Qt
Gui" -I"tmp\rcc\debug_shared" -I"tmp" -I"..\3rdparty\wintab"
-I"..\3rdparty\libp
ng" -I"..\3rdparty\zlib" -I"..\3rdparty\harfbuzz\src" -I"dialogs"
-I"d:\MinGW\QT
\include\ActiveQt" -I"tmp\moc\debug_shared" -I"."
-I"..\..\mkspecs\win32-g++" -o
tmp\obj\debug_shared\qwininputcontext_win.o
inputmethod\qwininputcontext_win.cp
p
inputmethod\qwininputcontext_win.cpp: In member function 'virtual void
QWinInput
Context::update()':
inputmethod\qwininputcontext_win.cpp:423: warning: suggest explicit
braces to av
oid ambiguous 'else'
inputmethod\qwininputcontext_win.cpp:423: warning: suggest explicit
braces to av
oid ambiguous 'else'
inputmethod\qwininputcontext_win.cpp:423: warning: suggest explicit
braces to av
oid ambiguous 'else'
inputmethod\qwininputcontext_win.cpp:423: warning: suggest explicit
braces to av
oid ambiguous 'else'
inputmethod\qwininputcontext_win.cpp: In member function 'bool
QWinInputContext:
:endComposition()':
inputmethod\qwininputcontext_win.cpp:512: error:
'qt_sendSpontaneousEvent' was n
ot declared in this scope
inputmethod\qwininputcontext_win.cpp: In member function 'virtual void
QWinInput
Context::reset()':
inputmethod\qwininputcontext_win.cpp:536: error:
'qt_sendSpontaneousEvent' was n
ot declared in this scope
inputmethod\qwininputcontext_win.cpp: In member function 'bool
QWinInputContext:
:composition(LPARAM)':
inputmethod\qwininputcontext_win.cpp:652: error:
'qt_sendSpontaneousEvent' was n
ot declared in this scope
mingw32-make[2]: *** [tmp/obj/debug_shared/qwininputcontext_win.o] Error 1
mingw32-make[2]: Leaving directory `D:/MinGW/QT/src/gui'
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory `D:/MinGW/QT/src/gui'
mingw32-make: *** [sub-gui-make_default-ordered] Error 2
Seems the same problem described in
http://lists.trolltech.com/qt-interest/2007-04/thread00269-0.html
(1 years ago, with GCC 4.1.1 in Linux, Fedora 6)
so I don't think it's a compiler/environment problem.
I tried QT-win 4.4.0 final and QT-win 4.4.1 20 may 2008 snapshot.
Is this a bug?
Thanks
Paolo
--
[ signature omitted ]
Message 2 in thread
Hi,
> inputmethod\qwininputcontext_win.cpp: In member function 'bool
> QWinInputContext:
> :endComposition()':
> inputmethod\qwininputcontext_win.cpp:512: error:
> 'qt_sendSpontaneousEvent' was n
> ot declared in this scope
Indeed, qt_sendSpontaneousEvent() is not really declared anywhere, just
declared as a friend in src/corelib/kernel/qcoreapplication.h:
class Q_CORE_EXPORT QCoreApplication : public QObject
{
[...]
friend bool qt_sendSpontaneousEvent(QObject*, QEvent*);
[...]
The fix is to add in src\gui\inputmethod\qwininputcontext_win.cpp:
extern bool qt_sendSpontaneousEvent(QObject *, QEvent *);
The same fix seems to have been applied in this case:
http://lists.trolltech.com/qt-interest/2007-04/thread00269-0.html
This is a bug. Could you please send a bug report to Trolltech so that the
problem is known and a fix is scheduled?
http://trolltech.com/bugreport-form
--
[ signature omitted ]