Re: cmake of Subsurface: link errors

2015-04-21 Thread Tomaz Canabrava
We can do a few things here: building from the build sh could always do a
fresh build ( wich means remove the cmakecache file) , and after that you
would build using make inside of the build folder.

After the first run of build.sh you can rerun cmake passing the missing
stuff.  Run ccmake ..   ( Yes, ccmake, not cmake. )  inside of the build
directory to fill the missing things.

Em Ter, 21 de abr de 2015 11:30, Dirk Hohndel  escreveu:

> On Tue, Apr 21, 2015 at 07:48:02AM +0200, Willem Ferguson wrote:
> > On 20/04/2015 22:15, Tomaz Canabrava wrote:
> > >
> > >
> > >On Mon, Apr 20, 2015 at 4:53 PM, Willem Ferguson
> > > willemfergu...@zoology.up.ac.za>>
> > >wrote:
> > >
> > >
> > >Thanks very much to those who commented to help me get Subsurface to
> > >build on Ubuntu.
> > >
> > >My build g82ff9f does not show marble. Is this normal? If I select
> > >View->All it does not show all.
> > >
> > >
> > >not normail.
> > >can you look at cmakecache.txt to see if NO_MARBLE was set to true?
> > >
> > >
> > >Kind regards,
> > >willem
> > >
> >
> > Thank you, Tomaz.
> > Here is the reason:
> >
> > //The directory containing a CMake configuration file for MARBLE.
> > MARBLE_DIR:PATH=MARBLE_DIR-NOTFOUND
> >
> > //disable the marble widget
> > NO_MARBLE:BOOL=OFF
> >
> > I have no idea how to react to this.
>
> So Marble wasn't found.
>
> Did you build with the build.sh script?
>
> /D
> ___
> subsurface mailing list
> subsurface@subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-21 Thread Dirk Hohndel
On Tue, Apr 21, 2015 at 07:48:02AM +0200, Willem Ferguson wrote:
> On 20/04/2015 22:15, Tomaz Canabrava wrote:
> >
> >
> >On Mon, Apr 20, 2015 at 4:53 PM, Willem Ferguson
> >mailto:willemfergu...@zoology.up.ac.za>>
> >wrote:
> >
> >
> >Thanks very much to those who commented to help me get Subsurface to
> >build on Ubuntu.
> >
> >My build g82ff9f does not show marble. Is this normal? If I select
> >View->All it does not show all.
> >
> >
> >not normail.
> >can you look at cmakecache.txt to see if NO_MARBLE was set to true?
> >
> >
> >Kind regards,
> >willem
> >
> 
> Thank you, Tomaz.
> Here is the reason:
> 
> //The directory containing a CMake configuration file for MARBLE.
> MARBLE_DIR:PATH=MARBLE_DIR-NOTFOUND
> 
> //disable the marble widget
> NO_MARBLE:BOOL=OFF
> 
> I have no idea how to react to this.

So Marble wasn't found.

Did you build with the build.sh script?

/D
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-20 Thread Willem Ferguson

On 20/04/2015 22:15, Tomaz Canabrava wrote:



On Mon, Apr 20, 2015 at 4:53 PM, Willem Ferguson 
> wrote:



Thanks very much to those who commented to help me get Subsurface to
build on Ubuntu.

My build g82ff9f does not show marble. Is this normal? If I select
View->All it does not show all.


not normail.
can you look at cmakecache.txt to see if NO_MARBLE was set to true?


Kind regards,
willem



Thank you, Tomaz.
Here is the reason:

//The directory containing a CMake configuration file for MARBLE.
MARBLE_DIR:PATH=MARBLE_DIR-NOTFOUND

//disable the marble widget
NO_MARBLE:BOOL=OFF

I have no idea how to react to this.
Kind regards,
willem

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-20 Thread Tomaz Canabrava
On Mon, Apr 20, 2015 at 4:53 PM, Willem Ferguson <
willemfergu...@zoology.up.ac.za> wrote:

>
> Thanks very much to those who commented to help me get Subsurface to
> build on Ubuntu.
>
> My build g82ff9f does not show marble. Is this normal? If I select
> View->All it does not show all.


not normail.
can you look at cmakecache.txt to see if NO_MARBLE was set to true?


>
> Kind regards,
> willem
>
>
>
> ___
> subsurface mailing list
> subsurface@subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-20 Thread Willem Ferguson


Thanks very much to those who commented to help me get Subsurface to
build on Ubuntu.

My build g82ff9f does not show marble. Is this normal? If I select
View->All it does not show all.
Kind regards,
willem



___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-20 Thread Dirk Hohndel

> On Apr 20, 2015, at 12:46 AM, Willem Ferguson 
>  wrote:
> 
> On 19/04/2015 22:08, Robert C. Helling wrote:
>> Willem,
>> 
>>> On 19 Apr 2015, at 20:24, Willem Ferguson >> > wrote:
>>> 
>>> Anything I could do now?
>>> I know there is currently a lot of activity to get the build to run 
>>> smoothly.
>> 
>> with git grep I get the impression this is once more a problem with the 
>> version of libgit2 (has to be quite recent). I would have thought the build 
>> script does download that but I would investigate the version installed on 
>> your system.
>> 
>> Best
>> Robert
>> 
> I had libgit2 v0.19 in my system and v0.22 in the src directory. I removed 
> v0.19 from the system, leaving only the version in the src directory.
> 
> It aborts two steps earlier in the process with a slightly different error 
> message. Looks like libgit2 is a real obstacle.
> 
> [ 23%] Built target subsurface_corelib
> make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libgit2.a', 
> needed by `TestGpsCoords'.  Stop.
> make[1]: *** [CMakeFiles/TestGpsCoords.dir/all] Error 2
> make: *** [all] Error 2
> willem@dive:~/src$ 
>  


The thing that’s annoying is that even if we build libgit2 from source, cmake 
seems to pick the system installed one over ours.
I’ve had that happen as well, but don’t understand the FindXXX() functions 
enough to figure out why that is. But as it happens I’ll be hanging out with 
Tomaz for the next few days and I’ll beat him with a stick until he fixes this.
OK, maybe not beat him. Maybe I’ll just ask nicely :-)

> I am not clear on what build.sh does with libigit2. I would have expected 
> that the install instruction (line 55 in build.sh) installs libgit2 in the 
> appropriate system folder. But a locate command on libgit2 on my machine now 
> only shows files in the home/src directory, not in /lib/ or a similar 
> directory. From what I can see from the error message, the make process 
> aborts while trying to make use of libgit2 to build Subsurface. This means 
> that a valid object file for libgit2 exists??

No, we don’t install anything in system directories. We install into our 
install-root.

/D

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-20 Thread Salvador Cuñat
Sorry,  again.

Also had to manually remove a file in build directory named CmakeCache or
so, before running build.sh again.

Regards.

Salva.
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-20 Thread Salvador Cuñat
Sorry for top posting, I'm on the phone.

I had the same problem and it was solved removing the system package. It
seems that, although build.sh builds libgit2 from source,  cmake  finds the
system package and takes this.

Regards.

Salva.
El 20/04/2015 09:46, "Willem Ferguson" 
escribió:

>  On 19/04/2015 22:08, Robert C. Helling wrote:
>
> Willem,
>
>  On 19 Apr 2015, at 20:24, Willem Ferguson <
> willemfergu...@zoology.up.ac.za> wrote:
>
> Anything I could do now?
> I know there is currently a lot of activity to get the build to run
> smoothly.
>
>
>  with git grep I get the impression this is once more a problem with the
> version of libgit2 (has to be quite recent). I would have thought the build
> script does download that but I would investigate the version installed on
> your system.
>
>  Best
> Robert
>
>  I had libgit2 v0.19 in my system and v0.22 in the src directory. I
> removed v0.19 from the system, leaving only the version in the src
> directory.
>
> It aborts two steps earlier in the process with a slightly different error
> message. Looks like libgit2 is a real obstacle.
>
> [ 23%] Built target subsurface_corelib
> make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libgit2.a',
> needed by `TestGpsCoords'.  Stop.
> make[1]: *** [CMakeFiles/TestGpsCoords.dir/all] Error 2
> make: *** [all] Error 2
> willem@dive:~/src$
>
> I am not clear on what build.sh does with libigit2. I would have expected
> that the install instruction (line 55 in build.sh) installs libgit2 in the
> appropriate system folder. But a locate command on libgit2 on my machine
> now only shows files in the home/src directory, not in /lib/ or a similar
> directory. From what I can see from the error message, the make process
> aborts while trying to make use of libgit2 to build Subsurface. This means
> that a valid object file for libgit2 exists??
>
> Kind regards,
> willem
>
> ___
> subsurface mailing list
> subsurface@subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>
>
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-20 Thread Willem Ferguson

On 19/04/2015 22:08, Robert C. Helling wrote:

Willem,

On 19 Apr 2015, at 20:24, Willem Ferguson 
> wrote:


Anything I could do now?
I know there is currently a lot of activity to get the build to run 
smoothly.


with git grep I get the impression this is once more a problem with 
the version of libgit2 (has to be quite recent). I would have thought 
the build script does download that but I would investigate the 
version installed on your system.


Best
Robert

I had libgit2 v0.19 in my system and v0.22 in the src directory. I 
removed v0.19 from the system, leaving only the version in the src 
directory.


It aborts two steps earlier in the process with a slightly different 
error message. Looks like libgit2 is a real obstacle.


[ 23%] Built target subsurface_corelib
make[2]: *** No rule to make target 
`/usr/lib/x86_64-linux-gnu/libgit2.a', needed by `TestGpsCoords'. Stop.

make[1]: *** [CMakeFiles/TestGpsCoords.dir/all] Error 2
make: *** [all] Error 2
willem@dive:~/src$

I am not clear on what build.sh does with libigit2. I would have 
expected that the install instruction (line 55 in build.sh) installs 
libgit2 in the appropriate system folder. But a locate command on 
libgit2 on my machine now only shows files in the home/src directory, 
not in /lib/ or a similar directory. From what I can see from the error 
message, the make process aborts while trying to make use of libgit2 to 
build Subsurface. This means that a valid object file for libgit2 exists??


Kind regards,
willem
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: cmake of Subsurface: link errors

2015-04-19 Thread Robert C. Helling
Willem,

> On 19 Apr 2015, at 20:24, Willem Ferguson  
> wrote:
> 
> Anything I could do now?
> I know there is currently a lot of activity to get the build to run smoothly.

with git grep I get the impression this is once more a problem with the version 
of libgit2 (has to be quite recent). I would have thought the build script does 
download that but I would investigate the version installed on your system.

Best
Robert___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface