I finally success to compile Marble With Visual Studio 2008 and Qt 4.7.3 on Windows. (like there <a href="http://techbase.kde.org/Projects/Marble/WindowsCompiling">http://techbase.kde.org/Projects/Marble/WindowsCompiling</a>)<br>
<br>I create a new MakeFile project in Visual Studio. Add a Main.css like in this thread (<a href="http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus">http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus</a>)<br><br>
<div dir="ltr" class="mw-geshi" style="text-align: left;"><div class="cpp-qt source-cpp-qt"><pre class="de1"><span class="co2">#include <QtGui/QApplication></span>
<span class="co2">#include <marble/MarbleWidget.h></span>
<span class="kw2">using</span> <span class="kw2">namespace</span> Marble<span class="sy0">;</span>
<span class="kw4">int</span> main<span class="br0">(</span><span class="kw4">int</span> argc<span class="sy0">,</span> <span class="kw4">char</span><span class="sy0">**</span> argv<span class="br0">)</span>
<span class="br0">{</span>
<span class="kw5">QApplication</span> app<span class="br0">(</span>argc<span class="sy0">,</span>argv<span class="br0">)</span><span class="sy0">;</span>
<span class="co1">// Create a Marble QWidget without a parent</span>
MarbleWidget <span class="sy0">*</span>mapWidget <span class="sy0">=</span> <span class="kw1">new</span> MarbleWidget<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span>
<span class="co1">// Load the OpenStreetMap map</span>
mapWidget<span class="sy0">-></span><span class="me3">setMapThemeId</span><span class="br0">(</span><span class="st0">"earth/openstreetmap/openstreetmap.dgml"</span><span class="br0">)</span><span class="sy0">;</span>
mapWidget<span class="sy0">-></span><span class="me3">show</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span>
<span class="kw1">return</span> app.<span class="me1">exec</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span>
<span class="br0">}</span></pre></div></div>I copy past the marble-tmp\include\marble\ directory to my Application directory and the link for the #include <marble\MarbleWidget.h> is OK<br><br>I copy the MarbleWidget.dll to my Debug directory and my Release Directory<br>
<br>But when i try to launch the application i still got some error :<br><br>Error 2 error C2491: 'Marble::AbstractDataPlugin::staticMetaObject' : definition of dllimport static data member not allowed c:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\MarbleTest2\MarbleTest2\debug\moc_AbstractDataPlugin.cpp 48 MarbleTest2<br>
Error 8 error C2491: 'Marble::AbstractDataPluginItem::staticMetaObject' : definition of dllimport static data member not allowed c:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\MarbleTest2\MarbleTest2\debug\moc_AbstractDataPluginItem.cpp 44 MarbleTest2<br>
.....<br>....<br>...<br>....<br>.....<br>Error 252 error C2491: 'Marble::TileLevelRangeWidget::staticMetaObject' : definition of dllimport static data member not allowed c:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\MarbleTest2\MarbleTest2\debug\moc_TileLevelRangeWidget.cpp 51 MarbleTest2<br>
Error 259 error C2491: 'Marble::TinyWebBrowser::staticMetaObject' : definition of dllimport static data member not allowed c:\Documents and Settings\Administrateur\Mes documents\Visual Studio 2008\Projects\MarbleTest2\MarbleTest2\debug\moc_TinyWebBrowser.cpp 50 MarbleTest2<br>
Error 264 fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"' : return code '0x2' NMAKE MarbleTest2<br>Error 265 fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2' NMAKE MarbleTest2<br>
Error 266 error PRJ0019: A tool returned an error code from "Performing Makefile project actions" MarbleTest2 MarbleTest2<br><br>Any help please ??<br><br>Thx a lot<br><br clear="all"><br>-- <br>Cordialement Morgan Ozeau<br>
<br>