[Gdal-dev] Instructions for Cygwin compile of GDAL
Norman Vine
nhv at cape.com
Fri Apr 13 18:52:25 EDT 2007
Roger André writes:
>
> Sorry, didn't work. See results below.
> Roger at obelix /cygdrive/c/gdal/gdal-1.4.1 $ ./configure --disable-shared;
make; make install
> Roger at obelix /cygdrive/c/gdal/gdal-1.4.1 $ python Python 2.5 (r25:51908,
Mar 13 2007, 08:13:14) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd >
0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more
information.
> >>> import gdal
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.5/site-packages/gdal.py", line 191, in <module>
> import _gdal
> ImportError: No module named _gdal <======== Boom!
> >>>
Hmm I believe my example was
./configure --with-libtool=no --with-python
Note I installed Cygwin on a clean machine just to test
if GDAL still worked in Cygwin
Good Luck
Norman
$ python
Python 2.5 (r25:51908, Mar 13 2007, 08:13:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdal
>>> gdal.__file__
'/usr/lib/python2.5/site-packages/gdal.pyc'
>>> a = dir(gdal)
>>> a[:4]
['AllRegister', 'AutoCreateWarpedVRT', 'Band', 'CE_Debug']
>>>
More information about the Gdal-dev
mailing list