[GRASS-user] Error trying to compile grass 7 w/libLAS Debian Jessie
César Augusto Ramírez Franco
caesarivs at gmail.com
Wed Jun 24 23:09:20 PDT 2015
2015-06-24 22:03 GMT-05:00 Vaclav Petras <wenzeslaus at gmail.com>:
>
> On Wed, Jun 24, 2015 at 10:30 PM, César Augusto Ramírez Franco <
> caesarivs at gmail.com> wrote:
>
>> On the ticket I found it says: "Adding the LIBLAS_INC to CFLAGS solved
>> this"
>>
>> How do I do that?
>>
>> I also tried the 7.0.1RC1 and got the same error, so I'm kind of sure
>> somethin on my ./configure stack is wrong, here's the one I'm using:
>>
>> CFLAGS="-g -Wall -Werror-implicit-function-declaration -fno-common
>> -Wextra -Wunused" \
>>
>
>
> CFLAGS="-g -Wall ... $(liblas-config --includes)"
>
This didn't work either
But this is not the right solution. I would say that the configure script
> should take care of that and I thought we already went through this and
> fixed it at one point. Look to the configure file and see:
>
> grep -i liblas configure
>
I can't tell if there's anything wrong, I get this:
$ grep -i liblas configure
--with-liblas[=path/liblas-config]
enable libLAS support (liblas-config with path,
e.g. '--with-liblas=/usr/local/bin/liblas-config',
# Check whether --with-liblas or --without-liblas was given.
if test "${with_liblas+set}" = set; then
withval="$with_liblas"
with_liblas="no"
# libLAS option
echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
echo "configure:6164: checking whether to use libLAS" >&5
LIBLAS_LIBS=
LIBLAS_CFLAGS=
USE_LIBLAS=
if test "`basename xx/$with_liblas`" = "liblas-config" ; then
LIBLAS_CONFIG="$with_liblas"
if test "$with_liblas" = "no" ; then
# Extract the first word of "liblas-config", so it can be a program name
with args.
set dummy liblas-config; ac_word=$2
case "$LIBLAS_CONFIG" in
ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the
test with a path.
ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the
test with a dos path.
ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
if test -n "$LIBLAS_CONFIG"; then
echo "$ac_t""$LIBLAS_CONFIG" 1>&6
if test "$LIBLAS_CONFIG" = "no" ; then
{ echo "configure: error: *** couldn't find liblas-config" 1>&2; exit
1; }
if test "$LIBLAS_CONFIG" != "" ; then
LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
USE_LIBLAS=1
LIBLAS=
LIBS="$LIBS $LIBLAS_LIBS"
CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
#include <liblas/capi/liblas.h>
#include <liblas/capi/liblas.h>
{ echo "configure: error: *** Unable to locate libLAS library." 1>&2;
exit 1; }
#define HAVE_LIBLAS 1
s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
s%@LIBLAS_INC@%$LIBLAS_INC%g
s%@USE_LIBLAS@%$USE_LIBLAS%g
echo " libLAS support: `if test -n "${USE_LIBLAS}" ; then echo
yes ; else echo no ; fi`"
> I'm looking at trunk but it should be same for all 7 versions.
>
The fact that I'm getting the same error on 7.0.0, 7.0.svn and 7.0.1RC1
makes me think there must be something I'm doing wrong, or maybe the
problem is in the liblas-bin and liblas-dev packages on debian repos.
--
*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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150625/8c2c0a12/attachment-0001.html>
More information about the grass-user
mailing list