[Marble-devel] [Marble] using marblewidget library with QtCreatoron Windows

Konrad Enzensberger e.konrad at mpegcode.com
Thu Nov 17 08:00:58 UTC 2011


Hi Oliver,

make sure, marble knows the data path.
If your openstreetmap.dgml is located at:

"c:/data/earth/openstreetmap/openstreetmap.dgml"

than set the data path before setting theme id.
*******************************************
QString marbleDataPath = "C:/data/";
MarbleDirs::setMarbleDataPath(marbleDataPath);

// Load the OpenStreetMap map
mapWidget->setMapThemeId("earth/openstreetmap/openstreetmap.dgml"

br, konrad
  ----- Original Message ----- 
  From: Olivier Camus 
  To: marble-devel at kde.org 
  Sent: Wednesday, November 16, 2011 5:58 PM
  Subject: [Marble-devel] [Marble] using marblewidget library with QtCreatoron Windows


  Hi,

   

  I would like to know if some of you have already use the library under windows?

   

  I'm trying to perform the hello marble app.

  I succeed to build it.

  But the execution failed:

   

  -          Using QtCreator (2.2.84 based on QT 4.7.4) I got the following error:



   

  -          I've tried to build it manually (using mingw) but I got this error:



   

  Notice that without using any marble widget dependency, the app start.

   

  Thanks in advanced,

  Olivier.

   

  Main.cpp:

  #include <QtGui/QApplication>

  #include "mainwindow.h"

   

  #include <marble/MarbleWidget.h>

   

  #define MARBLE_APP

   

  #ifdef MARBLE_APP

  using namespace Marble;

  #endif

   

  int main(int argc, char** argv)

  {

      QApplication app(argc,argv);

   

  #ifndef MARBLE_APP

      MainWindow w;

      w.show();

  #endif

   

  #ifdef MARBLE_APP

      // Create a Marble QWidget without a parent

      MarbleWidget *mapWidget = new MarbleWidget();

      // Load the OpenStreetMap map

      mapWidget->setMapThemeId(

                  "earth/openstreetmap/openstreetmap.dgml"

                  );

      mapWidget->show();

  #endif

   

      return app.exec();

  }

   



------------------------------------------------------------------------------


  _______________________________________________
  Marble-devel mailing list
  Marble-devel at kde.org
  https://mail.kde.org/mailman/listinfo/marble-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20111117/d293a815/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 20903 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20111117/d293a815/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 23995 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20111117/d293a815/attachment-0003.png>


More information about the Marble-devel mailing list