[Marble-devel] Help with MarbleWidget

Sylvain Paré sylvain.pare at gmail.com
Fri Jul 23 21:35:16 CEST 2010


about the cache issue under windows , it is a path issue
if you read (and understand and followed it :) )all both tutorial about
marble on windows you should
have read something about copying "plugins" and "data" directories next to
your exe
with this that should work.
CU
Sylvain

2010/7/23 Bryan Greenway <rbgreenway at gmail.com>

> Thanks to Torsten and Sylvain for your responses.  I figured out the
> issue...a very silly one (I'm embarrassed to say).
>
> There was a problem with the given path in my .pro file (shown here): LIBS
> += -L"c:\marble-build\src\lib\" "libmarblewidget.dll"
>
> The last '\' in the path was causing the problem.  Once removed, it all
> worked like a charm.
>
> I now have a simple dialog app running with the MarbleWidget on it, all
> done
> inside Qt Creator on Windows-Vista. Very cool.
>
> Now I'm moving on to try to get the behavior I need.  I'm still very low on
> the Marble learning curve, but once I get the basic functionality of the
> app
> going, I'll gladly share the code with anyone that wants to see how I used
> this excellent Widget in a simple app and using Qt Creator.
>
> Current issues:
>
> 1 - the map seems to be using the data cache and not going out on the net
> to
> get new data (i.e. working offline).
>
> 2 - drawing a moving "placemark" on the map that represents the current
> location of a vehicle feeding me it's GPS coordinates.
>
> I'll be working on these today.
>
> Sorry for all the questions...just getting excited about the power that
> Marble has put in my hands.
>
> Bryan
>
>
> -----Original Message-----
> From: Torsten Rahn [mailto:tackat at t-online.de]
> Sent: Friday, July 23, 2010 2:11 AM
> To: marble-devel at kde.org
> Subject: Re: [Marble-devel] Help with MarbleWidget
>
> Hi Bryan,
>
> Sorry, so far I haven't managed to write up the Tutorial I promised
> earlier.
> :-(
>
> Currently the only other way to add placemarks is through:
>
> void MarbleWidget::addPlacemarkFile( const QString &filename );
> void MarbleWidget::addPlacemarkData( const QString& data, const QString&
> key
> =
> "data" );
>
> The file or string has got to be formatted as a KML file:
>
> http://de.wikipedia.org/wiki/Keyhole_Markup_Language
>
> This is quite convenient but the results are currently rather "fixed".
>
> So instead you might want to draw your own placemarks using the
> GeoPainter's
>
> Annotations for example.
>
> On Friday 23 July 2010 02:52:11 Bryan Greenway wrote:
> > I am trying to put the MarbleWidget into a Qt only application using Qt
> > Creator, and am having some difficulty.  Here's is what I've done thus
> far:
> > 1.       Followed instructions for downloading and compiling Marble on
> > Windows.  That seemed to go fine.
> > 2.       I looked at the QtMainWindow.cpp as a model for what I was
> putting
> > together.  I deviated from that approach somewhat as I am creating a
> simple
> > Dialog app.  On this dialog, I am trying  to instantiate a ControlView
> (as
> > is done in QtMainWindow) from ControlView.cpp/.h.  See dialog.cpp/.h
> below.
> > It appears to me that I'm not getting my libmarblewidget library to link.
> > The file: libmarblewidget.dll is definitely in the
> > c:\marble-build\src\lib\" directory.  And the makefile has the line:
> > LIBS        =        -L"c:\Qt\2010.04\qt\lib" -lmingw32 -lqtmain
> > "-Lc:\marble-build\src\lib -lmarblewidget.dll" -lQtGui4 -lQtCore4
>
> I don't see a problem with these. Looks all fine to me (but I don't have
> any
>
> experience with compiling Marble on Windows, so ...).
>
> > It also appears to me that I need to link in something for the
> > MarbleControlBox and MapThemeManager.  I'm guessing that these are not
> part
> > of the MarbleWidget, so something else will need to be included.
>
> They are part of the library and they should get included from the
> ControlView
> IIRC. You can of course include the headers of those files but it doesn't
> look
> like a header problem to me - rather some problem with linking.
>
> Best Regards,
>
> Torsten
>
> _______________________________________________
> Marble-devel mailing list
> Marble-devel at kde.org
> https://mail.kde.org/mailman/listinfo/marble-devel
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.851 / Virus Database: 271.1.1/3023 - Release Date: 07/23/10
> 01:36:00
>
> _______________________________________________
> Marble-devel mailing list
> Marble-devel at kde.org
> https://mail.kde.org/mailman/listinfo/marble-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20100723/6217c8b6/attachment.htm 


More information about the Marble-devel mailing list