[gdal-dev] gdal 1.6 build on Windows problem
Gong, Shawn (Contractor)
Shawn.Gong at drdc-rddc.gc.ca
Wed Dec 17 10:22:29 EST 2008
hi list,
I tried to build gdal 1.6 on Windows XP using MS VC++ 6 and Python
2.5.2.
I had to make two changes for it to pass VC6 compiler:
(1) Replace "long long" with "__int64" in
gdal-1.6.0\frmts\gtiff\libtiff\tif_ojpeg.c
(2) edit gdal-1.6.0\frmts\grib\degrib18\degrib\fileendian.h so that 4
#include are outside of the extern "C"
(3) and HDF4.2r2 has many compiling errors. I had to use older version
HDF41r5
I then edited nmake.opt to change: GDAL_HOME, PYDIR, HDF4/5, PROJ,
HAVE_NUMPY.
gdal 1.6 seems to make ok. However when I use python "import gdal" It
said: "ImportError: No module named _gdal". But there is _gdal.dll in
local_install\pymod\
Is this gdal python binding problem?
same import error occurred to others like _gtk.dll, _gv.dll,
_gtkmissing.dll.
thanks,
Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081217/258b0f37/attachment.html
More information about the gdal-dev
mailing list