Ahh, well that may be the crux of the problem. I ran ./configure with no options, since I was unsure of what to set. From the message that came up during the compile process, it appears I have png, geotiff, jpg and OGR support as is. In the future I might look into JPEG2000 support, but for now, this appeared sufficient.
<br><br>Regarding Python support, I don't know what the difference is between SWIG and traditional Python support. I would like to be able to run the utilities that come with GDAL, such as "gdal_merge.py". It appears that in orger to do this I need to be able to import the gdal module. More than that I'm afraid I don't know.
<br><br>I did find yesterday that there has been some discussion about how Cygwin doesn't use shared libraries the way other Unix distros do, and that there is a cygMakefile in the gdal/pymod directory. However, it appears to be old (refers to Python
2.1), and I have no idea how to use it as part of the compile process.<br><br>Sorry I can't answer better, if you can point me to specific things to look for, I'll be glad to do so.<br><br>Thanks for the help,<br>
<br>Roger<br>--<br><br><div><span class="gmail_quote">On 4/9/07, <b class="gmail_sendername">Mateusz Loskot</b> <<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Roger André wrote:<br>> I just finished compiling and installing gdal from source in Cygwin. The<br>> utilities like "gdal_translate" and "gdalinfo" seem to be working fne, but<br>> I'm, having trouble with the Python API. For example, when I try to run
<br>> "gdal_merge.py", I get the following error:<br>><br>> $ gdal_merge.py<br>> Traceback (most recent call last):<br>> File "/usr/local/bin/gdal_merge.py", line 110, in <module>
<br>> import gdal<br>> File "/usr/lib/python2.5/site-packages/gdal.py", line 191, in <module><br>> import _gdal<br>> ImportError: No module named _gdal<br>><br>> When I trace this a bit further online, I see references to needing a "
<br>> gdal.so", but I don't know where it should be, or how to get it.<br>><br>> Can someone advise me?<br><br>Roger,<br><br>Could you tell us how did you configured GDAL and what Python bindings do<br>you want to use: traditional or SWIG-based?
<br>Simply, paste the ./configure command with all options you used.<br><br>Cheers<br>--<br>Mateusz Loskot<br><a href="http://mateusz.loskot.net">http://mateusz.loskot.net</a><br></blockquote></div><br>