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