No subject


Thu Oct 7 01:56:53 CEST 2010


The next code (adapted from marble source) is causing me some troubles.

RoutingManager *routingManager =3D theMap->model()->routingManager();
RoutingModel   *routingModel   =3D routingManager->routingModel();
bool hasRoute =3D routingModel->rowCount(); //here is the problem

My includes are:

#include <marble/global.h>
#include <marble/MarbleModel.h>
#include <marble/RoutingManager.h>

The third line (getting the rowCount), causes the compilation to fail with
the error:
error: invalid use of incomplete type =E2=80=98struct Marble::RoutingModel=
=E2=80=99
As I have seen, the RoutingModel Class is defined (as Class RoutingModel;)
 in RoutingManager.h, but included in the ControlView.cpp file as ' #includ=
e
"routing/RoutingModel.h" ' .

Are the "routing"-folder headers  inside the marble lib sources not
installed (at /usr/include/marble) ?
Is this intentional, only for the Marble application (not the library) ?

What is the correct way to incorporate routing capabilities to another
application? What Classes to use? The RoutingManager?


Im using the marble code from the anonymous kde svn repository (svn://
anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/marble/src).

Thanks in advance,

--=20
Miguel Chavez Gamboa


LemonPOS, an opensource point of sale.
Want to support the development?

Donations accepted via paypal:
https://www.paypal.com/cgi-bin/webscr?cmd=3D_s-xclick&hosted_button_id=3D56=
50578

--0016e6469b0c4771410491fefb63
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,<div><br></div><div><br></div><div>Sorry for the inconvenience caused by=
 my previous mail with formated text, this goes in plain text.</div><div><b=
r></div><div><br></div><div><div>Im trying to incorporate marble and its ne=
w offline routing capabilities in my own project, and Im reading the marble=
 source code and the documentation.</div>
<div>From the marble source code, i got some code to start and experiment.<=
/div><div><br></div><div>The next code (adapted from marble source) is caus=
ing me some troubles.=C2=A0</div><div><br></div><div>RoutingManager *routin=
gManager =3D theMap-&gt;model()-&gt;routingManager();</div>
<div>RoutingModel =C2=A0 *routingModel =C2=A0 =3D routingManager-&gt;routin=
gModel();</div><div>bool hasRoute =3D routingModel-&gt;rowCount(); //here i=
s the problem</div><div><br></div><div>My includes are:</div><div><br></div=
><div>#include &lt;marble/global.h&gt;</div>
<div>#include &lt;marble/MarbleModel.h&gt;</div><div>#include &lt;marble/Ro=
utingManager.h&gt;</div><div><br></div><div>The third line (getting the row=
Count),=C2=A0causes the compilation to fail with the error:</div><div>error=
: invalid use of incomplete type =E2=80=98struct Marble::RoutingModel=E2=80=
=99=C2=A0</div>
<div>As I have seen, the RoutingModel Class is defined (as Class RoutingMod=
el;) =C2=A0in RoutingManager.h, but included in the ControlView.cpp file as=
 &#39; #include &quot;routing/RoutingModel.h&quot; &#39; .</div><div><br></=
div>
<div>Are the &quot;routing&quot;-folder headers =C2=A0inside the marble lib=
 sources not installed (at /usr/include/marble) ?</div><div>Is this intenti=
onal, only for the Marble application (not the library) ?</div><div><br></d=
iv>
<div>What is the correct way to incorporate routing capabilities to another=
 application? What Classes to use? The RoutingManager?</div><div><br></div>=
<div><br></div><div>Im using the marble code from the anonymous kde svn rep=
ository (svn://<a href=3D"http://anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/=
marble/src">anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/marble/src</a>).</div=
>
<div><br></div><div>Thanks in advance,</div><br>-- <br>Miguel Chavez Gamboa=
<br><br><br>LemonPOS, an opensource point of sale.<br>Want to support the d=
evelopment?<br><br>Donations accepted via paypal:<br><a href=3D"https://www=
.paypal.com/cgi-bin/webscr?cmd=3D_s-xclick&amp;hosted_button_id=3D5650578">=
https://www.paypal.com/cgi-bin/webscr?cmd=3D_s-xclick&amp;hosted_button_id=
=3D5650578</a><br>

</div>

--0016e6469b0c4771410491fefb63--


More information about the Marble-devel mailing list