<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 July 2015 at 16:44, Rick Walsh <span dir="ltr"><<a href="mailto:rickmwalsh@gmail.com" target="_blank">rickmwalsh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Dirk,<br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 11 July 2015 at 15:05, Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>On Sat, Jul 11, 2015 at 02:59:17PM +1000, Rick Walsh wrote:<br>
> On 11 July 2015 at 12:48, Dirk Hohndel <<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>> wrote:<br>
><br>
> ><br>
> ><br>
> > Nope. MarbleDirs.cpp<br>
> ><br>
> > And actually why don't you use this patch...<br>
> ><br>
> > diff --git a/src/lib/marble/MarbleDirs.cpp b/src/lib/marble/MarbleDirs.cpp<br>
> > index 014ab0582d0b..734107f6536e 100644<br>
> > --- a/src/lib/marble/MarbleDirs.cpp<br>
> > +++ b/src/lib/marble/MarbleDirs.cpp<br>
> > @@ -68,6 +68,7 @@ QString MarbleDirs::path( const QString& relativePath )<br>
> >      }<br>
> >      QString result = QDir( fullpath ).canonicalPath();<br>
> >      if (result.isEmpty()) {<br>
> > +           qDebug() << fullpath << "result" << result;<br>
> >             if (relativePath.contains("bitmaps") && relativePath !=<br>
> > "bitmaps/empty.png")<br>
> >                     return path("bitmaps/empty.png");<br>
> >  #if defined(DEBUG)<br>
> ><br>
><br>
> I've just tried that but I'm not sure it's doing much.<br>
><br>
>  (gdb) run<br>
> Starting program: /home/rick/build/subsurface/build/subsurface<br>
> [Thread debugging using libthread_db enabled]<br>
> Using host libthread_db library "/lib64/libthread_db.so.1".<br>
> Map theme file does not exist: ""<br>
> QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No<br>
> such file or directory<br>
> [New Thread 0x7fff81bf9700 (LWP 20213)]<br>
> [Thread 0x7fff81bf9700 (LWP 20213) exited]<br>
><br>
<br>
</div></div>Umm. Err. What? If the startup used to get you into the infinite recursion<br>
(that's what happens in the "return path("bimaps/empty.png");"...)<br>
<br>
Oh, never mind. I bet your libssrfmarble isn't compiled with debugging<br>
enabled, so the qDebug never gets printed for you.<br>
<br>
Can you replace the qDebug with<br>
<br>
fprintf(stderr, "fullpath %s results in %s\n", qPrintable(fullpath), qPrintable(result));<br>
<br>
(completely untested, typos and thinkos included free of charge... but<br>
something along those lines should work...)<br>
<span></span></blockquote><div><br></div></div></div><div>Now I need a beer and/or coffee.<br></div><div><br></div><div>So after I actually built Subsurface against the Marble libs modified with the fprintf(stderr... line., this does do something.<br><br></div><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">(gdb) run
</span><br><div><div><span style="font-family:monospace"><span class="">Starting program: /home/rick/build/subsurface/build/subsurface  <br>[Thread debugging using libthread_db enabled]
<br>Using host libthread_db library "/lib64/libthread_db.so.1".
<br></span>fullpath /bitmaps/empty.png results in  <br>tried to open nonexistent file bitmaps/empty.png
<br>fullpath /maps/earth/srtm2/srtm2.dgml results in  <br>tried to open nonexistent file maps/earth/srtm2/srtm2.dgml
<br><span class="">Map theme file does not exist: ""
<br></span>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/cityplacemarks.kml results in  <br>tried to open nonexistent file placemarks/cityplacemarks.kml
<br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/cityplacemarks.cache results in  <br>tried to open nonexistent file placemarks/cityplacemarks.cache
</span><br><br></div><div>etc.<br><br><div>It is looking for the files in the wrong place.  marbledata is a symbolic link to:<br>/home/rick/build/subsurface/marbledata, when it needs to point to /home/rick/build/marble-source/data.<br><br></div><div>I recreated the link to point where it should, and the error messages go away.<span class=""><font color="#888888"><br></font></span></div></div></div></div></div></div></blockquote><div><br></div><div>Can I recall that email?  The link points where it should.<br><br>I can see a few problems in the output.  First is that rather than trying to open /home/rick/build/subsurface/build/marbledata/bitmaps/xxx it's trying to open /bitmaps/xxx<br><br></div><div>Next, it's trying to open kml files in the placemarks directory, which doesn't exist.<br><br></div><div>And thirdly, it's trying to open bitmap files that don't exist.<br><br></div><div>Full output is:<br></div><div><br>fullpath /bitmaps/default_location.png results in <br>fullpath /bitmaps/empty.png results in <br>fullpath /maps/earth/srtm2/srtm2.dgml results in <br>Map theme file does not exist: ""<br>QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory<br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/cityplacemarks.kml results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/cityplacemarks.cache results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/boundaryplacemarks.kml results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/boundaryplacemarks.cache results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/otherplacemarks.kml results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/otherplacemarks.cache results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/elevplacemarks.kml results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/elevplacemarks.cache results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/baseplacemarks.kml results in <br>fullpath /home/rick/build/subsurface/build/marbledata/placemarks/baseplacemarks.cache results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/other.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/observatory.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/wikipedia.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/osm.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/coordinate.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/manned_landing.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/robotic_rover.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/unmanned_soft_landing.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/unmanned_hard_landing.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/folder.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/bookmark.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_camping.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_hostel.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_hotel2.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_motel.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_youth_hostel.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/amenity_library.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/education_college.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/education_school.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/education_university.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_bar.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_biergarten.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_cafe.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_fastfood2.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_pub.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_restaurant.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/health_doctors2.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/health_hospital.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/health_pharmacy.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/money_bank2.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/shopping_alcohol.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/shopping_hifi.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/shopping_supermarket.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_attraction.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_castle2.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_cinema.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_monument.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_museum.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_ruin.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_theatre.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_theme_park.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_view_point.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_zoo.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_aerodrome.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_airport_terminal.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_bus_station.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_bus_stop.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_car_share.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_fuel.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_parking.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_train_station.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_tram_stop.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_rental_bicycle.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_rental_car.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_taxi_rank.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_unknown3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_bahai3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_buddhist3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_christian3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_hindu3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_jain3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_jewish3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_shinto3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_sikh3.p.16.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_unclassified.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_path.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_track.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_footway.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_unclassified.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_unclassified.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_tertiary.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_secondary.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_primary.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_trunk.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_motorway.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_tertiary.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_secondary.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_primary.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_trunk.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/highway_motorway.png results in <br>fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/satellite.png results in <br><br></div>Cheers,<br><br></div><div class="gmail_quote">Rick<br></div><div class="gmail_quote"><div class="gmail_extra"><div class="gmail_quote"><div><div><br></div></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div><br></div></div>