Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, December 2007
Qt4.4.0-tp1 build failed under Win32-g++


Message 1 in thread

I'm using gcc version 4.2.1-sjlj (mingw32-2)
configure option is
configure.exe -debug -webkit -openssl
After configure ok, I start to mingw32-make
it got error:

g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -Wall -frtti -fexceptions
-mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNI
ODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE
-DQT_MAKEDLL -DQT_ASCII_CAST_WARNINGS -DQT_44_API_Q
QLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES
-DHB_EXPORT=Q_CORE_EXPORT -DQT_DLL -I"..\..\include" -I".
\..\include\QtCore" -I"tmp" -I"concurrent" -I"global" -I"..\3rdparty\zlib"
-I"..\3rdparty\harfbuzz\src" -I"c:\Qt\4.4.0-tp1
include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\..\4.3.2\include"
-I"c:\GnuWin32\include" -I"c:\MinGW\include" -
"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\qeventdispatcher_win.o
kernel\qeventdispatcher_win.cpp
kernel\qeventdispatcher_win.cpp: In destructor 'virtual
QEventDispatcherWin32Private::~QEventDispatcherWin32Private()':
kernel\qeventdispatcher_win.cpp:363: error: 'qt_internal_proc' was not
declared in this scope
mingw32-make[2]: *** [tmp/obj/debug_shared/qeventdispatcher_win.o] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/4.4.0-tp1/src/corelib'
mingw32-make[1]: *** [debug] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.4.0-tp1/src/corelib'
mingw32-make: *** [sub-corelib-make_default-ordered] Error 2

Can anyone help to indicate my error here? Thanks

Regards,
William

Message 2 in thread

william lee wrote:
>I'm using gcc version 4.2.1-sjlj (mingw32-2)
>configure option is
>configure.exe -debug -webkit -openssl
>After configure ok, I start to mingw32-make
>it got error:
>
>g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -Wall -frtti
> -fexceptions -mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNI
>ODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE
>-DQT_MAKEDLL -DQT_ASCII_CAST_WARNINGS -DQT_44_API_Q
>QLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES
>-DHB_EXPORT=Q_CORE_EXPORT -DQT_DLL -I"..\..\include" -I".
>\..\include\QtCore" -I"tmp" -I"concurrent" -I"global"
> -I"..\3rdparty\zlib" -I"..\3rdparty\harfbuzz\src" -I"c:\Qt\4.4.0-tp1
>include\ActiveQt" -I"tmp\moc\debug_shared" -I"."
> -I"..\..\..\4.3.2\include" -I"c:\GnuWin32\include" -I"c:\MinGW\include"
> -
>"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\qeventdispatcher_win.o
>kernel\qeventdispatcher_win.cpp
>kernel\qeventdispatcher_win.cpp: In destructor 'virtual
>QEventDispatcherWin32Private::~QEventDispatcherWin32Private()':
>kernel\qeventdispatcher_win.cpp:363: error: 'qt_internal_proc' was not
>declared in this scope
>mingw32-make[2]: *** [tmp/obj/debug_shared/qeventdispatcher_win.o] Error
> 1 mingw32-make[2]: Leaving directory `C:/Qt/4.4.0-tp1/src/corelib'
> mingw32-make[1]: *** [debug] Error 2
>mingw32-make[1]: Leaving directory `C:/Qt/4.4.0-tp1/src/corelib'
>mingw32-make: *** [sub-corelib-make_default-ordered] Error 2
>
>Can anyone help to indicate my error here? Thanks

It seems we did some code reorganisation and there's a reference to 
qt_internal_proc before it is defined.

Can you check if the attached patch makes a difference?

-- 
 [ signature omitted ] 
diff src/corelib/kernel/qeventdispatcher_win.cpp src/corelib/kernel/qeventdispatcher_win.cpp
--- src/corelib/kernel/qeventdispatcher_win.cpp
+++ src/corelib/kernel/qeventdispatcher_win.cpp
@@ -283,6 +283,8 @@ static void resolveTimerAPI()
     }
 }
 
+// forward declaration
+LRESULT CALLBACK qt_internal_proc(HWND hwnd, UINT message, WPARAM wp, LPARAM lp);
 
 class QEventDispatcherWin32Private : public QAbstractEventDispatcherPrivate
 {

Attachment:

Attachment: signature.asc
Description: This is a digitally signed message part.