[GRASS-dev] [GRASS GIS] #2065: grass70 not detecting latest source build of libLAS (1.7.0)
GRASS GIS
trac at osgeo.org
Mon Mar 24 18:09:41 PDT 2014
#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.0.0
Component: Compiling | Version: svn-trunk
Resolution: fixed | Keywords: liblas
Platform: Linux | Cpu: All
------------------------+---------------------------------------------------
Comment(by hamish):
currently I'm getting this error with trunk on Debian Wheezy,
{{{
./configure ... --with-liblas
[...]
checking whether to use libLAS... yes
checking for liblas-config... /usr/bin/liblas-config
configure: error: *** Unable to locate libLAS library.
}}}
{{{
$ /usr/bin/liblas-config --cflags
-Wall -Wno-long-long -pedantic -g -O2 -fstack-protector --param=ssp-
buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -O3
-DNDEBUG
$ /usr/bin/liblas-config --includes
-I/usr/include/geotiff -I/usr/include/gdal
}}}
config.log:
{{{
configure:6215: checking for liblas-config
configure:6272: gcc -o conftest -ggdb -march=amdfam10 -Wall -Werror-
implicit-function-declaration -fno-common
-Wextra -Wunused -Wall -Wno-long-long -pedantic -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat
-Wformat-security -Werror=format-security -Wall -O3 -DNDEBUG
-I/usr/include/geotiff -I/usr/include/gdal -W
l,--export-dynamic conftest.c -L/usr/lib -lgeotiff -L/usr/lib -lgdal 1>&5
/tmp/ccrOhqrK.o: In function `main':
/home/hamish/src/grass/svn/trunk/configure:6268: undefined reference to
`LASReader_Create'
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 6265 "configure"
#include "confdefs.h"
#include <liblas/capi/liblas.h>
int main() {
LASReader_Create("foo");
; return 0; }
configure:6287: gcc -o conftest -ggdb -march=amdfam10 -Wall -Werror-
implicit-function-declaration -fno-common
-Wextra -Wunused -Wall -Wno-long-long -pedantic -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat
-Wformat-security -Werror=format-security -Wall -O3 -DNDEBUG
-I/usr/include/geotiff -I/usr/include/gdal -W
l,--export-dynamic conftest.c -L/usr/lib -lgeotiff -L/usr/lib -lgdal 1>&5
/tmp/cc85WCPw.o: In function `main':
/home/hamish/src/grass/svn/trunk/configure:6283: undefined reference to
`LASReader_Create'
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 6280 "configure"
#include "confdefs.h"
#include <liblas/capi/liblas.h>
int main() {
LASReader_Create("foo");
; return 0; }
}}}
{{{
$ grep -r LASReader_Create /usr/include/liblas *
/usr/include/liblas/capi/liblas.h:LAS_DLL LASReaderH
LASReader_Create(const char * filename);
$ apt-cache policy liblas-dev
liblas-dev:
Installed: 1.2.1-5+b1
...
}}}
any ideas?
thanks,
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2065#comment:3>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list