I'm sorry to spam like this but i'm still stuck....<br><br><br>Is there any one who ever use Marble widget on windows with Visual studio ??<br><br><div class="gmail_quote">2011/8/22 M.Ozeau <span dir="ltr"><<a href="mailto:m.ozeau@gmail.com">m.ozeau@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Any help plz ?<br><br><div class="gmail_quote">2011/8/4 M.Ozeau <span dir="ltr"><<a href="mailto:m.ozeau@gmail.com" target="_blank">m.ozeau@gmail.com</a>></span><div>
<div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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" target="_blank">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" target="_blank">http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus</a>)<br>
<br>
<div dir="ltr" style="text-align:left"><div><pre><span>#include <QtGui/QApplication></span>
<span>#include <marble/MarbleWidget.h></span>
<span>using</span> <span>namespace</span> Marble<span>;</span>
<span>int</span> main<span>(</span><span>int</span> argc<span>,</span> <span>char</span><span>**</span> argv<span>)</span>
<span>{</span>
<span>QApplication</span> app<span>(</span>argc<span>,</span>argv<span>)</span><span>;</span>
<span>// Create a Marble QWidget without a parent</span>
MarbleWidget <span>*</span>mapWidget <span>=</span> <span>new</span> MarbleWidget<span>(</span><span>)</span><span>;</span>
<span>// Load the OpenStreetMap map</span>
mapWidget<span>-></span><span>setMapThemeId</span><span>(</span><span>"earth/openstreetmap/openstreetmap.dgml"</span><span>)</span><span>;</span>
mapWidget<span>-></span><span>show</span><span>(</span><span>)</span><span>;</span>
<span>return</span> app.<span>exec</span><span>(</span><span>)</span><span>;</span>
<span>}</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><font color="#888888"><br clear="all">
<br>-- <br>Cordialement Morgan Ozeau<br>
<br>
</font></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>Cordialement Morgan Ozeau<br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Cordialement Morgan Ozeau<br><br>