[Gdal-dev] Re: problems with "GDAL + Java SWIG" set up on Windows XP

Daniele Romagnoli dany.geotools at gmail.com
Wed Jun 21 14:02:19 EDT 2006


Frank,

Thank you for the suggested tip.

I chose 2005 because it is free ^_^

Then, I will look for the 7.1 version. Thank you very much.

Regards,
Daniele



On 6/21/06, Frank Warmerdam < warmerdam at pobox.com> wrote:
>
> Daniele Romagnoli wrote:
> > Ok... I have solved the last error but a new error occurs:
> >
> > /bin/sh.exe /cygdrive/c/gdal2/libtool --mode=compile g++ -fPIC -Wall
> > -O2   -I/cygdrive/c/gdal2/port -I/cygdrive/c/gdal2/gcore
> > -I/cygdrive/c/gdal2/alg -I/cygdrive/c/gdal2/ogr
> > -I/cygdrive/c/gdal2/ogr/ogrsf_frmts -I/usr/j2sdk1.4.2_08/include
> > -I/usr/j2sdk1.4.2_08/include/win32 -c osr_wrap.cpp
> >  g++ -fPIC -Wall -O2 -I/cygdrive/c/gdal2/port -I/cygdrive/c/gdal2/gcore
> > -I/cygdrive/c/gdal2/alg -I/cygdrive/c/gdal2/ogr
> > -I/cygdrive/c/gdal2/ogr/ogrsf_frmts -I/usr/j2sdk1.4.2_08/include
> > -I/usr/j2sdk1.4.2_08/include/win32 -c osr_wrap.cpp  -DPIC -o
> > .libs/osr_wrap.o
> > osr_wrap.cpp:1: warning: -fPIC ignored for target (all code is position
> > independent)
> >  g++ -fPIC -Wall -O2 -I/cygdrive/c/gdal2/port -I/cygdrive/c/gdal2/gcore
> > -I/cygdrive/c/gdal2/alg -I/cygdrive/c/gdal2/ogr
> > -I/cygdrive/c/gdal2/ogr/ogrsf_frmts -I/usr/j2sdk1.4.2_08/include
> > -I/usr/j2sdk1.4.2_08/include/win32 -c osr_wrap.cpp -o osr_wrap.o
> >  >/dev/null 2>&1
> > /bin/sh.exe /cygdrive/c/gdal2/libtool --mode=link       g++ -shared
> > /cygdrive/c/gdal2/libgdal.la osr_wrap.o -o libosrjni.so
> > g++ -shared osr_wrap.o -o libosrjni.so.exe
> > /cygdrive/c/gdal2/.libs/libgdal.a /usr/lib/libjasper.dll.a
> > -L/usr/X11R6/lib /usr/lib/libtiff.dll.a /usr/lib/libjpeg.dll.a -lpng -lz
>
> > cp ./.libs/*.so ./
> > cp: cannot stat `./.libs/*.so': No such file or directory
> > make: *** [build] Error 1
> >
> > However, I see that in the directory there are 4 files *.so.exe
> >
> > Maybe can I rename them from *.so.exe to *.so and then move them to the
> > /.libs folder?
>
> Daniele,
>
> I haven't tried building any of the swig bindings for a cygwin build
> of GDAL, and I'm not sure how practical it will be.  You are likely to
> have to do quite a bit of fiddling to get it working.
>
> I would generally encourage using visual studio as you started out doing.
> I haven't personally used anything newer than visual studio 7.1 (ie. 2003)
> so if you have that available you might want to use it instead of the
> newer visual studio 8/2005.
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam<http://pobox.com/%7Ewarmerdam>
> and watch the world go round - Rush    | President OSGF, http://osgeo.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060621/facbd976/attachment.html


More information about the Gdal-dev mailing list