<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>gdal 1.6 build on Windows problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">hi list,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I tried to build gdal 1.6 on Windows XP using MS VC++ 6</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> and Python 2.5.2</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I had to ma</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">k</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">e two changes for it to pass</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">VC6</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">compiler:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">(1) Replace “long long” with “__int64” in gdal-1.6.0\frmts\gtiff\libtiff\tif_ojpeg.c</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">(2) edit gdal-1.6.0\frmts\grib\degrib18\degrib\fileendian.h so that 4 #include are outside of the extern "C"</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">(3)</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">and</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">HDF4.</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">2r2</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> has many</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">compiling</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">error</FONT><FONT SIZE=2 FACE="Courier New">s</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">.</FONT> <FONT SIZE=2 FACE="Courier New">I had to use</FONT> <FONT SIZE=2 FACE="Courier New">older version</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">HDF41r5</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">then</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">edited nmake.opt to change:</FONT><FONT SIZE=2 FACE="Courier New"> GDAL_HOME, PYDIR</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">,</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">HDF4/5, PROJ, HAVE_NUMPY</FONT><FONT SIZE=2 FACE="Courier New">.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">gdal 1.6</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> seems to make ok.</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">However when I use python</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">“</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">import</FONT> <FONT SIZE=2 FACE="Courier New">gdal</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">”</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"></FONT> <FONT SIZE=2 FACE="Courier New">It said:</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">“</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">ImportError: No module named _gdal</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">”</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">.</FONT> <FONT SIZE=2 FACE="Courier New">But there is _</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">gdal.dll</FONT> <FONT SIZE=2 FACE="Courier New">in</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">local</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">_</FONT><FONT SIZE=2 FACE="Courier New">inst</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">a</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">ll\pymod\</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">Is this gdal python binding pr</FONT><FONT SIZE=2 FACE="Courier New">oblem?</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New"></FONT></SPAN><SPAN LANG="en-ca"> </SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">same</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">import</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">error occurred</FONT> <FONT SIZE=2 FACE="Courier New">to</FONT> <FONT SIZE=2 FACE="Courier New">others like</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">_gtk.dll</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">,</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">_g</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">v</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">.dll</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">,</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">_gtkmissing.dll</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">.</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN><A NAME=""><SPAN LANG="en-ca"><FONT FACE="Courier New">thanks,</FONT></SPAN></A></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT FACE="Courier New">Shawn</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
</BODY>
</HTML>