[Marble-devel] [Marble] using marblewidget library with QtCreator on Windows

Olivier Camus Olivier.Camus at ate-group.com
Wed Nov 16 16:58:38 UTC 2011


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:
[cid:image001.png at 01CCA488.93914360]


-          I've tried to build it manually (using mingw) but I got this error:
[cid:image002.png at 01CCA488.EBCA1A20]

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();
}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20111116/e148bcb2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 20903 bytes
Desc: image001.png
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20111116/e148bcb2/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 23995 bytes
Desc: image002.png
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20111116/e148bcb2/attachment-0003.png>


More information about the Marble-devel mailing list