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

Mateusz Loskot mateusz at loskot.net
Wed Mar 10 16:27:31 EST 2010


Howard Butler wrote:
> On Mar 10, 2010, at 10:46 AM, Bellinski, Dan wrote:
> 
>> Hey Mateusz,
>> 
>> I am using your CMake build with the latest libLAS code and running
>> into a build error. I am linking libLAS with gdal 1.7.1 trunk and
>> GeoTIFF 1.2.5 (linked with libTIFF 3.9.2). 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. The problematic output is listed below.
>> 
>> I am unsure where to go with troubleshooting.. do you have any idea
>> what the problem may be? I made sure my libraries were correct in
>> CMake but maybe I am missing something? I have the following
>> library/include variables set up and building in release mode:
>> 
>> [...]
>
> Dan,
> 
> 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.

Dan, Hobu,

I'll try to find out how to fix it.
I remember I tried to test all possible combinations of dependencies,
but some cases might have got missing.

Best regards,
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the Liblas-devel mailing list