<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>>><FONT size=3 face="Times New Roman"> 
mapWidget->setMapThemeId("C:\\openstreetmap.dgml");</FONT><BR>i think 
this will not work, you have to use something like:</FONT></DIV>
<DIV><FONT size=2>
<P>QString qsThemeId = </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></P></DIV>
<DIV><FONT size=2 face=Arial>also from marble git, copy the data folder without 
changes to e.g. 
<DIV><FONT size=2 face=Arial>C:\maps\</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT size=2 face=Arial>If you start from VisualStudio, add a command 
argument to your settings</FONT></DIV>
<DIV><FONT size=2 face=Arial>to set the data path to marblewidget: 
</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>--marbledatapath c:\maps\data </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>this works for me,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>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 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=m.ozeau@gmail.com href="mailto:m.ozeau@gmail.com">M.Ozeau</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=marble-devel@kde.org 
  href="mailto:marble-devel@kde.org">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">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>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Marble-devel mailing 
  list<BR>Marble-devel@kde.org<BR>https://mail.kde.org/mailman/listinfo/marble-devel<BR></BLOCKQUOTE></BODY></HTML>