Thx for Answer Konrad but it still the same. And i think the pb come at the line <br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">MarbleWidget *mapWidget = new MarbleWidget();<br>
</blockquote><div>Cuz in debug the program stop (with no error oO) at this one.<br><br>But in release i can draw lines with 2 mesure point and see that the earth is here (i can rotate and zoom) but on a black windows.<br>
<br>Is there something i'm missing ??<br><br>Cordialy Morgan OZEAU <br></div><br><div class="gmail_quote">2011/8/25 Konrad Enzensberger <span dir="ltr"><<a href="mailto:e.konrad@mpegcode.com">e.konrad@mpegcode.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>





<div bgcolor="#ffffff">
<div><font face="Arial" size="2">hi,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><div class="im">>><font face="Times New Roman" size="3"> 
mapWidget->setMapThemeId("C:\\openstreetmap.dgml");</font><br></div>i think 
this will not work, you have to use something like:</font></div>
<div><font size="2">
<p>QString qsThemeId = </p></font><font color="#a31515" size="2"><font color="#a31515" size="2">"earth/openstreetmap/openstreetmap.dgml"</font></font><font size="2">;<br>mapWidget->setMapThemeId(qsThemeId);</font></div>

<div><font face="Arial" size="2">also from marble git, copy the data folder without 
changes to e.g. 
<div><font face="Arial" size="2">C:\maps\</font></div>
<div> </div></font></div>
<div><font face="Arial" size="2">If you start from VisualStudio, add a command 
argument to your settings</font></div>
<div><font face="Arial" size="2">to set the data path to marblewidget: 
</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">--marbledatapath c:\maps\data </font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">this works for me,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">regards, konrad</font></div>
<div> </div>
<div>----- Original Message ----- </div>
<blockquote style="border-left:#000000 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px"><div><div></div><div class="h5">
  <div style="font:10pt arial;background:#e4e4e4"><b>From:</b> 
  <a title="m.ozeau@gmail.com" href="mailto:m.ozeau@gmail.com" target="_blank">M.Ozeau</a> </div>
  <div style="font:10pt arial"><b>To:</b> <a title="marble-devel@kde.org" href="mailto:marble-devel@kde.org" target="_blank">marble-devel@kde.org</a> </div>
  <div style="font:10pt arial"><b>Sent:</b> Thursday, August 25, 2011 4:27 
  PM</div>
  <div style="font:10pt arial"><b>Subject:</b> [Marble-devel] Beginner 
  problem</div>
  <div><br></div>I'm on Windows and Visual studio and i want to realise this 
  :<br><br><a href="http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus" target="_blank">http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus</a><br><br>I 
  compile Marble with Visual Studio to get the include (headers files .h) the 
  lib (marblewidget.lib) and the dll (marblewidget.dll) i needed.<br><br>I 
  create a new project, i place the dll respectively in the release and the 
  debug folder and i place the marbleInclude folder and the marblewidget.lib 
  next to the release and debug one.<br><br>I also place some other dll that the 
  application needed 
  :<br><br>QtCore4.dll<br>QtGui4.dll<br>QtNetwork4.dll<br>QtSvg4.dll<br>QtWebKit4.dll<br>QtXml4.dll<br><br>I 
  place them in the debug and release folder.<br><br>There is my .pro file 
  :<br><br>
  <blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">TEMPLATE = app<br>TARGET = <br>DEPENDPATH += . 
    marble<br>INCLUDEPATH += .<br>LIBS += -lmarblewidget<br><br>SOURCES += 
    Main.cpp<br clear="all"></blockquote><br>Here my Main.cpp :<br><br>
  <blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">#include <QtGui><br>#include 
    <QtGui/qapplication.h><br>#include 
    <marble/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("C:\\openstreetmap.dgml");<br> <br>    
    mapWidget->show();<br><br>    return 
  app.exec();<br>}<br></blockquote><br>With this i'm able to launch my 
  application (no build error) but :<br><br>In release, the widget is a black 
  windows where i can right click and "add mesure point" "set home location" (so 
  the widget is working right ?) but there is no background, no map at all. (the 
  file "openstreetmap.dgml" is on the right place)<br><br>In debug, the 
  programme just stop at this line :<br><br>
  <blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex" class="gmail_quote">MarbleWidget *mapWidget = new 
  MarbleWidget();<br></blockquote>
  <div><br>I'm a bit new to C++ and Qt but any help should be apprecied 
  !!<br></div><br>-- <br>Cordialement Morgan Ozeau<br><br>
  </div></div><p>
  </p><hr>

  <p></p>_______________________________________________<br>Marble-devel mailing 
  list<br><a href="mailto:Marble-devel@kde.org" target="_blank">Marble-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/listinfo/marble-devel</a><br>
<p></p></blockquote></div>
<br>_______________________________________________<br>
Marble-devel mailing list<br>
<a href="mailto:Marble-devel@kde.org">Marble-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/listinfo/marble-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Cordialement Morgan Ozeau<br><br>