On Mon, Jun 29, 2009 at 10:37 AM, Prabhu Ramachandran<pra...@aero.iitb.ac.in> wrote: > > On 06/29/09 14:58, William Stein wrote: >> On Mon, Jun 29, 2009 at 11:07 AM, Ondrej Certik<ond...@certik.cz> wrote: >>> Hi, >>> >>> the optional vtk package fails to buid on Mac, it fails to configure. >>> I didn't like the spkg install much, so I joined the Mac and linux >>> version and it now configures and starts compiling, but then it fails >>> with: >>> >>> http://code.google.com/p/femhub/issues/detail?id=34#c3 >>> >>> I think I need to somehow use a framework for Python on Mac but I >>> really have no clue so far how this works. >> >> If somebody posts an spkg that builds Python as a framework for OSX, I >> would be happy to post it to the optional package repo. I'm sure >> Brain Granger and others know how to make such an spkg. > > I will try to do this tonight or tomorrow.
On some related project, I need to use the following options to gcc to make it work on Mac and in python: cython osmesa.pyx gcc -Wfatal-errors -fPIC -I$(PREFIX)/include/python2.5 -c -o osmesa.o osmesa.c gcc -Wfatal-errors -fPIC -I$(PREFIX)/include -c -o osdemo.o osdemo.c gcc -Wfatal-errors -bundle -flat_namespace -undefined suppress -o osmesa.so osmesa.o osdemo.o -lOSMesa -lGLU -lGL Then everything works as expected. Could some Mac user confirm, that I am doing things right? Of course, if I use distutils, it will do things for me, but I need to figure out how to use plan gcc, so that I can figure out a fix for cmake. The first 3 lines are standard, however the last line is new to me. "-undefined suppress" is necessary so that gcc doesn't complain about missing Python symbols (that don't matter since the module is imported in python) "-flat_namespace" is necessary with the above option otherwise gcc complains "-bundle" this creates the right dynamic library. the other options are "-shared" and "-dylib", but both of them result in "Bus error" when I try to import he module from Python. Ondrej --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---