[Liblas-devel] Re: [GRASS-dev] grass7: problem --with-liblas

Howard Butler hobu.inc at gmail.com
Mon Jun 13 15:59:08 EDT 2011


On Jun 13, 2011, at 11:45 AM, Doug_Newcomb at fws.gov wrote:

> 
> 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. 

Yes, this is CMake's fault, in particular the Boost library fetching logic of CMake 2.8.4+.  I haven't had time to fix it, but I suppose a little bit of CMake regex on the Boost_LIBS output in liblas-config.in could clean this up...


> 
> Doug 
> 
> Doug Newcomb             
> USFWS
> Raleigh, NC
> 919-856-4520 ext. 14 doug_newcomb at 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. 
> 
> 
> Markus Metz <markus.metz.giswork at googlemail.com> 
> Sent by: grass-dev-bounces at lists.osgeo.org
> 06/01/2011 03:21 AM
> 
> To
> Glynn Clements <glynn at gclements.plus.com>
> cc
> Martin Landa <landa.martin at gmail.com>, GRASS developers list <liblas-devel at lists.osgeo.org>
> Subject
> Re: [GRASS-dev] grass7: problem --with-liblas
> 
> 
> 
> 
> 
> On Tue, May 31, 2011 at 11:34 PM, Glynn Clements
> <glynn at 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 at gclements.plus.com>
> >
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
> 
> _______________________________________________
> Liblas-devel mailing list
> Liblas-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/liblas-devel



More information about the Liblas-devel mailing list