[geos-devel] python.i doesn't exist... why?
Charlie Savage
cfis at savagexi.com
Mon Jun 5 23:21:17 EDT 2006
Hi Pablo,
Sorry not to respond sooner - I just got back from vacation.
What python.i is used for is to generate geos_wrap.cxx using SWIG. If
you look, you'll see that file exists. So theory you could get by
without python.i and just run the part of the build script that
builds/installs the extensions.
However, there unfortunately there is a problem with that because the
geos_wrap.cxx file includes pointers to a method called readHex which
does not actually exist in geos 2.2.2 (well, it does in my version but
no release version).
So I'd recommend:
Create python.i in your swig/python directory. Then put this code into it:
%template(vector_GeometryP) std::vector<geos::Geometry *>;
%template(vector_LineStringP) std::vector<geos::LineString *>;
%template(vector_PolygonP) std::vector<geos::Polygon *>;
Then make sure you have swig 1.3.29 installed. Then try the build
script again. You may also want to delete geos_wrap.cxx before you start.
Hope this helps,
Charlie
Pablo Souza Grigoletti wrote:
> Hi people,
>
> As nobody answers my question... I want to know if:
>
> - Nobody knows the answer?
> - Nobody wants to answer?
> - Or nobody undestands me?
>
> Best regards
> Pablo
>
>> Hello people,
>>
>> My name is Pablo, I'm Brazilian.
>> I'm trying to compile a Python version of GEOS.
>>
>> To do this I'm using:
>>
>> - geos-2.2.2
>> - swig-1.3.29
>> - Debian GNU/Linux
>>
>> I did ./configure, make, make install... no problems in this part.
>> So, geos was installed OK.
>>
>> So, I had tu use the swig (it's already installed) to do the Python
>> version. But when I used it, I need the file python.i.
>>
>> I want to know why the file ruby.i exists and the python.i doesn't?
>>
>> The following lines on geos.i include this file (python.i):
>>
>> #ifdef SWIGPYTHON
>> %include ../python/python.i
>> #endif
>>
>> What can I do?
>> Thanks,
>> Sorry by my terrible English.
>>
>> Pablo
>
>
> _______________________________________________________
> Navegue com o Yahoo! Acesso Grátis, assista aos jogos do Brasil na Copa e ganhe prêmios de hora em hora!
> http://br.yahoo.com/artilheirodacopa/
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/geos-devel/attachments/20060605/dcdef7ee/smime.bin
More information about the geos-devel
mailing list