Hello, I tried to build Qt Creator 2.1 RC1 with Qt Framework 4.7.1 on Windows. The Qt framework was for VC 2008, taken from http://qt.nokia.com/downloads. I got similar problems- there were 90 LINK2019 errors, all related to WebKit and generated while building help.pro. I have put a fragment of the compile output below.
I also got similar errors when building Qt Creator 2.1 beta 2 and also 2.0.1. Note that building with Qt Framework 4.7.0 does not yield any errors for Qt Creator 2.0.1 or any 2.1. Is there some macro that needs to be defined or undefined for building with Qt 4.7.1? Or, Qt 4.7.1 needs to be configured in a certain way in order to build Qt Creator? Thanks in advance! Alex Creating library ..\..\..\lib\qtcreator\plugins\Nokia\Helpd.lib and object ..\..\..\lib\qtcreator\plugins\Nokia\Helpd.exp centralwidget.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QWebView::print(class QPrinter *)const " (__imp_?pr...@qwebview@@QBEXPAVQPrinter@@@Z) referenced in function "public: void __thiscall Help::Internal::CentralWidget::print(void)" (?pr...@centralwidget @inter...@help@@QAEXXZ) generalsettingspage.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall QWebSettings::fontSize(enum QWebSettings::FontSize)const " (__imp_?fonts...@qwebsettings @@qbehw4fonts...@1@@Z) referenced in function "public: __thiscall Help::Internal::GeneralSettingsPage::GeneralSettingsPage(void)" (??0generalsettingsp...@internal@Help@@q...@xz) helpviewer_qwv.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall QWebSettings::fontSize(enum QWebSettings::FontSize)const " (__imp_?fonts...@qwebsettings @@qbehw4fonts...@1@@Z) generalsettingspage.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class QWebSettings * __cdecl QWebSettings::globalSettings(void)" (__imp_?globalsetti...@qwebsettings @@sap...@xz) referenced in function "public: __thiscall Help::Internal::GeneralSettingsPage::GeneralSettingsPage(void)" (??0generalsettingsp...@internal@Help@@q...@xz) helpviewer_qwv.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class QWebSettings * __cdecl QWebSettings::globalSettings(void)" (__imp_?globalsetti...@qwebsettings @@sap...@xz) helpplugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QAction * __thiscall QWebView::pageAction(enum QWebPage::WebAction)const " (__imp_?pageact...@qwebview@@QBEPAVQAction@@w4webact...@qwebpage@@@Z) referenced in function "private: void __thiscall Help::Internal::HelpPlugin::createRightPaneContextViewer(void)" (?createrightpanecontextvie...@helpplugin@inter...@help@@AAEXXZ) helpviewer_qwv.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QAction * __thiscall QWebView::pageAction(enum QWebPage::WebAction)const " (__imp_?pageact...@qwebview@@QBEPAVQAction@@w4webact...@qwebpage@@@Z) helpplugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QWebFrame::scrollToAnchor(class QString const &)" (__imp_?scrolltoanc...@qwebframe@@QAEXABVQString@@@Z) referenced in function "private: void __thiscall Help::Internal::HelpPlugin::activateContext(void)" (?activatecont...@helpplugin@inter...@help@@AAEXXZ) helpplugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QWebFrame * __thiscall QWebPage::mainFrame(void)const " (__imp_?mainfr...@qwebpage @@QBEPAVQWebFrame@@XZ) referenced in function "private: void __thiscall Help::Internal::HelpPlugin::activateContext(void)" (?activatecont...@helpplugin@inter...@help@@AAEXXZ) helpplugin.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QWebPage * __thiscall QWebView::page(void)const " (__imp_?p...@qwebview@@QBEPAVQWebPage@@XZ) referenced in function "private: void __thiscall Help::Internal::HelpPlugin::activateContext(void)" (?activatecont...@helpplugin@inter...@help@@AAEXXZ) <skip> moc_helpviewer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void * __thiscall QWebView::qt_metacast(char const *)" (__imp_?qt_metac...@qwebview @@uaepax...@z) referenced in function "public: virtual void * __thiscall Help::Internal::HelpViewer::qt_metacast(char const *)" (?qt_metac...@helpviewer@inter...@help@@uaepax...@z) moc_helpviewer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual int __thiscall QWebView::qt_metacall(enum QMetaObject::Call,int,void * *)" (__imp_?qt_metac...@qwebview@@uaehw4c...@qmetaobject@@hpa...@z) referenced in function "public: virtual int __thiscall Help::Internal::HelpViewer::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metac...@helpviewer@inter...@help@@uaehw4c...@qmetaobject@@hpa...@z ) moc_helpviewer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static struct QMetaObject const QWebView::staticMetaObject" (__imp_?staticmetaobj...@qwebview @@2UQMetaObject@@B) ..\..\..\lib\qtcreator\plugins\Nokia\Helpd.dll : fatal error LNK1120: 90 unresolved externals On Wed, Nov 10, 2010 at 2:11 AM, André Hartmann <[email protected]>wrote: > Hi again, > > I'm trying to build QtCreator 2.1 Beta2 with Qt Framework 4.7.1 on > Windows XP. The mingw is from Qt SDK 2010.02.1 (gcc 4.4.0). > > When building the help plugin, I got a lot of errors (shortened here, > because of size) and the build stops. Any ideas? > > Thanks, > Andre > > Führe Build-Schritte für Projekt qtcreator aus... > Starte "c:/qt/4.7.1/bin/qmake.exe" > D:/Daten/Tools.qt/qt-creator-2.1.0-beta2-src/qtcreator.pro -r -spec > win32-g++ CONFIG+=release > > [...] > > mingw32-make[4]: Entering directory > `d:/Daten/Tools.qt/qtcreator-build-desktop/src/plugins/help' > > cp > ../../../../qt-creator-2.1.0-beta2-src/src/plugins/help/Help.pluginspec > ../../../lib/qtcreator/plugins/Nokia/Help.pluginspec > > [...] > > ./release/centralwidget.o:centralwidget.cpp:(.text+0x46c): undefined > reference to `_imp___ZNK8QWebView5printEP8QPrinter' > > ./release/centralwidget.o:centralwidget.cpp:(.text+0xf74): undefined > reference to `_imp___ZNK8QWebView5printEP8QPrinter' > > ./release/generalsettingspage.o:generalsettingspage.cpp:(.text+0x262): > undefined reference to `_imp___ZN12QWebSettings14globalSettingsEv' > > ./release/generalsettingspage.o:generalsettingspage.cpp:(.text+0x273): > undefined reference to `_imp___ZNK12QWebSettings8fontSizeENS_8FontSizeE' > > [...] > > /release/helpviewer_qwv.o:helpviewer_qwv.cpp:(.rdata$_ZTV8HelpPage[vtable > for > HelpPage]+0x8): undefined reference to `QWebPage::metaObject() const' > > ./release/helpviewer_qwv.o:helpviewer_qwv.cpp:(.rdata$_ZTV8HelpPage[vtable > for HelpPage]+0xc): undefined reference to `QWebPage::qt_metacast(char > const*)' > > ./release/helpviewer_qwv.o:helpviewer_qwv.cpp:(.rdata$_ZTV8HelpPage[vtable > for HelpPage]+0x10): undefined reference to > `QWebPage::qt_metacall(QMetaObject::Call, int, void**)' > > ./release/helpviewer_qwv.o:helpviewer_qwv.cpp:(.rdata$_ZTV8HelpPage[vtable > for HelpPage]+0x1c): undefined reference to `QWebPage::event(QEvent*)' > > [...] > > Creating library file: > > d:/Daten/Tools.qt/qtcreator-build-desktop/lib/qtcreator/plugins/Nokia/libHelp.a > > mingw32-make[4]: Leaving directory > `d:/Daten/Tools.qt/qtcreator-build-desktop/src/plugins/help' > > mingw32-make[3]: Leaving directory > `d:/Daten/Tools.qt/qtcreator-build-desktop/src/plugins/help' > > > ./release/moc_helpviewer.o:moc_helpviewer.cpp:(.rdata$_ZTVN4Help8Internal10HelpViewerE[vtable > for Help::Internal::HelpViewer]+0xe8): undefined reference to > `QWebView::createWindow(QWebPage::WebWindowType)' > > collect2: ld returned 1 exit status > > mingw32-make[4]: *** [../../../lib/qtcreator/plugins/Nokia/Help.dll] Error > 1 > > mingw32-make[3]: *** [release] Error 2 > > mingw32-make[2]: Leaving directory > `d:/Daten/Tools.qt/qtcreator-build-desktop/src/plugins' > > mingw32-make[2]: *** [sub-help-make_default] Error 2 > > mingw32-make[1]: Leaving directory > `d:/Daten/Tools.qt/qtcreator-build-desktop/src' > > mingw32-make[1]: *** [sub-plugins-make_default-ordered] Error 2 > > mingw32-make: Leaving directory `D:/Daten/Tools.qt/qtcreator-build-desktop' > > mingw32-make: *** [sub-src-make_default-ordered] Error 2 > > Der Prozess "C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe" wurde mit dem > Rückgabewert %2 beendet. > Fehler beim Erstellen des Projekts qtcreator(Ziel: Desktop) > Bei der Ausführung von Build-Schritt 'Make' > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-creator >
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
