[GRASS-dev] grass7: problem --with-liblas

Markus Metz markus.metz.giswork at googlemail.com
Tue May 31 12:19:48 EDT 2011


On Tue, May 31, 2011 at 6:03 PM, Glynn Clements
<glynn at 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


More information about the grass-dev mailing list