[Live-demo] libLAS LiveDVD build - not there yet

Howard Butler hobu.inc at gmail.com
Sat Jul 23 11:20:24 PDT 2011


On Jul 16, 2011, at 8:39 PM, Hamish wrote:

> Brian wrote:
>> latest Live-DVD build.. two problems.. 
>> 
>> 1) libboost1.40 is not avilable apparently.. change to
>> 1.42, which seems to be there
>>     (install_gpsdrive.sh also calls out 1.42 explicitly..)  ok?
> 
> ubu 11.04 (natty) ships boost 1.42, so yes.
>  http://packages.ubuntu.com/libboost

1.38+ should be fine for libLAS, although I haven't actually tested anything less than 1.44 in the past year or so…

> 
> (fwiw gpsdrive is one of mine)
> 
> 
>> 2) build fail -  any idea about this error ??  (see bottom)
>> 
>> ---
>> 
>> [ 22%] Building CXX object
>> src/CMakeFiles/las.dir/transform.cpp.o
>> In file included from
>> /usr/include/gdal/ogr_srs_api.h:34:0,
>>                  from
>> /usr/include/gdal/ogr_spatialref.h:34,
>>                  from
>> /tmp/build_libLAS/libLAS-1.7.0b2/src/transform.cpp:67:
>> /usr/include/gdal/ogr_core.h: In member function ‘int
>> OGREnvelope::IsInit() const’:
>> /usr/include/gdal/ogr_core.h:59:42: warning: comparing
>> floating point
>> with == or != is unsafe
>> /usr/include/gdal/ogr_core.h:59:55: warning: comparing
>> floating point
>> with == or != is unsafe
>> /usr/include/gdal/ogr_core.h:59:68: warning: comparing
>> floating point
>> with == or != is unsafe
>> /usr/include/gdal/ogr_core.h:59:81: warning: comparing
>> floating point
>> with == or != is unsafe
> 
> Since it's a header file I wildly guess that's referring to an embedded
> version number? if so, nice that gcc is warming about such things but just
> a false positive.

This is what GDAL looks like when you try to compile it with full warnings.  I think these can be safely ignored for now.  libLAS is strict in compiling with full warnings on, but we haven't tried to impose our strictness back to GDAL in that regard.  libLAS has a fork of some GDAL code for coordinate system operations in it because of the external/internal/hide-symbols stuff.  In the end it was much simpler to just copy the code into GDAL than to hope to be able to link to it.

> 
>> [ 45%] Building CXX object
>> src/CMakeFiles/las.dir/tifvsi.cpp.o
>> make[2]: *** No rule to make target `/lib.so', needed by
>> `bin/Release/liblas.so.2.0.0'.  Stop.
>> make[1]: *** [src/CMakeFiles/las.dir/all] Error 2
>> make: *** [all] Error 2
>> make[2]: *** No rule to make target `/lib.so', needed by
>> `bin/Release/liblas.so.2.0.0'.  Stop.
>> make[1]: *** [src/CMakeFiles/las.dir/all] Error 2
>> make: *** [all] Error 2
> 
> it would seem that a variable in CMakeLists.txt is being left empty so
> $PATHNAME/lib$LIBNAME.so collapses to ""/lib"".so. Error in cmake control
> file or cmake module Find file probably.

This seems confusing.  Are you still having trouble with this? Catch me on IRC?

Howard


More information about the Osgeolive mailing list