Therion on OS X 10.8 Mountain Lion
Hi all, as a fresh owner of MacBook I made raw guide how to build and install therion on Mountain Lion - http://therion.speleo.sk/wiki/doku.php?id=install:osx10.8 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. After a lot of searching it seems that problem is related to combination of 64 bit OS X 10.8 + wxWindows 2.9 I am not able to build wxWindows 2.8 64bit as wxOSX/Carbon does not support 64bit. L.
Hi, Thanks a lot for your update. 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. For those who are interested, the following explains the steps I followed : 1) Modify the Makefiles (see patch on the wiki) for therion and loch for OS X10.7 2) Then, run cd /Applications/therion [Enter] make config-macosx [Enter] make [Enter] 3) Modify temparory the file /usr/include/stdio.h . For that, you should edit the file with admin rights. Comment the extension with getline (line '439 to 451 for me) (see https://dev.openwrt.org/ticket/9849 ): BEFORE = #if __DARWIN_C_LEVEL >= 200809L #ifndef _SSIZE_T #define _SSIZE_T typedef __darwin_ssize_t ssize_t; #endif __BEGIN_DECLS int dprintf(int, const char * __restrict, ...) __DARWIN_LDBL_COMPAT(dprintf) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); int vdprintf(int, const char * __restrict, va_list) __DARWIN_LDBL_COMPAT(vdprintf) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3 ); ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); __END_DECLS #endif /* __DARWIN_C_LEVEL >= 200809L */ END_BEFORE AFTER = /* #if __DARWIN_C_LEVEL >= 200809L * #ifndef _SSIZE_T * #define _SSIZE_T * typedef __darwin_ssize_t ssize_t; * #endif * * __BEGIN_DECLS * int dprintf(int, const char * __restrict, ...) __DARWIN_LDBL_COMPAT(dprintf) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); * int vdprintf(int, const char * __restrict, va_list) __DARWIN_LDBL_COMPAT(vdprintf) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3 ); * ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); * ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); * __END_DECLS * #endif __DARWIN_C_LEVEL >= 200809L */ END_AFTER 4) In the folder /therion , run make clean [Enter] make [Enter] 5) Modify back the /usr/include/stdio.h to its previous state (VTK compilation seems to need it !) For me, that's working well. Xav Le 18 sept. 2012 à 14:12, Ladislav Blažek a écrit :
Hi all,
as a fresh owner of MacBook I made raw guide how to build and install therion on Mountain Lion - http://therion.speleo.sk/wiki/doku.php?id=install:osx10.8
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.
After a lot of searching it seems that problem is related to combination of 64 bit OS X 10.8 + wxWindows 2.9 I am not able to build wxWindows 2.8 64bit as wxOSX/Carbon does not support 64bit.
L. _______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
participants (2)
-
Ladislav Blažek -
Xavier Robert