Marble problem (was Coordinates and dive mapping)

Anton Lundin glance at acc.umu.se
Sun Oct 4 10:34:16 PDT 2015


On 04 October, 2015 - Dirk Hohndel wrote:

> On Sun, Oct 04, 2015 at 09:15:22PM +1100, Rick Walsh wrote:
> > Hi Willem,
> > 
> > On 3 October 2015 at 07:22, Willem Ferguson <willemferguson at zoology.up.ac.za
> > > wrote:
> > 
> > > |
> > > |   I'd say so - assuming you are building in ~*/src/*...
> > > |
> > >
> > > Yes, I build in ~/src/
> > >
> > > willem~ cd src
> > > willem~/src$ ls
> > > build.log  grantlee  install-root  libdivecomputer  libgit2  marble-source  subsurface
> > > willem~/src$
> > >
> > > Any other ideas to understand what causes marble panel to be black?
> > >
> > > I've had a similar issue with a clean build, using build.sh and running
> > from the build dir.  The problem is that it can't find the file
> > googlesat.dgml.  It *should* be in
> > build/marble/data/earth/googlesat/googlesat.dgml, but it isn't.  For some
> > reason, the marbledata directory isn't being copied into the build dir by
> > the make scripts.
> > 
> > As a workaround, I've copied the marbledata directory into the build
> > directory, and the globe is displaying fine now.  It should be fixed
> > properly but I don't know how.
> 
> Looking at the cmake files we don't copy this directory during a regular
> build. I need to stare at the cmake files and figure out how to fix that.
> Grmbl.
> 

Something is fubar when using -DMARBLE_INCLUDE_DIR /
-DMARBLE_LIBRARIES. 

I did something like this to fix my local builds:

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,7 +118,7 @@ if(NOT NO_MARBLE)
                set(MARBLE_LIBRARIES "")
        else()
                find_package(MARBLE QUIET)
-               if(MARBLE_FOUND)
+               if(MARBLE_FOUND OR NOT "${MARBLE_INCLUDE_DIR}" STREQUAL "" )
                        include_directories(${MARBLE_INCLUDE_DIR})
                else()
                        set(NO_MARBLE ON)

//Anton


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list