[Gdal-dev] Instructions for Cygwin compile of GDAL

Roger André randre at gmail.com
Mon Apr 16 17:55:34 EDT 2007


The "--with-python" options does the trick.  Gonna have to try it from
scratch with a fresh Cygwin install and GDAL source, but that seems to have
done it.
--

On 4/13/07, Roger André <randre at gmail.com> wrote:
>
> The --with-python option is one I hadn't seen before.
>
> I'll try it again, and with the --with-libtool=no option, since I'd like
> it to finish in the next 45 minutes.
>
> Thanks,
>
> Roger
> --
>
>
> On 4/13/07, Norman Vine <nhv at cape.com> wrote:
> >
> > 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']
> > >>>
> >
> >
> > _______________________________________________
> > Gdal-dev mailing list
> > Gdal-dev at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/gdal-dev
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070416/ee12c1f8/attachment.html


More information about the Gdal-dev mailing list