Dan,

I have been doing a lot of development of liblas lately, but I haven't been 
keeping the makefiles up to date.  Edit makefile.vc to remove references to 
lasfile.obj, which is no longer part of liblas to get things to compile.  You 
might get stuck again, and might have to add lasformat.obj as well.

Your plan to use liblas in this way is sound, though thar be a few dragons 
along the way.  The GeoTIFF of OSGeo4W might be too old, but I don't remember, 
and libLAS trunk pretty much requires GDAL trunk, which isn't available via 
OSGeo4W.  These are all things you can compile yourself given some 
determination, but it might be challenging.  I would start with the OSGeo 
Buildkit for a quick way to get most of GDAL's dependencies going.

<http://download.osgeo.org/buildkit/> (grab the latest file date)

I will fix the warnings as soon as I get a moment to do so, thanks for the 
report.

Howard

On Feb 26, 2010, at 3:10 PM, Dan Bellinski wrote:

> 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
> _______________________________________________
> Liblas-devel mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/liblas-devel

_______________________________________________
Liblas-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/liblas-devel

Reply via email to