12/7/2022 0 Comments Texmacs mathematica plugin![]() ![]() > With these changes, running the script compiled the tm_mathematica.c just fine, with a single warning “tm_mathematica.c:544:46: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') > - change the compiler commant to use g++ instead of gcc and use the oprion -l$lib_option -stdlib=libstdc++ instead of the -l$lib_option -lstdc++ > - change the /usr/lib/ to /usr/local/lib/ since from OS X 10.11 on, the System Integrity Protection is enabled, forbidding to write to the /usr/lib/ directory irrespective of administrator rights. > - change the Mathlink_Path variable (Mathematica version 9 or greater contains the architecture specification in the path to the directory where Mathlink resides). ![]() The changes I had to make are the following: > Next, I used the script provided by Singh Madhusudan and made some changes to make it work. > The adapted tm_mathematica.c file is attached. I suppose these changes need to be done also if one wanted to use the stock tm_mathematica.c provided in a TeXmacs installation. I am not sure from which version of Mathematica on, the old functions cannot be used in any case I could not compile the tm_mathematica.c with the libMLi3.a choice without these changes in the case of Mathematica 10.0.0.0). > (According to the Wolfram documentation, as of Mathematica 6.0 the former functions have been superseded by the latter functions. > - replaced all occurences ofMLDisownSymbol by MLReleaseSymbol > - replaced all occurences of MLDisownString by MLReleaseString > Then I performed two changes to the file: > First of all, I copied the tm_mathematica.c from Tian-Min Yan to the /Applications/TeXmacs.app/Contents/Resources/share/TeXmacs/plugins/mathematica/src.lazy/ directory. ![]() I tried to get the Mathematica plugin to work on OS X 10.11.5, TeXmacs 1.99.4, with Mathematica 10.0.0.0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |