Registered Member
|
Ok, I have just installed Marble (thanks to @shentey) but I have another problem. While I am building simple code from there http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus I get a lot of linker errors (I've installed the Qt Visual Studio Add-in):
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Marble::MarbleWidget::setMapThemeId(class QString const &)" (__imp_?setMapThemeId@MarbleWidget@Marble@@QAEXABVQString@@@Z) referenced in function _main 1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Marble::MarbleWidget::MarbleWidget(class QWidget *)" (__imp_??0MarbleWidget@Marble@@QAE@PAVQWidget@@@Z) referenced in function _main 1>main.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall Marble::MarbleWidget::metaObject(void)const " (?metaObject@MarbleWidget@Marble@@UBEPBUQMetaObject@@XZ) 1>main.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall Marble::MarbleWidget::qt_metacast(char const *)" (?qt_metacast@MarbleWidget@Marble@@UAEPAXPBD@Z) 1>main.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Marble::MarbleWidget::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@MarbleWidget@Marble@@UAEHW4Call@QMetaObject@@HPAPAX@Z) 1>main.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleWidget::connectNotify(char const *)" (?connectNotify@MarbleWidget@Marble@@MAEXPBD@Z) 1>main.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleWidget::disconnectNotify(char const *)" (?disconnectNotify@MarbleWidget@Marble@@MAEXPBD@Z) 1>main.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleWidget::leaveEvent(class QEvent *)" (?leaveEvent@MarbleWidget@Marble@@MAEXPAVQEvent@@@Z) 1>main.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleWidget::paintEvent(class QPaintEvent *)" (?paintEvent@MarbleWidget@Marble@@MAEXPAVQPaintEvent@@@Z) 1>main.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleWidget::resizeEvent(class QResizeEvent *)" (?resizeEvent@MarbleWidget@Marble@@MAEXPAVQResizeEvent@@@Z) 1>main.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleWidget::changeEvent(class QEvent *)" (?changeEvent@MarbleWidget@Marble@@MAEXPAVQEvent@@@Z) 1>main.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Marble::MarbleWidget::customPaint(class Marble::GeoPainter *)" (?customPaint@MarbleWidget@Marble@@MAEXPAVGeoPainter@2@@Z) 1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Marble::MarbleWidget::~MarbleWidget(void)" (__imp_??1MarbleWidget@Marble@@UAE@XZ) referenced in function "public: virtual void * __thiscall Marble::MarbleWidget::`scalar deleting destructor'(unsigned int)" (??_GMarbleWidget@Marble@@UAEPAXI@Z) I think there is missing marblewidget.lib file but I cannot find it in my Marble install directory (it's only in src directory). |
Administrator
|
Could you possibly be mixing compiled Qt versions?
Please see viewtopic.php?f=217&t=108863#unread As you are using Visual Studio, you need a version of Qt compiled with MSVC.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell