[GRASS-dev] [GRASS GIS] #2065: grass70 not detecting latest source build of libLAS (1.7.0)

#2065: grass70 not detecting latest source build of libLAS (1.7.0)
------------------------+-------------------------
  Reporter: rashadkm | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.1.0
Component: Compiling | Version: svn-trunk
Resolution: fixed | Keywords: liblas
       CPU: All | Platform: Linux
------------------------+-------------------------

Comment (by jmburgos):

Replying to [comment:10 wenzeslaus]:

> Please be more specific and provide the error messages and logs.

I get an "configure: error: *** Unable to locate libLAS library" error.

This is the relevant bit from the config.log file:

------------------------------------------------------------------------------
configure:6164: checking whether to use libLAS

configure:6181: checking for liblas-config

configure:6238: gcc -o conftest -g -O2 -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-
buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/include
-I/usr/include/gdal -I/usr/include/libgeotiff -I/usr/include
-I/usr/include -Wl,--export-dynamic conftest.c -L/usr/lib -llas -llas_c
-L/usr/lib64 /usr/lib64/libboost_program_options-mt.so /usr/lib64
/libboost_thread-mt.so /usr/lib64/libgdal.so /usr/lib64/libgeotiff.so
/usr/lib64/libtiff.so /usr/lib64/liblaszip.so 1>&5

gcc: error: /usr/lib64/libgeotiff.so: No such file or directory

gcc: error: /usr/lib64/liblaszip.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 -O2 -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-
buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/include
-I/usr/include/gdal -I/usr/include/libgeotiff -I/usr/include
-I/usr/include -Wl,--export-dynamic conftest.c -L/usr/lib -llas -llas_c
-L/usr/lib64 /usr/lib64/libboost_program_options-mt.so /usr/lib64
/libboost_thread-mt.so /usr/lib64/libgdal.so /usr/lib64/libgeotiff.so
/usr/lib64/libtiff.so /usr/lib64/liblaszip.so 1>&5

gcc: error: /usr/lib64/libgeotiff.so: No such file or directory

gcc: error: /usr/lib64/liblaszip.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; }

------------------------------------------------------------------------------

So it seems that it cannot find the libgeotiff.so and liblaszip.so
files. But I have the libgeotiff-1.2.5-14.el7.x86_64 and
laszip-2.2.0-4.el7.x86_64 packages installed (as well as
liblas-1.8.0-3.el7.x86_64 and liblas-devel-1.8.0-3.el7.x86_64).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2065#comment:11&gt;
GRASS GIS <https://grass.osgeo.org>