[Gdal-dev] Python modules fail to compile on MAC OS X
lorenzo.moretti at bologna.enea.it
Thu Sep 23 10:38:32 EDT 2004
This old tips from Alessando Amici works only in GDAL 1.2.1 in OS X:
>there are at least two old threads on the subject, where you can get a bit
>more background, the more interesting is the one with subject: Python Module
>Build in april this year.
>you may try the following:
>edit the setup.py script in the root directory changing:
>LIBRARY_DIRS = ["./libs"]
>LIBRARY_DIRS = ["./.libs"]
>on line 69 (yes, this was a brain-not-found kind of error on my part back in
>april... sigh! and i think i don't have cvs write access anymore).
>$ ./configure <...> --without-python
>$ python setup.py build
>$ su root "python setup.py install"
>please report to the list if this finally works.
In OS X the libraries are inside the folder but an invisible folder
named ".libs" inside gdal source dir.
- built your GDAL without python support;
- after change 2 rows in file setup.py:
- LIBRARY_DIRS = ["./libs"]
+ LIBRARY_DIRS = ["./.libs"]
- ("lib", ['libgdal.%s.so' % soversion]),
+ ("lib", ['libgdal.%s.dylib' % soversion]),
- > python setup.py build
- > sudo python setup.py install
This patch does not work in 1.2.2 or other ...
|| 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/ (ris.)
~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gdal-dev