Hi,
I have compiled liblas from the repo [1] and then grass7 with
`--with-liblas`, unfortunately without success
configure:6544: checking for liblas-config
configure:6599: gcc -o conftest -g -Wall
-Werror-implicit-function-declaration -fno-common -Wextra -Wunused
-Wl,--export-dynamic conftest.c -L/usr/local/lib -llas -llas_c
-L/usr/lib optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so
1>&5
gcc: error: optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so:
No such file or directory
configure: failed program was:
#line 6592 "configure"
#include "confdefs.h"
#include <liblas/capi/liblas.h>
int main() {
LASReader_Create("foo");
; return 0; }
having
$ gcc --version
gcc (Debian 4.6.0-10) 4.6.1 20110526 (prerelease)
$ liblas-config --libs
-L/usr/local/lib -llas -llas_c -L/usr/lib
optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so
Any hint? Martin
[1] http://liblas.org/compilation.html#using-unix-makefiles-on-linux
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
On Tue, May 31, 2011 at 10:00 AM, Martin Landa <landa.martin@gmail.com> wrote:
Hi,
I have compiled liblas from the repo [1] and then grass7 with
`--with-liblas`, unfortunately without success
configure:6544: checking for liblas-config
configure:6599: gcc -o conftest -g -Wall
-Werror-implicit-function-declaration -fno-common -Wextra -Wunused
-Wl,--export-dynamic conftest.c -L/usr/local/lib -llas -llas_c
-L/usr/lib optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so
1>&5
gcc: error: optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so:
No such file or directory
configure: failed program was:
#line 6592 "configure"
#include "confdefs.h"
#include <liblas/capi/liblas.h>
int main() {
LASReader_Create("foo");
; return 0; }
having
$ gcc --version
gcc (Debian 4.6.0-10) 4.6.1 20110526 (prerelease)
$ liblas-config --libs
-L/usr/local/lib -llas -llas_c -L/usr/lib
optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so
Any hint? Martin
I am not sure if this second line returned by liblas-config --libs
starting with "optimized;" is valid. On my installation, liblas-config
--libs gives me
-L/usr/local/lib -llas -llas_c -L/usr/lib64
/usr/lib64/libboost_program_options-mt.so /usr/local/lib64/libgdal.so
/usr/local/lib64/libgeotiff.so /usr/lib64/libtiff.so
/usr/lib64/libxml2.so /usr/local/lib64/liblaszip.so
Is lasinfo working at all? Just a wild guess: have you changed the
default CMAKE_BUILD_TYPE? And just out of curiosity: can you send me
(offlist) your liblas-config file?
Markus M
Markus Metz wrote:
> I have compiled liblas from the repo [1] and then grass7 with
> `--with-liblas`, unfortunately without success
> $ liblas-config --libs
> -L/usr/local/lib -llas -llas_c -L/usr/lib
> optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so
FWIW, I have exactly the same problem.
I am not sure if this second line returned by liblas-config --libs
starting with "optimized;" is valid.
It isn't.
On my installation, liblas-config
--libs gives me
-L/usr/local/lib -llas -llas_c -L/usr/lib64
/usr/lib64/libboost_program_options-mt.so /usr/local/lib64/libgdal.so
/usr/local/lib64/libgeotiff.so /usr/lib64/libtiff.so
/usr/lib64/libxml2.so /usr/local/lib64/liblaszip.so
Is lasinfo working at all? Just a wild guess: have you changed the
default CMAKE_BUILD_TYPE? And just out of curiosity: can you send me
(offlist) your liblas-config file?
The relevant line from liblas-config is:
LIBS="-L$libdir -llas -llas_c -L/usr/lib optimized;/usr/lib/libboost_program_options-mt-1_42.so;debug;/usr/lib/libboost_program_options-mt.so"
--
Glynn Clements <glynn@gclements.plus.com>
On Tue, May 31, 2011 at 6:03 PM, Glynn Clements
<glynn@gclements.plus.com> wrote:
Markus Metz wrote:
> I have compiled liblas from the repo [1] and then grass7 with
> `--with-liblas`, unfortunately without success
> $ liblas-config --libs
> -L/usr/local/lib -llas -llas_c -L/usr/lib
> optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so
FWIW, I have exactly the same problem.
I am not sure if this second line returned by liblas-config --libs
starting with "optimized;" is valid.
It isn't.
On my installation, liblas-config
--libs gives me
-L/usr/local/lib -llas -llas_c -L/usr/lib64
/usr/lib64/libboost_program_options-mt.so /usr/local/lib64/libgdal.so
/usr/local/lib64/libgeotiff.so /usr/lib64/libtiff.so
/usr/lib64/libxml2.so /usr/local/lib64/liblaszip.so
Is lasinfo working at all? Just a wild guess: have you changed the
default CMAKE_BUILD_TYPE? And just out of curiosity: can you send me
(offlist) your liblas-config file?
The relevant line from liblas-config is:
LIBS="-L$libdir -llas -llas_c -L/usr/lib optimized;/usr/lib/libboost_program_options-mt-1_42.so;debug;/usr/lib/libboost_program_options-mt.so"
here:
LIBS="-L$libdir -llas -llas_c -L/usr/lib64
/usr/lib64/libboost_program_options-mt.so"
Is this "optimized;" and ";debug;" now a problem of GRASS or of libLAS?
Anyway, as a local fix, configure could be hacked, replacing line 6582
LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
with
LIBLAS_LIBS="-L/usr/local/lib -llas -llas_c"
-L/usr/local/lib may need to b replaced with the actual location of liblas_c.so
BTW, what version of libLAS are you using?
Markus M
Hi,
2011/5/31 Markus Metz <markus.metz.giswork@googlemail.com>:
BTW, what version of libLAS are you using?
source from the repo
http://liblas.org/development/source.html#source
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Hi,
2011/5/31 Markus Metz <markus.metz.giswork@googlemail.com>:
Is lasinfo working at all? Just a wild guess: have you changed the
yes
default CMAKE_BUILD_TYPE? And just out of curiosity: can you send me
no
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
On Tue, May 31, 2011 at 6:22 PM, Martin Landa <landa.martin@gmail.com> wrote:
Hi,
2011/5/31 Markus Metz <markus.metz.giswork@googlemail.com>:
BTW, what version of libLAS are you using?
source from the repo
http://liblas.org/development/source.html#source
try the current stable release 1.6.1 instead
http://liblas.org/download.html
Markus M
Hi,
2011/5/31 Markus Metz <markus.metz.giswork@googlemail.com>:
try the current stable release 1.6.1 instead
http://liblas.org/download.html
getting the same
$ liblas-config --libs
-L/usr/local/lib -llas -llas_c -L/usr/lib
optimized;/usr/lib/libboost_program_options-mt.so;debug;/usr/lib/libboost_program_options-mt.so
on Debian GNU/Linux Sid
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Markus Metz wrote:
Is this "optimized;" and ";debug;" now a problem of GRASS or of libLAS?
libLAS. Although it / be an issue with CMake's FindBoost module
(search for "optimized" in FindBoost.cmake).
BTW, what version of libLAS are you using?
I'm using the libLAS-1.6.1 source package:
$ ls -l libLAS-*
-rw-r--r-- 1 glynn root 7817956 May 30 18:49 libLAS-1.6.1.tar.gz
$ md5sum libLAS-*
2ce4f36f267c2f25bfc99c3f00e9cbd3 libLAS-1.6.1.tar.gz
--
Glynn Clements <glynn@gclements.plus.com>
On Tue, May 31, 2011 at 11:34 PM, Glynn Clements
<glynn@gclements.plus.com> wrote:
Markus Metz wrote:
Is this "optimized;" and ";debug;" now a problem of GRASS or of libLAS?
libLAS. Although it / be an issue with CMake's FindBoost module
(search for "optimized" in FindBoost.cmake).
This seems to be a bug in cmake 2.8.4, not present in cmake 2.8.2. I
just updated cmake from 2.8.2 to 2.8.4 and now get the same problem.
Or the syntax in liblas-config.in is wrong.
I suggest to hack liblas-config and replace the offending line
LIBS="-L$libdir -llas -llas_c -L/usr/lib
optimized;/usr/lib/libboost_program_options-mt-1_42.so;debug;/usr/lib/libboost_program_options-mt.so"
with
LIBS="-L$libdir -llas -llas_c -L/usr/lib
/usr/lib/libboost_program_options-mt.so"
or
LIBS="-L$libdir -llas -llas_c -L/usr/lib64
/usr/lib64/libboost_program_options-mt.so"
BTW, what version of libLAS are you using?
I'm using the libLAS-1.6.1 source package:
$ ls \-l libLAS\-\*
\-rw\-r\-\-r\-\- 1 glynn root 7817956 May 30 18:49 libLAS\-1\.6\.1\.tar\.gz
$ md5sum libLAS\-\*
2ce4f36f267c2f25bfc99c3f00e9cbd3 libLAS\-1\.6\.1\.tar\.gz
--
Glynn Clements <glynn@gclements.plus.com>
Hi,
2011/6/1 Markus Metz <markus.metz.giswork@googlemail.com>:
This seems to be a bug in cmake 2.8.4, not present in cmake 2.8.2. I
just updated cmake from 2.8.2 to 2.8.4 and now get the same problem.
Or the syntax in liblas-config.in is wrong.
should be probably reported in libLAS ML...
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Hi Folks,
Glynn’s suggested hack to liblas-config below to work around the issue in cmake allowed me to compile grass7 with liblas support over the weekend on Ubuntu 11.04 x64. I have not read any las files yet to see if it actaully worked
, hopefully tonight I’ll get a chance.
Doug
Doug Newcomb
USFWS
Raleigh, NC
919-856-4520 ext. 14 doug_newcomb@fws.gov
The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of the Interior. Life is too short for undocumented, proprietary data formats.
To
|
Glynn Clements <glynn@gclements.plus.com>
|
cc
|
Martin Landa <landa.martin@gmail.com>, GRASS developers list <liblas-devel@lists.osgeo.org>
|
Subject
|
Re: [GRASS-dev] grass7: problem --with-liblas
|
On Tue, May 31, 2011 at 11:34 PM, Glynn Clements
<glynn@gclements.plus.com> wrote:
>
> Markus Metz wrote:
>
>> Is this "optimized;" and ";debug;" now a problem of GRASS or of libLAS?
>
> libLAS. Although it / be an issue with CMake's FindBoost module
> (search for "optimized" in FindBoost.cmake).
>
This seems to be a bug in cmake 2.8.4, not present in cmake 2.8.2. I
just updated cmake from 2.8.2 to 2.8.4 and now get the same problem.
Or the syntax in liblas-config.in is wrong.
I suggest to hack liblas-config and replace the offending line
LIBS="-L$libdir -llas -llas_c -L/usr/lib
optimized;/usr/lib/libboost_program_options-mt-1_42.so;debug;/usr/lib/libboost_program_options-mt.so"
with
LIBS="-L$libdir -llas -llas_c -L/usr/lib
/usr/lib/libboost_program_options-mt.so"
or
LIBS="-L$libdir -llas -llas_c -L/usr/lib64
/usr/lib64/libboost_program_options-mt.so"
>> BTW, what version of libLAS are you using?
>
> I'm using the libLAS-1.6.1 source package:
>
> $ ls -l libLAS-*
> -rw-r--r-- 1 glynn root 7817956 May 30 18:49 libLAS-1.6.1.tar.gz
> $ md5sum libLAS-*
> 2ce4f36f267c2f25bfc99c3f00e9cbd3 libLAS-1.6.1.tar.gz
>
> --
> Glynn Clements <glynn@gclements.plus.com>
>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev