<p dir="ltr">Easy to Fix, for some reason Grantlee is not being found. Go to your build directory and run ccmake .., go to the field saying Grantlee_dir - that should have the value not found, and put the correct one, wich should be install-root /lib/cmake/Grantlee5</p>
<br><div class="gmail_quote"><div dir="ltr">Em sáb, 5 de set de 2015 13:36, Miika Turkia <<a href="mailto:miika.turkia@gmail.com">miika.turkia@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Sep 5, 2015 at 6:15 PM, Willem Ferguson<br>
<<a href="mailto:willemferguson@zoology.up.ac.za" target="_blank">willemferguson@zoology.up.ac.za</a>> wrote:<br>
> Dirk, Miika,<br>
><br>
> I cannot build the latest version (downloaded around 09h00 WCT, I assume it<br>
> is SHA f9c32a58). I have identical symptoms on two independent machines<br>
> (Fedora and Ubuntu).<br>
><br>
> I could build Subsurface reliably on Ubuntu at least until SHA 2c4ae23ccc5d<br>
> but it appears that something has changed, either with respect to<br>
> dependencies or with respect to the cmake make file. Presently I get:<br>
><br>
> Linking CXX executable subsurface<br>
> /usr/bin/ld: cannot find -lGrantlee5::Templates<br>
> collect2: error: ld returned 1 exit status<br>
> CMakeFiles/subsurface.dir/build.make:285: recipe for target 'subsurface'<br>
> failed<br>
> make[2]: *** [subsurface] Error 1<br>
> CMakeFiles/Makefile2:710: recipe for target 'CMakeFiles/subsurface.dir/all'<br>
> failed<br>
> make[1]: *** [CMakeFiles/subsurface.dir/all] Error 2<br>
> Makefile:126: recipe for target 'all' failed<br>
> make: *** [all] Error 2<br>
><br>
> Here are the grantlee shared objects in src/install-root/lib:<br>
><br>
> drwxr-xr-x 3 root root    4096 Sep  5 16:24 grantlee<br>
> lrwxrwxrwx 1 root root      26 Sep  5 16:24 libGrantlee_Templates.so -><br>
> libGrantlee_Templates.so.5<br>
> lrwxrwxrwx 1 root root      30 Sep  5 16:24 libGrantlee_Templates.so.5 -><br>
> libGrantlee_Templates.so.5.0.0<br>
> -rw-r--r-- 1 root root  606320 Sep  5 16:53 libGrantlee_Templates.so.5.0.0<br>
> lrwxrwxrwx 1 root root      29 Sep  5 16:24 libGrantlee_TextDocument.so -><br>
> libGrantlee_TextDocument.so.5<br>
> lrwxrwxrwx 1 root root      33 Sep  5 16:24 libGrantlee_TextDocument.so.5 -><br>
> libGrantlee_TextDocument.so.5.0.0<br>
> -rw-r--r-- 1 root root  184184 Sep  5 16:24<br>
> libGrantlee_TextDocument.so.5.0.0<br>
><br>
> and in src/install-root/lib/grantlee/5.0:<br>
><br>
> -rw-r--r-- 1 root root 216968 Sep  5 16:53 grantlee_defaultfilters.so<br>
> -rw-r--r-- 1 root root 293696 Sep  5 16:53 grantlee_defaulttags.so<br>
> -rw-r--r-- 1 root root 147952 Sep  5 16:53 grantlee_i18ntags.so<br>
> -rw-r--r-- 1 root root 103008 Sep  5 16:53 grantlee_loadertags.so<br>
><br>
> Miika, are you building normally?<br>
<br>
Yep, builds just fine for me.<br>
<br>
> I deleted the grantlee folder to have this rebuilt by build.sh, but this had<br>
> no effect.  :-(((<br>
><br>
> The same resulted when performing a totally complete and new build from<br>
> scratch in src.<br>
><br>
> Any ideas?<br>
<br>
cd subsurface/build<br>
ccmake .<br>
<br>
Make sure the Grantlee5_DIR variable points to correct locaiton. I<br>
suppose LIBGRANTLEE_FROM_PKGCONFIG should also be OFF (or at least it<br>
is on my build).<br>
<br>
miika<br>
_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
</blockquote></div>