[Liblas-devel] libLAS SRS Reprojection Support and Compiling From Source

Dan Bellinski bellindj at gmail.com
Fri Feb 26 16:10:50 EST 2010


Hi Howard,

My goal in using libLAS is to reproject a LAS 1.2 file onto another
SRS (State plane to Lat/Long). Further, I am using it in a Java
program so I would like to run the conversion from the command line so
it can run within my Java code. Will this be possible with either the
GeoTIFF linking or GDAL linking support? If this will work, could you
offer any insight to the below compile error I am receiving?

I am currently trying to compile libLAS from the current source (I
have obtained a clone from the Mercury server). I am compiling it
against GDAL (built from source) and GEOTiff (obtained from OSGeo4W).
I am using VC 2008, running the nmake /f makefile.vc command and am
running into the error:

c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' :
macro redefinition
        c:\gdal-1.6.2\port\cpl_config.h(27) : see previous definition
of 'STDC_HEADERS'
../include\liblas/lasformat.hpp(111) : warning C4244: '=' : conversion
from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of
data
lasheader.cpp(714) : warning C4244: 'argument' : conversion from
'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
lasheader.cpp(717) : warning C4244: 'argument' : conversion from
'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
lasheader.cpp(720) : warning C4244: 'argument' : conversion from
'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
lasheader.cpp(723) : warning C4244: 'argument' : conversion from
'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
NMAKE : fatal error U1073: don't know how to make 'lasfile.obj'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\nmake.exe"' : return code '0x2'

I believe I have the proper libraries linked in nmake.opt for GDAL and
GeoTIFF. Have you seen this error before?

Thanks a lot for your help!
Dan


More information about the Liblas-devel mailing list