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

Alessandro Amici alexamici at fastwebnet.it
Fri Sep 24 18:25:12 EDT 2004


Lorenzo,

On Thursday 23 September 2004 16:38, Lorenzo Moretti wrote:
> In OS X the libraries are inside the folder but an invisible folder
> named ".libs" inside gdal source dir.

> row 69
> - LIBRARY_DIRS = ["./libs"]
> + LIBRARY_DIRS = ["./.libs"]

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01-libs-fix.diff
Type: text/x-diff
Size: 426 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040925/71a9fae5/01-libs-fix.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-macosx-fix.diff
Type: text/x-diff
Size: 413 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040925/71a9fae5/02-macosx-fix.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-1.2.2-fix.diff
Type: text/x-diff
Size: 500 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040925/71a9fae5/03-1.2.2-fix.bin


More information about the Gdal-dev mailing list