2012-02-19 7 views
1

私はbisect qtwebkitを開始しました。最初の段階でコンパイルしようとすると、次の例外が発生しました。私は古いqmakeを使ってみましたが、それでも同じ例外があります。これは本当に何を意味し、どのように修正することができますか?bisectingのmingw32-makeを使用してqt-webkitをコンパイル

g++ -c -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DBUILDING_QT__=1 -DWTF_USE_ACCELERATED_COMPOSITING -DUSE_SYSTEM_MALLOC -DNDEBUG -D_HAS_TR1=0 -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include" -I"." -I"..\..\webkit" -I"assembler" -I"bytecode" -I"bytecompiler" -I"debugger" -I"interpreter" -I"jit" -I"parser" -I"pcre" -I"profiler" -I"runtime" -I"wtf" -I"wtf\symbian" -I"wtf\unicode" -I"yarr" -I"API" -I"ForwardingHeaders" -I"generated" -I"\include\QtWebKit" -I"pcre" -I"\JavaScriptCore\tmp" -I"..\..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"c:\QtSDK1.2\mingw\include" -I"c:\QtSDK1.2\mingw\include" -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\MainThreadQt.o wtf\qt\MainThreadQt.cpp In file included from wtf\qt\MainThreadQt.cpp:72: 
tmp\moc\debug_shared/MainThreadQt.moc:13:2: error: #error "This file was generated using the moc from 4.8.0. It" 
tmp\moc\debug_shared/MainThreadQt.moc:14:2: error: #error "cannot be used with the include files from this version of Qt." 
tmp\moc\debug_shared/MainThreadQt.moc:15:2: error: #error "(The moc has changed too much.)" 
In file included from wtf\qt\MainThreadQt.cpp:72: 
tmp\moc\debug_shared/MainThreadQt.moc:42: error: no 'void WTF::MainThreadInvoker::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)' member function declared in class 'WTF::MainThreadInvoker' 
tmp\moc\debug_shared/MainThreadQt.moc:55: error: 'const QMetaObjectExtraData WTF::MainThreadInvoker::staticMetaObjectExtraData' is not a static member of 'class WTF::MainThreadInvoker' 
tmp\moc\debug_shared/MainThreadQt.moc:56: error: 'qt_static_metacall' was not declared in this scope 
tmp\moc\debug_shared/MainThreadQt.moc:57: error: too many initializers for 'const QMetaObjectExtraData' 
tmp\moc\debug_shared/MainThreadQt.moc:61: error: 'staticMetaObjectExtraData' was not declared in this scope 
tmp\moc\debug_shared/MainThreadQt.moc:62: error: too many initializers for 'QMetaObject::<anonymous struct>' 
tmp\moc\debug_shared/MainThreadQt.moc: In member function 'virtual int WTF::MainThreadInvoker::qt_metacall(QMetaObject::Call, int, void**)': 
tmp\moc\debug_shared/MainThreadQt.moc:88: error: 'qt_static_metacall' was not declared in this scope 
mingw32-make[2]: *** [tmp/obj/debug_shared/MainThreadQt.o] Error 1 
mingw32-make[2]: Leaving directory `C:/Qt/qtGITSource/qt/src/3rdparty/webkit/JavaScriptCore' 
mingw32-make[1]: *** [debug-all] Error 2 
mingw32-make[1]: Leaving directory `C:/Qt/qtGITSource/qt/src/3rdparty/webkit/JavaScriptCore' 
mingw32-make: *** [sub-JavaScriptCore-make_default-ordered] Error 2 

答えて

0

IMH011。 2,3は重要である:「このファイルは4.8.0からMOCを使用して生成されたそれは、」

エラー

エラー「のQtのこのバージョンから、インクルードファイルで使用することはできません。」

あなたのバージョンがqt 4.8未満であり、すべてのmocファイルが以前のビルドでmoc v4.8で生成されました。ビルドディレクトリをきれいにして、ビルドコマンドを再起動する必要があります(qmake、mocなどの適切なバージョンを使用していることを確認してください)。

+0

ご返信いただきありがとうございます。私はmingw32を実行しました - プロジェクトをきれいにするために混乱を起こしましたが、それは私を助けるようには見えませんでした。このエラーでは、tmp \ moc \ debug_shared/MainThreadQt.mocファイルが記述されていますが、存在しません。私も4.7.4のqmakeを使ってみました。それは私に同じエラーを与えることに終わった。本当にあなたの答えに感謝します。 – Tharanga

+0

どのgit commitを使っていますか? (どのコミットがこの問題を引き起こしますか?)Windowsでコンパイルするか、クロスコンパイルしますか? – sgibb

+0

私はqt4.8を使用しており、後方に構築しようとしています。私はそれが間違っていると思う。 Qtwebkitという1つのコンポーネントを構築するのではなく、最初から構築する必要がありました。 – Tharanga

関連する問題