<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>Thanks a lot for your update.</div><div><br></div><div>I also had some difficulties to install Therion on OS X 10.7 because of the "getline" compilation error. After lots of searching, I manage to install Therion and XTherion, but I was not able to install Loch.</div><div><br></div><div>For those who are interested, the following explains the steps I followed :</div><div><br></div><div><div>1) Modify the Makefiles (see patch on the wiki) for therion and loch for OS X10.7</div><div><br></div><div>2) Then, run</div><div>cd /Applications/therion [Enter] </div><div>make config-macosx [Enter] </div><div>make [Enter] </div><div><br></div><div>3) Modify <b>temparory</b> the file /usr/include/stdio.h . For that, you should edit the file with admin rights.</div><div>Comment the extension with getline (line '439 to 451 for me) (see <a href="https://dev.openwrt.org/ticket/9849">https://dev.openwrt.org/ticket/9849</a> ):</div><div><i>BEFORE =</i></div><div>#if __DARWIN_C_LEVEL >= 200809L</div><div>#ifndef _SSIZE_T</div><div>#define _SSIZE_T</div><div>typedef __darwin_ssize_t ssize_t;</div><div>#endif</div><div><br></div><div>__BEGIN_DECLS</div><div>int dprintf(int, const char * __restrict, ...) __DARWIN_LDBL_COMPAT(dprintf) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);</div><div>int vdprintf(int, const char * __restrict, va_list) __DARWIN_LDBL_COMPAT(vdprintf) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3 );</div><div>ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);</div><div>ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);</div><div>__END_DECLS</div><div>#endif /* __DARWIN_C_LEVEL >= 200809L */</div><div>END_BEFORE</div><div><br></div><div><i>AFTER =</i></div><div>/* #if __DARWIN_C_LEVEL >= 200809L</div><div> * #ifndef _SSIZE_T</div><div> * #define _SSIZE_T</div><div> * typedef __darwin_ssize_t ssize_t;</div><div> * #endif</div><div> *</div><div> * __BEGIN_DECLS</div><div> * int dprintf(int, const char * __restrict, ...) __DARWIN_LDBL_COMPAT(dprintf) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);</div><div> * int vdprintf(int, const char * __restrict, va_list) __DARWIN_LDBL_COMPAT(vdprintf) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3 );</div><div> * ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);</div><div> * ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);</div><div> * __END_DECLS</div><div> * #endif __DARWIN_C_LEVEL >= 200809L */</div><div>END_AFTER</div><div><br></div><div>4) In the folder /therion , run</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>make clean [Enter]</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>make [Enter]</div><div><br></div><div>5) Modify back the /usr/include/stdio.h to its previous state (VTK compilation seems to need it !)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div>For me, that's working well.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div>Xav</div><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><div>Le 18 sept. 2012 ŕ 14:12, Ladislav Blažek a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br><div>as a fresh owner of MacBook I made raw guide how to build and install therion on Mountain Lion - <a href="http://therion.speleo.sk/wiki/doku.php?id=install:osx10.8">http://therion.speleo.sk/wiki/doku.php?id=install:osx10.8</a></div><div><br></div><div>Together with Stacho (big thanks) we made compilation/installation possible but currently there is problem with Loch. Loch is running but I am not able to open any file. </div><div><br></div><div>After a lot of searching it seems that problem is related to combination of 64 bit OS X 10.8 + wxWindows 2.9</div><div>I am not able to build wxWindows 2.8 64bit as wxOSX/Carbon does not support 64bit.</div><div><br></div><div>L. </div></div></div>_______________________________________________<br>Therion mailing list<br><a href="mailto:Therion@speleo.sk">Therion@speleo.sk</a><br>http://mailman.speleo.sk/mailman/listinfo/therion<br></blockquote></div><br></div></body></html>