<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I made good progress. Marble is now integrated in OpenPilot Ground Control Station  (GCS).</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>It sounds pompous, but that's the name of the piece of software I am contributing too.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">By integrated, I actually mean that I can display maps in the windows version of GCS. <br></div><div style="color: rgb(0, 0, 0); font-size: 16px;
 font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">GCS is a Qt 4.8.4 application supported on linux, macos and windows.<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span></span></div><span>One of the features we would like to add to GCS using Marble is a way point editor for planning UAV missions.<br>It would be similar in ways to the routing provided in Marble but adapted to RC flying vehicles (fixed wings, helicopters, multi-rotors, ...).<br>No need to follow streets, height map can be used for warning about potential ground collision, etc...<br><br>That's where a question comes in : is there a way to turn off routing?<br>Apparently the routing feature is hardwired in QtMainApplication and MarbleWidget.<br>It is possible to disable it by changing the planetId to something else
 from "earth".<br>But this is not so practical as most of the things we fly need an atmosphere.<br><br>If the above is correct, what would be the best way possible to make routing optional?<br>- using #ifdef<br>- using flag<br>- moving code to somewhere (RoutingLayer?)<br>If given directions, I could try to take a look at how to do it.<br><br>Anyways, all I have seen of Marble has been great and the little coding I have done was fun.<br>The code looks great too, lots of good practices to be taken there.<br><br>Cheers,<br>Philippe.<br><br></span><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">PS : For future reference here are the difficulties encountered :<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>- Compilation problems :
 </span>removed -DWITH_DESIGNER_PLUGIN=ON from command line<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>- Map creation problem ("stuck" in map creation dialog) : added missing Qt imageformats plug-ins.<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>- Debug mode bug causing crash in the marble widget constructor : switched to release mode<br></span></div>- M<span>issing header files in install/include/marble, namely:</span><span><br>    * MarbleWidgetPopupMenu.h<br>    * MarbleDebug.h<br>  Adding both headers to /src/lib/CMakeLists.txt worked effectively.</span><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif;
 background-color: transparent; font-style: normal;"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">De :</span></b> philippe renon <philippe_renon@yahoo.fr><br> <b><span style="font-weight: bold;">À :</span></b> philippe renon <philippe_renon@yahoo.fr>; "marble-devel@kde.org" <marble-devel@kde.org> <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Mardi 24 septembre 2013 17h54<br> <b><span style="font-weight: bold;">Objet :</span></b> Re: Error compiling marble on Windows 7 64bits with MingW<br> </font> </div> <div class="y_msg_container"><br><div
 id="yiv9041847036"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">Success at last.<br clear="none"><div><span><br clear="none"></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>Removing </span>-DWITH_DESIGNER_PLUGIN=ON from the cmake command line did the trick.</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">I don't know why I did not try that earlier... error was in the designer part and I don't need Qt Creator integration.</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">My guess is that the root cause has to do with the Qt declarative plugins. Will check that
 later.<br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Compile and install completed to the end. </div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Desktop marble starts but gets stuck indefinitely on the "Creating map" dialog (which cannot be canceled at the stage it is stuck in).</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Next steps : build a Debug version and see if I get informative messages w/r to the issue.</div><div style="color:rgb(0, 0,
 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Regards,</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Philippe.<br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br clear="none"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font
 face="Arial" size="2"> <b><span style="font-weight:bold;">De :</span></b> philippe renon <philippe_renon@yahoo.fr><br clear="none"> <b><span style="font-weight:bold;">À :</span></b> philippe renon <philippe_renon@yahoo.fr>; "marble-devel@kde.org" <marble-devel@kde.org> <br clear="none"> <b><span style="font-weight:bold;">Envoyé le :</span></b> Dimanche 22 septembre 2013 13h42<br clear="none"> <b><span style="font-weight:bold;">Objet :</span></b> Re: Error compiling marble on Windows 7 64bits with MingW<br clear="none"> </font> </div> <div class="yiv9041847036yqt0665901381" id="yiv9041847036yqt75785"><div class="yiv9041847036y_msg_container"><br clear="none"><div id="yiv9041847036"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div><span>Hi again,</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york,
 times, serif;background-color:transparent;font-style:normal;"><br clear="none"><span></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>Could someone share a setup known to work:</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>- version of CMake?</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>- version of Qt?</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times,
 serif;background-color:transparent;font-style:normal;">I have tried several branched (KDE/4.11, master and qt5) without success.<br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br clear="none"><span></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>Thanks and regards,</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>Philippe.<br clear="none"></span></div><div><br clear="none"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div style="font-family:times new roman,
 new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">De :</span></b> philippe renon <philippe_renon@yahoo.fr><br clear="none"> <b><span style="font-weight:bold;">À :</span></b> philippe renon
 <philippe_renon@yahoo.fr>; "marble-devel@kde.org" <marble-devel@kde.org> <br clear="none"> <b><span style="font-weight:bold;">Envoyé le :</span></b> Mardi 3 septembre 2013 21h32<br clear="none"> <b><span style="font-weight:bold;">Objet :</span></b> Re: Error compiling marble on Windows 7 64bits with MingW<br clear="none"> </font> </div> <div class="yiv9041847036y_msg_container"><br clear="none"><div id="yiv9041847036"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">Hi again,<br clear="none"><br clear="none">A bit of background : I am interested in building marble to integrate it in the OpenPilot Ground Control Station (GCS).<br clear="none">OpenPilot is an open source project aimed at providing hardware and software to fly and operate UAVs.<br clear="none">More information can be found here : http://www.openpilot.org/<br clear="none">Integrating marble in the GCS
 makes a lot of sense!<br clear="none"><br clear="none">More information about the build issue:<br clear="none">I have it against branch KDE/11 (I also tried
 to build master but ran in other kind of issues which I sort of expected on a non stable branch).<br clear="none">I am pretty new to marble and CMake and would appreciate some help.<br clear="none"><br clear="none">The full CMake build log follows:<br clear="none"><div><span><br clear="none"></span></div><div>-- Please include plugins in the QML_IMPORT_PATH environment variable to use Marble's Qt declarative plugins.<br clear="none">-- Note: Marble Desktop
 does not make use of declarative plugins. Ignore the message above if you only intend to use the<br clear="none"> Desktop version.<br clear="none">-- Could NOT find Phonon (missing:  PHONON_LIBRARY)<br clear="none">-- Could NOT find QextSerialPort (missing:  QEXTSERIALPORT_INCLUDE_DIR QEXTSERIALPORT_LIBRARIES)<br clear="none">-- Could NOT find quazip (missing:  QUAZIP_INCLUDE_DIR QUAZIP_LIBRARIES)<br clear="none">-- Could NOT find libshp (missing:  LIBSHP_INCLUDE_DIR LIBSHP_LIBRARIES)<br clear="none">-- Could NOT find libgps (missing:  LIBGPS_INCLUDE_DIR LIBGPS_LIBRARIES)<br clear="none">-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)<br clear="none">-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)<br clear="none">-- Could NOT find QtMobility (missing:  QTMOBILITY_INCLUDE_DIR)<br clear="none">-- Could NOT find QtLocation (missing:  QTLOCATION_INCLUDE_DIR
 QTLOCATION_LIBRARIES)<br clear="none">-- Could NOT find libwlocate (missing:  LIBWLOCATE_INCLUDE_DIR LIBWLOCATE_LIBRARIES)<br clear="none">--<br clear="none">-- The following REQUIRED
 packages have been found:<br clear="none"><br clear="none"> * Qt4 , cross-platform application framework , <http://qt.digia.com/><br clear="none">   core framework<br clear="none"><br clear="none">-- The following OPTIONAL packages have not been found:<br clear="none"><br clear="none"> * Phonon , cross-platform multimedia framework that enables the use of audio and video content , <http://qt.digia.com/><br clear="none"><br clear="none">   Voice navigation (sound or human speakers)<br clear="none"> * QextSerialPort , access to serial ports , <http://code.google.com/p/qextserialport/><br clear="none">   Reading from serial port in APRS plugin<br clear="none"> * quazip , reading and writing of ZIP archives , <http://quazip.sourceforge.net/><br clear="none">   reading and displaying .kmz files<br clear="none"> * libshp , reading and writing of ESRI Shapefiles (.shp) ,
 <http://shapelib.maptools.org/><br clear="none">   reading and displaying .shp files<br clear="none"> * libgps , communicating with the GPS daemon ,
 <http://catb.org/gpsd/><br clear="none">   position information via gpsd<br clear="none"> * liblocation , position information on Maemo 5 devices , <http://maemo.org/><br clear="none">   position information via GPS/WLAN for the Nokia N900 smartphone<br clear="none"> * QtMobility , a collection of APIs and frameworks , <http://qt.digia.com/><br clear="none">   Required for QtLocation to work<br clear="none"> * QtLocation , geographical support for position and map use , <http://qt.digia.com/><br clear="none">   position information via QtMobility QtLocation<br clear="none"> * libwlocate , WLAN-based geolocation , <http://www.openwlanmap.org/><br clear="none">   Position information based on neighboring WLAN networks<br clear="none"><br clear="none">-- Configuring done<br clear="none">CMake Warning (dev) at src/lib/CMakeLists.txt:279 (ADD_LIBRARY):<br
 clear="none">  Policy CMP0003 should be set before this line.  Add code such as<br clear="none"><br clear="none">    if(COMMAND
 cmake_policy)<br clear="none">      cmake_policy(SET CMP0003 NEW)<br clear="none">    endif(COMMAND cmake_policy)<br clear="none"><br clear="none">  as early as possible but after the most recent call to<br clear="none">  cmake_minimum_required or cmake_policy(VERSION).  This warning appears<br clear="none">  because target "marblewidget" links to some libraries for which the linker<br clear="none">  must search:<br clear="none"><br clear="none">    ws2_32, imm32, winmm<br clear="none"><br clear="none">  and other libraries with known full path:<br clear="none"><br clear="none">    D:/Projects/OpenPilot/tools/qt-4.8.4/lib/libQtCore4.a<br clear="none"><br clear="none">  CMake is adding directories in the second list to the linker search path in<br clear="none">  case they are needed to find libraries from the first list (for backwards<br
 clear="none">  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable<br clear="none">  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for<br clear="none">  more information.<br clear="none">This
 warning is for project developers.  Use -Wno-dev to suppress it.<br clear="none"><br clear="none">-- Generating done<br clear="none">-- Build files have been written to: D:/Projects/marble/build</div><div><br clear="none"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;margin-top:5px;padding-left:5px;">  <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">De :</span></b> philippe renon <philippe_renon@yahoo.fr><br clear="none"> <b><span style="font-weight:bold;">À :</span></b> "marble-devel@kde.org" <marble-devel@kde.org> <br clear="none"> <b><span style="font-weight:bold;">Envoyé le :</span></b> Dimanche 1 septembre 2013 21h50<br clear="none"> <b><span
 style="font-weight:bold;">Objet :</span></b> Error compiling marble on Windows 7 64bits with MingW<br clear="none"> </font>
 </div> <div class="yiv9041847036y_msg_container"><br clear="none"><div id="yiv9041847036"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">Hi,<br clear="none"><br clear="none">I have been trying to compile marble on Windows 7 64 bits using MingW but get the following error:<br clear="none"><br clear="none">[ 64%] Generating MarbleWidgetPlugin.moc<br clear="none">D:/Projects/marble/sources/src/plugins/designer/marblewidget/MarbleWidgetPlugin.h:26: Error: Undefined interface<br clear="none">mingw32-make[2]: *** [src/plugins/designer/marblewidget/MarbleWidgetPlugin.moc] Error 1<br clear="none">mingw32-make[1]: *** [src/plugins/designer/marblewidget/CMakeFiles/MarbleWidgetPlugin.dir/all] Error 2<br clear="none">mingw32-make: *** [all] Error 2<br clear="none"><div><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times,
 serif;background-color:transparent;font-style:normal;">Apparently, same issue happens on osx but the proposed workaround (as explained in the
 MarbleWidgetPlugin.h) did
 not work in my case.<br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Windows is 64bits but I am trying to build 32 bits version of marble.<br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Here is the build script I use:</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br
 clear="none"></div><div style="color:rgb(0, 0,  0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">export CMAKEDIR=/D/OpenPilotDev/cmake-2.8.11.2-win32-x86<br clear="none">export QTDIR=/D/Projects/OpenPilot/tools/qt-4.8.4<br clear="none">export MINGWDIR=/D/Projects/OpenPilot/tools/mingw-4.4.0<br clear="none"><br clear="none">export PATH=$CMAKEDIR/bin:$MINGWDIR/bin:$QTDIR/bin:$PATH:<br clear="none"><br clear="none">#export LD_LIBRARY_PATH=$QTDIR/lib<br clear="none"><br clear="none">mkdir -p ./build<br clear="none">cd ./build<br clear="none"><br clear="none">cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DQTONLY=ON -DWITH_DESIGNER_PLUGIN=ON ../sources<br clear="none"><br clear="none">mingw32-make -j2<br clear="none">mingw32-make install<br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times,
 serif;background-color:transparent;font-style:normal;"><br clear="none"></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </blockquote></div>   </div></div></div><br clear="none"><br clear="none"></div> </div> </div> </blockquote></div>   </div></div></div><br clear="none"><br clear="none"></div></div> </div> </div> </blockquote></div>  
 </div></div></div><br><br></div> </div> </div> </blockquote></div>   </div></body></html>