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: GDAL_INCLUDE_DIR: C:/gdal-1.7.1/port;C:/gdal-1.7.1/frmts/gtiff/libgeotiff;C:/gdal-1.7.1/fr mts/gtiff/libtiff;C:/gdal-1.7.1/ogr;C:/gdal-1.7.1/gcore;C:/usr/include GDAL_LIBRARY: C:/gdal-1.7.1/gdal_i.lib GEOTIFF_INCLUDE_DIR: C:/usr/include GEOTIFF_LIBRARY: C:/usr/lib/geotiff_i.lib Any assistance you could lend would be very appreciated. Thanks a lot for your help! Dan 3>------ Build started: Project: las_c, Configuration: Release Win32 ------ 4>------ Build started: Project: las2ogr, Configuration: Release Win32 ------ 3>Compiling... 4>Compiling... 3>las_c_api.cpp 4>las2ogr.cpp 3>C:\libLAS\src\..\include\liblas/lasformat.hpp(111) : warning C4244: '=' : conversion from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data 3>..\..\libLAS\src\las_c_api.cpp(210) : warning C4297: 'OpenInput' : function assumed not to throw an exception but does 3> The function is extern "C" and /EHc was specified 3>..\..\libLAS\src\las_c_api.cpp(746) : warning C4244: '=' : conversion from 'unsigned int' to 'liblas::uint16_t', possible loss of data 3>..\..\libLAS\src\las_c_api.cpp(2073) : warning C4800: 'liblas::uint8_t' : forcing value to bool 'true' or 'false' (performance warning) 3>..\..\libLAS\src\las_c_api.cpp(2074) : warning C4800: 'liblas::uint8_t' : forcing value to bool 'true' or 'false' (performance warning) 3>..\..\libLAS\src\las_c_api.cpp(2138) : warning C4800: 'liblas::uint8_t' : forcing value to bool 'true' or 'false' (performance warning) 3>..\..\libLAS\src\las_c_api.cpp(2162) : warning C4800: 'liblas::uint8_t' : forcing value to bool 'true' or 'false' (performance warning) 4>Linking... 4> Creating library C:\liblas-Built\bin\Release\Release\las2ogr.lib and object C:\liblas-Built\bin\Release\Release\las2ogr.exp 4>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFGetField referenced in function _GTIFWktFromMemBuf 4>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFWriteDirectory referenced in function _GTIFMemBufFromWkt 4>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFWriteCheck referenced in function _GTIFMemBufFromWkt 4>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFIsTiled referenced in function _GTIFMemBufFromWkt 4>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFWriteEncodedStrip referenced in function _GTIFMemBufFromWkt 4>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFSetField referenced in function _GTIFMemBufFromWkt 4>las.lib(tifvsi.obj) : error LNK2019: unresolved external symbol _TIFFError referenced in function "struct tiff * __cdecl VSI_TIFFOpen(char const *,char const *)" (?VSI_TIFFOpen@@YAPAUtiff@@p...@z) 4>C:\liblas-Built\bin\Release\Release\las2ogr.exe : fatal error LNK1120: 7 unresolved externals 4>Build log was saved at "file://c:\liblas-Built\apps\las2ogr.dir\Release\BuildLog.htm" 4>las2ogr - 8 error(s), 0 warning(s) 3>Linking... 3> Creating library C:\liblas-Built\bin\Release\Release\las_c.lib and object C:\liblas-Built\bin\Release\Release\las_c.exp 3>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol __imp__stricmp referenced in function "void __cdecl WKTMassageDatum(char * *)" (?WKTMassageDatum@@yaxpa...@z) 3>las.lib(gt_citation.obj) : error LNK2001: unresolved external symbol __imp__stricmp 3>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol __imp__strnicmp referenced in function _GTIFGetOGISDefn 3>las.lib(gt_citation.obj) : error LNK2001: unresolved external symbol __imp__strnicmp 3>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFGetField referenced in function _GTIFWktFromMemBuf 3>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFWriteDirectory referenced in function _GTIFMemBufFromWkt 3>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFWriteCheck referenced in function _GTIFMemBufFromWkt 3>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFIsTiled referenced in function _GTIFMemBufFromWkt 3>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFWriteEncodedStrip referenced in function _GTIFMemBufFromWkt 3>las.lib(gt_wkt_srs.obj) : error LNK2019: unresolved external symbol _TIFFSetField referenced in function _GTIFMemBufFromWkt 3>las.lib(tifvsi.obj) : error LNK2019: unresolved external symbol _TIFFError referenced in function "struct tiff * __cdecl VSI_TIFFOpen(char const *,char const *)" (?VSI_TIFFOpen@@YAPAUtiff@@p...@z) 3>C:\liblas-Built\bin\Release\Release\las_c.dll : fatal error LNK1120: 9 unresolved externals 3>Build log was saved at "file://c:\liblas-Built\src\las_c.dir\Release\BuildLog.htm" 3>las_c - 12 error(s), 7 warning(s)
_______________________________________________ Liblas-devel mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/liblas-devel
