[GRASS-user] Error trying to compile grass 7 w/libLAS Debian Jessie

Vaclav Petras wenzeslaus at gmail.com
Wed Jun 24 14:52:26 PDT 2015


On Wed, Jun 24, 2015 at 5:08 PM, César Augusto Ramírez Franco <
caesarivs at gmail.com> wrote:

> Hello dear list
>
> I'm trying to compile grass 7 from source on Debian Jessie with libLAS
> support, here's what I've tried:
>
> I've installed liblas-bin and liblas-dev (1.8.0) from debian repositories
>
> Downloaded grass source code:
> wget http://grass.osgeo.org/grass70/source/grass-7.0.0.tar.gz
> tar xzf grass-7.0.0.tar.gz
> cd grass-7.0.0
>
> But when I run
> ./configure ... --with-liblas=yes
>
> I get:
>
> ...
> checking for liblas-config... /usr/bin/liblas-config
> configure: error: *** Unable to locate libLAS library.
>

What

    which liblas-config

says? For me on Ubuntu 15.04 it says /usr/bin/liblas-config. So it should
work. Although I explicitly call

    --with-liblas-config=/usr/bin/liblas-config

but it is probably not necessary.

Here's the config.log:
>
> configure:6164: checking whether to use libLAS
> configure:6181: checking for liblas-config
> configure:6238: gcc -o conftest -g -Wall
> -Werror-implicit-function-declaration -
> fno-common -Wextra -Wunused  -g -O2 -fstack-protector-strong -Wformat
> -Werror=fo
> rmat-security -D_FORTIFY_SOURCE=2  -I/usr/include -I/usr/include/gdal
> -I/usr/inc
> lude/geotiff -I/usr/include/i386-linux-gnu  -Wl,--export-dynamic
> conftest.c  -L/
> usr/lib -llas -llas_c -L/usr/lib/i386-linux-gnu
> /usr/lib/i386-linux-gnu/libboost
> _program_options.so /usr/lib/i386-linux-gnu/libboost_thread.so
> /usr/lib/libgdal.
> so /usr/lib/libgeotiff.so /usr/lib/i386-linux-gnu/libtiff.so 1>&5
> gcc: error: /usr/lib/libgeotiff.so: No such file or directory
> configure: failed program was:
> #line 6231 "configure"
> #include "confdefs.h"
> #include <liblas/capi/liblas.h>
> int main() {
> LASReader_Create("foo");
> ; return 0; }
> configure:6253: gcc -o conftest -g -Wall
> -Werror-implicit-function-declaration -
> fno-common -Wextra -Wunused  -g -O2 -fstack-protector-strong -Wformat
> -Werror=fo
> rmat-security -D_FORTIFY_SOURCE=2  -I/usr/include -I/usr/include/gdal
> -I/usr/inc
> lude/geotiff -I/usr/include/i386-linux-gnu  -Wl,--export-dynamic
> conftest.c  -L/
> usr/lib -llas -llas_c -L/usr/lib/i386-linux-gnu
> /usr/lib/i386-linux-gnu/libboost
> _program_options.so /usr/lib/i386-linux-gnu/libboost_thread.so
> /usr/lib/libgdal.
> so /usr/lib/libgeotiff.so /usr/lib/i386-linux-gnu/libtiff.so 1>&5
> gcc: error: /usr/lib/libgeotiff.so: No such file or directory
> configure: failed program was:
> #line 6246 "configure"
> #include "confdefs.h"
> #include <liblas/capi/liblas.h>
> int main() {
> LASReader_Create("foo");
> ; return 0; }
>
> I tried checking out from SVN too:
>
> svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0
> grass-7.0.svn
> cd grass-7.0.svn
> ./configure ... --with-liblas=yes
>
> And I get the same error
>
> I found a ticket (http://trac.osgeo.org/grass/ticket/2065) about this but
> it's marked as fixed...
>
> Can someone please guide me as to how to bypass this error?
>
> The full configure options are:
>
> CFLAGS="-g -Wall -Werror-implicit-function-declaration -fno-common -Wextra
> -Wunused" CXXFLAGS="-g -Wall" \
> ./configure \
>    --prefix=/usr/local \
>    --with-gdal \
>    --with-proj --with-proj-share=/usr/share \
>    --with-glw --with-nls --with-readline \
>    --with-cxx --enable-largefile \
>    --with-freetype --with-freetype-includes=/usr/include/freetype2 \
>    --with-sqlite --with-cairo --with-python=/usr/bin/python-config \
>    --with-wxwidgets --with-geos --with-blas \
>    --with-lapack-includes=/usr/lib/lapack --with-liblas=yes \
>    --with-netcdf=/usr/bin/nc-config --with-odbc=yes \
>    --with-openmp=yes --with-pthread=yes --with-postgres=yes \
>    --with-postgres-includes=/usr/include/postgresql \
>    --with-postgres-libs=/usr/lib/postgresql \
>    --with-mysql=yes --with-mysql-includes=/usr/include/mysql \
>    --with-mysql-libs=/usr/lib/mysql
>
> ​Thanks!​
>
> --
> *César Augusto Ramírez Franco*
> Laboratorio de Sistemas Complejos Naturales
> Escuela de Geociencias
> Facultad de Ciencias
> Universidad Nacional de Colombia - Sede Medellín
> Teléfono: (57-4) 430 9369 - 300 459 6085
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150624/e223c9ee/attachment-0001.html>


More information about the grass-user mailing list