<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 5:08 PM, César Augusto Ramírez Franco <span dir="ltr"><<a href="mailto:caesarivs@gmail.com" target="_blank">caesarivs@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"><div style="color:rgb(39,78,19)">Hello dear list</div><div style="color:rgb(39,78,19)"><br></div><div style="color:rgb(39,78,19)">I'm trying to compile grass 7 from source on Debian Jessie with libLAS support, here's what I've tried:</div><div style="color:rgb(39,78,19)"><br></div><div style="color:rgb(39,78,19)"><div>I've installed liblas-bin and liblas-dev (1.8.0) from debian repositories</div><div><br></div><div>Downloaded grass source code:</div><div><div>wget <a href="http://grass.osgeo.org/grass70/source/grass-7.0.0.tar.gz" target="_blank">http://grass.osgeo.org/grass70/source/grass-7.0.0.tar.gz</a></div><div>tar xzf grass-7.0.0.tar.gz</div><div>cd grass-7.0.0</div></div><div><br></div><div>But when I run</div><div>./configure ... --with-liblas=yes</div><div><br></div><div>I get:<br></div></div><div style="color:rgb(39,78,19)"><br></div><div style="color:rgb(39,78,19)">...</div><div style="color:rgb(39,78,19)">checking for liblas-config... /usr/bin/liblas-config</div><div style="color:rgb(39,78,19)">configure: error: *** Unable to locate libLAS library.</div></div></blockquote><div><br>What<br><br> which liblas-config<br><br></div>says? For me on Ubuntu 15.04 it says /usr/bin/liblas-config. So it should work. Although I explicitly call<br><br> --with-liblas-config=/usr/bin/liblas-config<br><br></div><div class="gmail_quote">but it is probably not necessary.<br></div><div class="gmail_quote"><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"><div style="color:rgb(39,78,19)"></div><div style="color:rgb(39,78,19)">Here's the config.log:</div><div style="color:rgb(39,78,19)"><br></div><div><div style="color:rgb(39,78,19)">configure:6164: checking whether to use libLAS</div><div style="color:rgb(39,78,19)">configure:6181: checking for liblas-config</div><div style="color:rgb(39,78,19)">configure:6238: gcc -o conftest -g -Wall -Werror-implicit-function-declaration -</div><div style="color:rgb(39,78,19)">fno-common -Wextra -Wunused -g -O2 -fstack-protector-strong -Wformat -Werror=fo</div><div style="color:rgb(39,78,19)">rmat-security -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include/gdal -I/usr/inc</div><div style="color:rgb(39,78,19)">lude/geotiff -I/usr/include/i386-linux-gnu -Wl,--export-dynamic conftest.c -L/</div><div style="color:rgb(39,78,19)">usr/lib -llas -llas_c -L/usr/lib/i386-linux-gnu /usr/lib/i386-linux-gnu/libboost</div><div style="color:rgb(39,78,19)">_program_options.so /usr/lib/i386-linux-gnu/libboost_thread.so /usr/lib/libgdal.</div><div style="color:rgb(39,78,19)">so /usr/lib/libgeotiff.so /usr/lib/i386-linux-gnu/libtiff.so 1>&5</div><div style="color:rgb(39,78,19)">gcc: error: /usr/lib/libgeotiff.so: No such file or directory</div><div style="color:rgb(39,78,19)">configure: failed program was:</div><div style="color:rgb(39,78,19)">#line 6231 "configure"</div><div style="color:rgb(39,78,19)">#include "confdefs.h"</div><div style="color:rgb(39,78,19)">#include <liblas/capi/liblas.h></div><div style="color:rgb(39,78,19)">int main() {</div><div style="color:rgb(39,78,19)">LASReader_Create("foo");</div><div style="color:rgb(39,78,19)">; return 0; }</div><div style="color:rgb(39,78,19)">configure:6253: gcc -o conftest -g -Wall -Werror-implicit-function-declaration -</div><div style="color:rgb(39,78,19)">fno-common -Wextra -Wunused -g -O2 -fstack-protector-strong -Wformat -Werror=fo</div><div style="color:rgb(39,78,19)">rmat-security -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include/gdal -I/usr/inc</div><div style="color:rgb(39,78,19)">lude/geotiff -I/usr/include/i386-linux-gnu -Wl,--export-dynamic conftest.c -L/</div><div style="color:rgb(39,78,19)">usr/lib -llas -llas_c -L/usr/lib/i386-linux-gnu /usr/lib/i386-linux-gnu/libboost</div><div style="color:rgb(39,78,19)">_program_options.so /usr/lib/i386-linux-gnu/libboost_thread.so /usr/lib/libgdal.</div><div style="color:rgb(39,78,19)">so /usr/lib/libgeotiff.so /usr/lib/i386-linux-gnu/libtiff.so 1>&5</div><div style="color:rgb(39,78,19)">gcc: error: /usr/lib/libgeotiff.so: No such file or directory</div><div style="color:rgb(39,78,19)">configure: failed program was:</div><div style="color:rgb(39,78,19)">#line 6246 "configure"</div><div style="color:rgb(39,78,19)">#include "confdefs.h"</div><div style="color:rgb(39,78,19)">#include <liblas/capi/liblas.h></div><div style="color:rgb(39,78,19)">int main() {</div><div style="color:rgb(39,78,19)">LASReader_Create("foo");</div><div style="color:rgb(39,78,19)">; return 0; }</div><div style="color:rgb(39,78,19)"><br></div><div style="color:rgb(39,78,19)">I tried checking out from SVN too:</div><div style="color:rgb(39,78,19)"><br></div><div><div style="color:rgb(39,78,19)">svn checkout <a href="https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0" target="_blank">https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0</a> grass-7.0.svn</div><div style="color:rgb(39,78,19)">cd grass-7.0.svn</div><div style="color:rgb(39,78,19)">./configure ... --with-liblas=yes<br></div><div style="color:rgb(39,78,19)"><br></div><div style="color:rgb(39,78,19)">And I get the same error</div><div style="color:rgb(39,78,19)"><br></div><div style="color:rgb(39,78,19)">I found a ticket (<a href="http://trac.osgeo.org/grass/ticket/2065" target="_blank">http://trac.osgeo.org/grass/ticket/2065</a>) about this but it's marked as fixed...</div><div style="color:rgb(39,78,19)"><br></div><div style="color:rgb(39,78,19)">Can someone please guide me as to how to bypass this error?</div><div style="color:rgb(39,78,19)"><br></div><div style="color:rgb(39,78,19)">The full configure options are:</div><div style="color:rgb(39,78,19)"><br></div><div><div><font color="#274e13">CFLAGS="-g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused" CXXFLAGS="-g -Wall" \</font></div><div><font color="#274e13">./configure \</font></div><div><font color="#274e13"> --prefix=/usr/local \</font></div><div><font color="#274e13"> --with-gdal \</font></div><div><font color="#274e13"> --with-proj --with-proj-share=/usr/share \</font></div><div><font color="#274e13"> --with-glw --with-nls --with-readline \</font></div><div><font color="#274e13"> --with-cxx --enable-largefile \</font></div><div><font color="#274e13"> --with-freetype --with-freetype-includes=/usr/include/freetype2 \</font></div><div><font color="#274e13"> --with-sqlite --with-cairo --with-python=/usr/bin/python-config \</font></div><div><font color="#274e13"> --with-wxwidgets --with-geos --with-blas \</font></div><div><font color="#274e13"> --with-lapack-includes=/usr/lib/lapack --with-liblas=yes \</font></div><div><font color="#274e13"> --with-netcdf=/usr/bin/nc-config --with-odbc=yes \</font></div><div><font color="#274e13"> --with-openmp=yes --with-pthread=yes --with-postgres=yes \</font></div><div><font color="#274e13"> --with-postgres-includes=/usr/include/postgresql \</font></div><div><font color="#274e13"> --with-postgres-libs=/usr/lib/postgresql \</font></div><div><font color="#274e13"> --with-mysql=yes --with-mysql-includes=/usr/include/mysql \</font></div><div><font color="#274e13"> --with-mysql-libs=/usr/lib/mysql</font></div></div></div></div><div><br></div><div><div style="color:rgb(39,78,19)">Thanks!</div></div><span class=""><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div style="text-align:right"><b style="color:rgb(39,78,19)">César Augusto Ramírez Franco</b></div><font color="#274e13"><div style="text-align:right">Laboratorio de Sistemas Complejos Naturales</div><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><div style="text-align:right">Escuela de Geociencias</div></span></font><div><div style="text-align:right"><span style="white-space:pre-wrap;font-family:Arial;color:rgb(39,78,19)">Facultad de Ciencias</span></div><font color="#274e13"><div style="text-align:right">Universidad Nacional de Colombia - Sede Medellín</div></font></div><font color="#274e13"><div style="text-align:right">Teléfono: (57-4) 430 9369 -<font face="arial, helvetica, sans-serif"> 300 459 6085<br></font></div></font></div></div>
</font></span></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div></div>