[Gdal-dev] Python modules fail to compile on MAC OS X

Lorenzo Moretti lorenzo.moretti at bologna.enea.it
Tue Sep 28 12:00:58 EDT 2004


Alessandro wrote:

>just for the record.
>
>this is not OS X specific, all unix variants (that i know of) have their
>temporary libraries inside ./.libs and the problem with the setup.py script
>is a plain and simple typo (that happens to work if you have an installed
>copy of gdal on your system).
>
>Frank, please apply the attached 01 patch (against current cvs).
>
>>  row 103
>>  - ("lib", ['libgdal.%s.so' % soversion]),
>>  + ("lib", ['libgdal.%s.dylib' % soversion]),
>
>this is more annoying. a special case may be in order.
>
>the second patch attached works on linux. does it fix the "dylib" problem on
>OS X?
>
>>  This patch does not work in 1.2.2 or other ...
>
>Frank, the attached 03 patch should fix the 1.2.2 breakage. please apply.
>
>cheers,
>alessandro
>
>Attachment converted: APPLI:01-libs-fix.diff (TEXT/R*ch) (0035CEC6)
>Attachment converted: APPLI:02-macosx-fix.diff (TEXT/R*ch) (0035CEC7)
>Attachment converted: APPLI:03-1.2.2-fix.diff (TEXT/R*ch) (0035CEC8)


Your PATCH works in all GDAL versions. Very good.

Now I have _gdalmodule.so with other files in my site-packages folder.

Bye Alessandro

-- 
________________________________________________________________________
||       Lorenzo Moretti        e-mail: lorenzo.moretti at bologna.enea.it     
||/|/|   ENEA prot/idr          Web: http://wwwamb.bologna.enea.it/    
||   |   via Don Fiammelli, 2   FTP: ftp://ftpamb.bologna.enea.it/ (res.)
~~~~~~   40128 BOLOGNA - ITALY  Ph: +39-0516098086  Fax: +39-0516098131
			Download GRASS for MAC OS X:    
	           http://wwwamb.bologna.enea.it/forgrass/
________________________________________________________________________



More information about the Gdal-dev mailing list