[Qt-creator] Problems building QtCreator 2.1 Beta2
Bill King
bill.king at nokia.com
Mon Nov 29 02:49:44 CET 2010
Interesting, it looks like webkit has been disabled. Did you build this
manually?
I double checked with the released qt 4.7.0 and 4.7.1 binary releases,
and both contain webkit built in to them, also at the bottom of the
help.pro project file is:
contains(QT_CONFIG, webkit) {
QT += webkit
}
which will include the necessary pieces to link if webkit has been built
for your target qt.
Could you include a copy of your .qmake.cache and configure.cache files
from the qt build directory please? Maybe we can see something there.
Regards,
Bill.
On 11/29/2010 06:16 AM, ext Alex Oransky wrote:
> 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 <http://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_?print at QWebView@@QBEXPAVQPrinter@@@Z)
> referenced in function "public: void __thiscall
> Help::Internal::CentralWidget::print(void)"
> (?print at CentralWidget@Internal at Help@@QAEXXZ)
>
> generalsettingspage.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: int __thiscall
> QWebSettings::fontSize(enum QWebSettings::FontSize)const "
> (__imp_?fontSize at QWebSettings@@QBEHW4FontSize at 1@@Z) referenced in
> function "public: __thiscall
> Help::Internal::GeneralSettingsPage::GeneralSettingsPage(void)"
> (??0GeneralSettingsPage at Internal@Help@@QAE at XZ)
>
> helpviewer_qwv.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: int __thiscall
> QWebSettings::fontSize(enum QWebSettings::FontSize)const "
> (__imp_?fontSize at QWebSettings@@QBEHW4FontSize at 1@@Z)
>
> generalsettingspage.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class QWebSettings * __cdecl
> QWebSettings::globalSettings(void)"
> (__imp_?globalSettings at QWebSettings@@SAPAV1 at XZ) referenced in function
> "public: __thiscall
> Help::Internal::GeneralSettingsPage::GeneralSettingsPage(void)"
> (??0GeneralSettingsPage at Internal@Help@@QAE at XZ)
>
> helpviewer_qwv.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static class QWebSettings * __cdecl
> QWebSettings::globalSettings(void)"
> (__imp_?globalSettings at QWebSettings@@SAPAV1 at XZ)
>
> helpplugin.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: class QAction * __thiscall
> QWebView::pageAction(enum QWebPage::WebAction)const "
> (__imp_?pageAction at QWebView@@QBEPAVQAction@@W4WebAction at QWebPage@@@Z)
> referenced in function "private: void __thiscall
> Help::Internal::HelpPlugin::createRightPaneContextViewer(void)"
> (?createRightPaneContextViewer at HelpPlugin@Internal at Help@@AAEXXZ)
>
> helpviewer_qwv.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: class QAction * __thiscall
> QWebView::pageAction(enum QWebPage::WebAction)const "
> (__imp_?pageAction at QWebView@@QBEPAVQAction@@W4WebAction at QWebPage@@@Z)
>
> helpplugin.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> QWebFrame::scrollToAnchor(class QString const &)"
> (__imp_?scrollToAnchor at QWebFrame@@QAEXABVQString@@@Z) referenced in
> function "private: void __thiscall
> Help::Internal::HelpPlugin::activateContext(void)"
> (?activateContext at HelpPlugin@Internal at Help@@AAEXXZ)
>
> helpplugin.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: class QWebFrame * __thiscall
> QWebPage::mainFrame(void)const "
> (__imp_?mainFrame at QWebPage@@QBEPAVQWebFrame@@XZ) referenced in
> function "private: void __thiscall
> Help::Internal::HelpPlugin::activateContext(void)"
> (?activateContext at HelpPlugin@Internal at Help@@AAEXXZ)
>
> helpplugin.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: class QWebPage * __thiscall
> QWebView::page(void)const " (__imp_?page at QWebView@@QBEPAVQWebPage@@XZ)
> referenced in function "private: void __thiscall
> Help::Internal::HelpPlugin::activateContext(void)"
> (?activateContext at HelpPlugin@Internal at Help@@AAEXXZ)
>
>
> <skip>
>
>
> moc_helpviewer.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: virtual void * __thiscall
> QWebView::qt_metacast(char const *)"
> (__imp_?qt_metacast at QWebView@@UAEPAXPBD at Z) referenced in function
> "public: virtual void * __thiscall
> Help::Internal::HelpViewer::qt_metacast(char const *)"
> (?qt_metacast at HelpViewer@Internal at Help@@UAEPAXPBD at 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_metacall at QWebView@@UAEHW4Call at QMetaObject@@HPAPAX at Z)
> referenced in function "public: virtual int __thiscall
> Help::Internal::HelpViewer::qt_metacall(enum
> QMetaObject::Call,int,void * *)"
> (?qt_metacall at HelpViewer@Internal at Help@@UAEHW4Call at QMetaObject@@HPAPAX at Z)
>
> moc_helpviewer.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static struct QMetaObject const
> QWebView::staticMetaObject"
> (__imp_?staticMetaObject at 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
> <andre.hartmann at iseg-hv.de <mailto:andre.hartmann at iseg-hv.de>> 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
> <http://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
> Qt-creator at trolltech.com <mailto:Qt-creator at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
--
Bill King, Software Engineer
Qt Development Frameworks, Nokia Pty Ltd
Brisbane Office
More information about the Qt-creator-old
mailing list