[Gdal-dev] Trying to build on Windows

Chapman, Martin MChapman at sanz.com
Tue Nov 2 17:04:53 EST 2004


Adam,

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
www.remotesensing.org/proj.

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.

Martin

-----Original Message-----
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



Dear List,

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
makefile.vc
&&
 cd ..
        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?

Cheers,

Adam
_______________________________________________
Gdal-dev mailing list
Gdal-dev at xserve.flids.com
http://xserve.flids.com/mailman/listinfo/gdal-dev



More information about the Gdal-dev mailing list