Hi and sorry for my poor English.<br><br>I want to use the MarbleWidget
on Visual C++. So i try to compile Marble with visual Studio, but it
fail (i made a post about this : <a href="http://forum.kde.org/viewtopic.php?f=21&t=96213&sid=710f72525a7946c67f3b8c3158ef4529" target="_blank">http://forum.kde.org/viewtopic.php?f=21&t=96213&sid=710f72525a7946c67f3b8c3158ef4529</a>) but i finally success to compile Marble with the MinGW command.<br>
<br>I want to do this tutorial :<br><br><a href="http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus" target="_blank">http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus</a><br><br>I create a new project, include all the include file i found in c:\programs files\marble\include<br>
<br>I include marblewidget.h and use the namespace like in the tutorial : <br clear="all"><pre><span>#include <QtGui><br>#include <QtGui/qapplication.h><br>#include <QtGui/qpushButton.h><br>
#include <marbleInclude/MarbleWidget.h><br><br>using namespace Marble;<br><br>int main(int argc, char *argv[])<br>{<br> QApplication app(argc, argv);<br><br> // Create a Marble QWidget without a parent<br> MarbleWidget *mapWidget = new MarbleWidget();<br>
<br> // Load the OpenStreetMap map<br> mapWidget->setMapThemeId("earth/openstreetmap/openstreetmap.dgml");<br> <br> mapWidget->show();<br><br> return app.exec();<br>}<br></span><br></pre><br>But I still got some error :<br>
<br>error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Marble::MarbleWidget::<div id=":1xa">setMapThemeId(class QString const &)" (__imp_?setMapThemeId@MarbleWidget@Marble@@QAEXABVQString@@@Z) referenced in function _main<br>
<br>error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Marble::MarbleWidget::MarbleWidget(class QWidget *)" (__imp_??0MarbleWidget@Marble@@QAE@PAVQWidget@@@Z) referenced in function _main Main.obj<br>
<br><br>I can use the MarbleWidget in QtDesigner<br><br>Any Idea ?<br><br>thx<br><br>Cordialy MoZo</div><br clear="all"><br>-- <br>Cordialement Morgan Ozeau<br><br>