[Gdal-dev] Trying to build on Windows
MChapman at sanz.com
Tue Nov 2 17:04:53 EST 2004
I can usually build on windows xp just fine with hfa (erdas imagine).
Here are a few comments:
1. If you have more than one instance of vc++, make sure you run the
vcvars.bat file for vc7 .net.
2. Make sure that you are building gdal in c:\gdal.
3. Make sure the GDAL_HOME = "c:\gdal" in the nmake.opt file.
4. Make sure you have downloaded and compiled Proj4
If you have done all of that and it still fails, you can send me your
gdal.zip file that you downloaded and I will see if it compiles on my
box. Actually, send me an ftp link to the zip if you can, otherwise, I
will send you my directory structure.
From: Ryan, Adam [mailto:ARyan at co.linn.or.us]
Sent: Monday, November 01, 2004 10:20 AM
To: gdal-dev at xserve.flids.com
Subject: [Gdal-dev] Trying to build on Windows
I'm trying to build gdal 1.2.3 on a Windows XP box. After editing the
nmake.opt file, I ran 'nmake /f makefile.vc'. The output shows that it
cruises through the various frmts directories until it gets to the
frmts\hfa directory, at which point I get this:
C:\Downloads\gdal\gdal-1.2.3\frmts>cd hfa && nmake /NOLOGO /f
cl /nologo /Ox /MD -I..\..\port -I..\..\ogr -I..\..\gcore
-I..\..\alg /c hfadataset.cpp hfadataset.cpp
hfadataset.cpp(721) : error C3861: 'snprintf': identifier not found,
even with a rgument-dependent lookup
hfadataset.cpp(728) : error C3861: 'snprintf': identifier not found,
even with a rgument-dependent lookup NMAKE : fatal error U1077: 'cl' :
return code '0x2' Stop. ...
At this point, every subsequent cd fails (cd gtiff, cd sdts, etc.) and
there is a long list of "The system cannot find specified path."
Can anyone suggest by this what I've done wrong?
Gdal-dev mailing list
Gdal-dev at xserve.flids.com
More information about the Gdal-dev