<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Hey Mateusz,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>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.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>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:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>GDAL_INCLUDE_DIR: C:/gdal-1.7.1/port;C:/gdal-1.7.1/frmts/gtiff/libgeotiff;C:/gdal-1.7.1/frmts/gtiff/libtiff;C:/gdal-1.7.1/ogr;C:/gdal-1.7.1/gcore;C:/usr/include<o:p></o:p></p>

<p class=MsoNormal>GDAL_LIBRARY: C:/gdal-1.7.1/gdal_i.lib<o:p></o:p></p>

<p class=MsoNormal>GEOTIFF_INCLUDE_DIR: C:/usr/include<o:p></o:p></p>

<p class=MsoNormal>GEOTIFF_LIBRARY: C:/usr/lib/geotiff_i.lib<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Any assistance you could lend would be very appreciated. Thanks
a lot for your help!<o:p></o:p></p>

<p class=MsoNormal>Dan<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;------ Build started: Project: las_c,
Configuration: Release Win32 ------<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;------ Build started: Project: las2ogr,
Configuration: Release Win32 ------<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;Compiling...<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;Compiling...<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las_c_api.cpp<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las2ogr.cpp<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;C:\libLAS\src\..\include\liblas/lasformat.hpp(111)
: warning C4244: '=' : conversion from 'const liblas::uint32_t' to
'liblas::uint16_t', possible loss of data<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;..\..\libLAS\src\las_c_api.cpp(210) : warning
C4297: 'OpenInput' : function assumed not to throw an exception but does<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The
function is extern &quot;C&quot; and /EHc was specified<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;..\..\libLAS\src\las_c_api.cpp(746) : warning
C4244: '=' : conversion from 'unsigned int' to 'liblas::uint16_t', possible
loss of data<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;..\..\libLAS\src\las_c_api.cpp(2073) : warning
C4800: 'liblas::uint8_t' : forcing value to bool 'true' or 'false' (performance
warning)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;..\..\libLAS\src\las_c_api.cpp(2074) : warning
C4800: 'liblas::uint8_t' : forcing value to bool 'true' or 'false' (performance
warning)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;..\..\libLAS\src\las_c_api.cpp(2138) : warning
C4800: 'liblas::uint8_t' : forcing value to bool 'true' or 'false' (performance
warning)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;..\..\libLAS\src\las_c_api.cpp(2162) : warning
C4800: 'liblas::uint8_t' : forcing value to bool 'true' or 'false' (performance
warning)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;Linking...<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;&nbsp;&nbsp; Creating library
C:\liblas-Built\bin\Release\Release\las2ogr.lib and object
C:\liblas-Built\bin\Release\Release\las2ogr.exp<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFGetField referenced in function
_GTIFWktFromMemBuf<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFWriteDirectory referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFWriteCheck referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFIsTiled referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFWriteEncodedStrip referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFSetField referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las.lib(tifvsi.obj) : error LNK2019: unresolved
external symbol _TIFFError referenced in function &quot;struct tiff * __cdecl
VSI_TIFFOpen(char const *,char const *)&quot;
(?VSI_TIFFOpen@@YAPAUtiff@@PBD0@Z)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;C:\liblas-Built\bin\Release\Release\las2ogr.exe
: fatal error LNK1120: 7 unresolved externals<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;Build log was saved at
&quot;file://c:\liblas-Built\apps\las2ogr.dir\Release\BuildLog.htm&quot;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>4&gt;las2ogr - 8 error(s), 0 warning(s)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;Linking...<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;&nbsp;&nbsp; Creating library
C:\liblas-Built\bin\Release\Release\las_c.lib and object
C:\liblas-Built\bin\Release\Release\las_c.exp<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol __imp__stricmp referenced in function &quot;void
__cdecl WKTMassageDatum(char * *)&quot; (?WKTMassageDatum@@YAXPAPAD@Z)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_citation.obj) : error LNK2001:
unresolved external symbol __imp__stricmp<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol __imp__strnicmp referenced in function
_GTIFGetOGISDefn<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_citation.obj) : error LNK2001:
unresolved external symbol __imp__strnicmp<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFGetField referenced in function _GTIFWktFromMemBuf<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFWriteDirectory referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFWriteCheck referenced in function _GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFIsTiled referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFWriteEncodedStrip referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(gt_wkt_srs.obj) : error LNK2019:
unresolved external symbol _TIFFSetField referenced in function
_GTIFMemBufFromWkt<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las.lib(tifvsi.obj) : error LNK2019: unresolved
external symbol _TIFFError referenced in function &quot;struct tiff * __cdecl
VSI_TIFFOpen(char const *,char const *)&quot;
(?VSI_TIFFOpen@@YAPAUtiff@@PBD0@Z)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;C:\liblas-Built\bin\Release\Release\las_c.dll :
fatal error LNK1120: 9 unresolved externals<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;Build log was saved at
&quot;file://c:\liblas-Built\src\las_c.dir\Release\BuildLog.htm&quot;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Courier New"'>3&gt;las_c - 12 error(s), 7 warning(s)</span><o:p></o:p></p>

</div>

</body>

</html>