<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Gdal-dev] Python modules fail to compile on
MAC OS X</title></head><body>
<div>Hi Jeroen</div>
<div><br></div>
<div>This old tips from Alessando Amici<b> works only in GDAL
1.2.1</b> in OS X:</div>
<div><br></div>
<blockquote type="cite" cite>there are at least two old threads on the
subject, where you can get a bit</blockquote>
<blockquote type="cite" cite>more background, the more interesting is
the one with subject: Python Module</blockquote>
<blockquote type="cite" cite>Build in april this year.</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>you may try the following:</blockquote>
<blockquote type="cite" cite>edit the setup.py script in the root
directory changing:</blockquote>
<blockquote type="cite" cite>LIBRARY_DIRS =
["./libs"]</blockquote>
<blockquote type="cite" cite>to</blockquote>
<blockquote type="cite" cite>LIBRARY_DIRS =
["./.libs"]</blockquote>
<blockquote type="cite" cite>on line 69 (yes, this was a
brain-not-found kind of error on my part back in</blockquote>
<blockquote type="cite" cite>april... sigh! and i think i don't have
cvs write access anymore).</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>then:</blockquote>
<blockquote type="cite" cite>$ ./configure <...>
--without-python</blockquote>
<blockquote type="cite" cite>$ make</blockquote>
<blockquote type="cite" cite>$ python setup.py build</blockquote>
<blockquote type="cite" cite>$ su root "python setup.py
install"</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>please report to the list if this finally
works.</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>cheers,</blockquote>
<blockquote type="cite" cite>alessandro</blockquote>
<div><br></div>
<div><br></div>
<div>In OS X the libraries are inside the folder but an invisible
folder named ".libs" inside gdal source dir.</div>
<div><br></div>
<div>- built your GDAL without python support;</div>
<div>- after change 2 rows in file setup.py:</div>
<div><br></div>
<blockquote>
<blockquote>row 69</blockquote>
<blockquote>- LIBRARY_DIRS = ["./libs"]</blockquote>
<blockquote>+ LIBRARY_DIRS = ["./.libs"]</blockquote>
<blockquote><br></blockquote>
<blockquote>row 103</blockquote>
<blockquote>- ("lib", ['libgdal.%s.so' %
soversion]),</blockquote>
<blockquote>+ ("lib", ['libgdal.%s.dylib' %
soversion]),</blockquote>
<blockquote><br></blockquote>
</blockquote>
<div>- > python setup.py build</div>
<div>- > sudo python setup.py install</div>
<div><br></div>
<div><br></div>
<div>This patch does not work in 1.2.2 or other ...</div>
<div><br></div>
<div>Bye</div>
<div><br></div>
<div><br></div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><font face="Verdana"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
<div><font face="Courier New"
color="#000000">|| Lorenzo
Moretti e-mail:
lorenzo.moretti@bologna.enea.it </font></div
>
<div><font face="Courier New" color="#000000">||/|/| ENEA
prot/idr Web:
http://wwwamb.bologna.enea.it/ </font></div>
<div><font face="Courier New" color="#000000">|| |
via Don Fiammelli, 2 FTP:
ftp://ftpamb.bologna.enea.it/ (ris.)</font></div>
<div><font face="Courier New" color="#000000">~~~~~~ 40128
BOLOGNA - ITALY Ph: +39-0516098086 Fax:
+39-0516098131</font></div>
<div><font face="Courier New"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
</body>
</html>