Hi all,

I'm trying to build GDAL trunk on Windows XP SP3 using dependencies
from OSGeo4W with
MS VS Express 2008 SP1 (MS Platform SDK for Windows Server 2003 R2
installed too).
I install all necessary packages from OSGeo4W, checkout latest GDAL
sources (r23115) then
edit nmake.opt file and specify paths for dependensies libs.

When I run nmake /f makefile.vc in Visual Studio command prompt I get
next errors:

D:\devel\gdal\trunk>nmake /f makefile.vc

Microsoft (R) Program Maintenance Utility   Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.

        cd port
        nmake /nologo /f makefile.vc
        cl  /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_D
EPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /w
d4018 /wd4389 -I..\port -I..\ogr -I..\gcore  -I..\alg -I..\ogr\ogrsf_frmts -I..\
frmts\zlib -DHAVE_LIBZ -DHAVE_CURL  -IC:\OSGeo4W/include/curl -DOGR_ENABLED  /c
cpl_conv.cpp
cpl_conv.cpp
d:\devel\gdal\trunk\port\cpl_port.h(189) : warning C4005: 'VSI_LARGE_API_SUPPORT
ED' : macro redefinition
        d:\devel\gdal\trunk\port\cpl_config.h(185) : see previous definition of
'VSI_LARGE_API_SUPPORTED'
cpl_conv.cpp(1271) : error C3861: 'snprintf': identifier not found
cpl_conv.cpp(2377) : error C2079: 'sStatBuf' uses undefined struct 'stat64'
cpl_conv.cpp(2379) : error C2664: 'VSIStatL' : cannot convert parameter 2 from '
int *' to 'VSIStatBufL *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-
style cast or function-style cast
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK for Windows
 Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
Stop.

In same time I can compile GDAL 1.8.1 using same paths in nmake.opt
file without any
errors. Any ideas?

Thanks
-- 
Alexander Bruy
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to