[Liblas-devel] Using CMake with gdal and GeoTIFF -> Visual Studio Build Error

Hamish hamish_b at yahoo.com
Thu Mar 11 01:31:21 EST 2010


Dan wrote:
> I have successfully built all the components (other
> than libLAS) and used the CMake files to create Visual
> Studio 2009 project files. All went well in the CMake
> generation with no error or warning. When I go to build from
> the generated VS project files, Las2ogr and las_c.dll are
> failing to build.

Howard:
> I believe this is a liblas cmake configuration issue where
> libtiff must be included as a library to link if GDAL is
> also linked.  GDAL unfortunately has the ability to
> internally or externally link libtiff, but there is no way
> to tell which it did as an outside user.  In your case
> (MapServer buildkit, right?), I think the linkage is
> external, so we need to have -ltiff included in the libs as
> well.  Hopefully, Mateusz can give us the bits of cmake
> script that would do that.  

While not a nice inline solution, could Dependency Walker be
used to at least manually determine what this particular GDAL
is and is not trying to link to?

http://www.dependencywalker.com


regards,
Hamish



      


More information about the Liblas-devel mailing list