Wes,

If you pull down the latest, I think I have fixed this issue (along with 
cleaning up many warnings).

Howard

On Mar 16, 2010, at 1:32 AM, Wes Toews wrote:

> hi, I obtained today the GDAL and Geotiff libraries from OSGeo4w, and am 
> trying to link in the spatial referencing component but of course it bails.  
> The liblas source was obtained from mercurial today as well, so everything is 
> as current as it can be (fingers crossed?)
> 
> System is Windows XP, 32 bit. Compiling VS2008 from command line.
> 
> issuing "cmake -DWITH_GDAL=OFF" then "nmake" creates a successful build
> issuing "cmake -DWITH_GDAL=ON -DWITH_GEOTIFF=ON" creates a makefile 
> succesfully but bails when issuing the nmake build command.
> 
> The cmake environment variables I've set as such, if you need any more let me 
> know.  The nmake feed is copied below.
> 
> //Path to a file GDAL_INCLUDE_DIR-NOTFOUND
> GDAL_INCLUDE_DIR:PATH=C:/OSGeo4w/apps/gdal-16/include
> 
> //Path to a library GDAL_LIBRARY-NOTFOUND
> GDAL_LIBRARY:FILEPATH=C:/OSGeo4w/apps/gdal-16/lib/gdal_i.lib
> 
> //Path to a file.
> GEOTIFF_INCLUDE_DIR:PATH=C:/OSGeo4w/include
> 
> //Path to a library.
> GEOTIFF_LIBRARY:FILEPATH=C:/OSGeo4w/lib/geotiff_i.lib
> 
> //Path to a file PATH=TIFF_INCLUDE_DIR-NOTFOUND
> TIFF_INCLUDE_DIR:PATH=C:/OSGeo4w/include
> 
> //Path to a library TIFF_LIBRARY-NOTFOUND
> TIFF_LIBRARY:FILEPATH=C:/OSGeo4w/lib/libtiff_i.lib
> 
> ...and this is the nmake feed, any ideas?
> 
> C:\Liblas\main>nmake 
> 
> Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> Scanning dependencies of target las
> [  3%] Building CXX object src/CMakeFiles/las.dir/lasclassification.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> lasclassification.cpp
> [  6%] Building CXX object src/CMakeFiles/las.dir/lascolor.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> lascolor.cpp
> [  9%] Building CXX object src/CMakeFiles/las.dir/laserror.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> laserror.cpp
> [ 12%] Building CXX object src/CMakeFiles/las.dir/lasformat.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> lasformat.cpp
> C:\Liblas\main\include\liblas/lasformat.hpp(111) : warning C4244: '=' : 
> conversi
> on from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\lasformat.cpp(68) : warning C4244: 'initializing' : 
> conversio
> n from 'liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\lasformat.cpp(83) : warning C4244: 'initializing' : 
> conversio
> n from 'liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> [ 15%] Building CXX object src/CMakeFiles/las.dir/lasheader.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> lasheader.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\include\liblas/lasformat.hpp(111) : warning C4244: '=' : 
> conversi
> on from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\lasheader.cpp(714) : warning C4244: 'argument' : 
> conversion f
> rom 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\lasheader.cpp(717) : warning C4244: 'argument' : 
> conversion f
> rom 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\lasheader.cpp(720) : warning C4244: 'argument' : 
> conversion f
> rom 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\lasheader.cpp(723) : warning C4244: 'argument' : 
> conversion f
> rom 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> [ 18%] Building CXX object src/CMakeFiles/las.dir/laspoint.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> laspoint.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> [ 21%] Building CXX object src/CMakeFiles/las.dir/lasreader.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> lasreader.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\include\liblas/lasformat.hpp(111) : warning C4244: '=' : 
> conversi
> on from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\lasreader.cpp(104) : warning C4101: 'e' : unreferenced 
> local
> variable
> C:\Liblas\main\src\lasreader.cpp(116) : warning C4101: 'e' : unreferenced 
> local
> variable
> [ 25%] Building CXX object src/CMakeFiles/las.dir/lasspatialreference.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> lasspatialreference.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\src\lasspatialreference.cpp(371) : warning C4100: 'mode_flag' 
> : u
> nreferenced formal parameter
> c:\liblas\main\src\lasspatialreference.cpp(552) : warning C4702: unreachable 
> cod
> e
> [ 28%] Building CXX object src/CMakeFiles/las.dir/lasvariablerecord.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> lasvariablerecord.cpp
> [ 31%] Building CXX object src/CMakeFiles/las.dir/laswriter.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> laswriter.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> [ 34%] Building CXX object src/CMakeFiles/las.dir/detail/reader/header.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> header.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> [ 37%] Building CXX object src/CMakeFiles/las.dir/detail/reader/point.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> point.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\include\liblas/lasformat.hpp(111) : warning C4244: '=' : 
> conversi
> on from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> [ 40%] Building CXX object src/CMakeFiles/las.dir/detail/reader/reader.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> reader.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\include\liblas/lasformat.hpp(111) : warning C4244: '=' : 
> conversi
> on from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> [ 43%] Building CXX object src/CMakeFiles/las.dir/detail/writer/base.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> base.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> [ 46%] Building CXX object src/CMakeFiles/las.dir/detail/writer/header.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> header.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> [ 50%] Building CXX object src/CMakeFiles/las.dir/detail/writer/point.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> point.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\include\liblas/lasformat.hpp(111) : warning C4244: '=' : 
> conversi
> on from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> [ 53%] Building CXX object src/CMakeFiles/las.dir/detail/writer/writer.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> writer.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\src\detail\writer\writer.cpp(193) : warning C4100: 'header' : 
> unr
> eferenced formal parameter
> [ 56%] Building CXX object src/CMakeFiles/las.dir/gt_citation.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> gt_citation.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> c:\liblas\main\src\gt_citation.cpp(196) : warning C4706: assignment within 
> condi
> tional expression
> [ 59%] Building CXX object src/CMakeFiles/las.dir/gt_wkt_srs.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> gt_wkt_srs.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\src\gt_wkt_srs.cpp(724) : warning C4244: '=' : conversion from 
> 'i
> nt' to 'short', possible loss of data
> C:\Liblas\main\src\gt_wkt_srs.cpp(751) : warning C4244: '=' : conversion from 
> 'i
> nt' to 'short', possible loss of data
> [ 62%] Building CXX object src/CMakeFiles/las.dir/tifvsi.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> tifvsi.cpp
> Linking CXX static library ..\bin\Debug\las.lib
> [ 62%] Built target las
> Scanning dependencies of target las_c
> [ 65%] Building CXX object src/CMakeFiles/las_c.dir/las_c_api.cpp.obj
> cl : Command line warning D9025 : overriding '/W3' with '/W4'
> las_c_api.cpp
> c:\osgeo4w\include\geo_config.h(6) : warning C4005: 'STDC_HEADERS' : macro 
> redef
> inition
>         c:\osgeo4w\apps\gdal-16\include\cpl_config.h(27) : see previous 
> definiti
> on of 'STDC_HEADERS'
> C:\Liblas\main\include\liblas/lasformat.hpp(111) : warning C4244: '=' : 
> conversi
> on from 'const liblas::uint32_t' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\las_c_api.cpp(210) : warning C4297: 'OpenInput' : function 
> as
> sumed not to throw an exception but does
>         The function is extern "C" and /EHc was specified
> C:\Liblas\main\src\las_c_api.cpp(746) : warning C4244: '=' : conversion from 
> 'un
> signed int' to 'liblas::uint16_t', possible loss of data
> C:\Liblas\main\src\las_c_api.cpp(2073) : warning C4800: 'liblas::uint8_t' : 
> forc
> ing value to bool 'true' or 'false' (performance warning)
> C:\Liblas\main\src\las_c_api.cpp(2074) : warning C4800: 'liblas::uint8_t' : 
> forc
> ing value to bool 'true' or 'false' (performance warning)
> C:\Liblas\main\src\las_c_api.cpp(2138) : warning C4800: 'liblas::uint8_t' : 
> forc
> ing value to bool 'true' or 'false' (performance warning)
> C:\Liblas\main\src\las_c_api.cpp(2162) : warning C4800: 'liblas::uint8_t' : 
> forc
> ing value to bool 'true' or 'false' (performance warning)
> Linking CXX shared library ..\bin\Debug\las_c.dll
>    Creating library ..\bin\Debug\las_c.lib and object ..\bin\Debug\las_c.exp
> las.lib(gt_wkt_srs.cpp.obj) : error LNK2019: unresolved external symbol 
> __imp__s
> trnicmp referenced in function _GTIFGetOGISDefn
> las.lib(gt_citation.cpp.obj) : error LNK2001: unresolved external symbol 
> __imp__
> strnicmp
> las.lib(gt_wkt_srs.cpp.obj) : error LNK2019: unresolved external symbol 
> __imp__s
> tricmp referenced in function _GTIFGetOGISDefn
> las.lib(gt_citation.cpp.obj) : error LNK2001: unresolved external symbol 
> __imp__
> stricmp
> ..\bin\Debug\las_c.dll : fatal error LNK1120: 2 unresolved externals
> LINK Pass 1 failed. with 1120
> NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.8\bin\cmake.exe"' : 
> return
>  code '0xffffffff'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
> 9.0\VC\BIN
> \nmake.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
> 9.0\VC\BIN
> \nmake.exe"' : return code '0x2'
> Stop.
> _______________________________________________
> 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