Ondrej,

The traditional way of building VTK on a Mac is to build it as a Cocoa
or Carbon library.  This means a couple of things:

* Python must be built as a framework.
* The Mac native GUI is used, not X11.
* You are using all of Apples OpenGL libraries.

If you stick to these assumptions, getting VTK to build on a Mac is
not that difficult and I can look around to find the options I pass to
cmake.  But, if I understand this correctly, you are:

* Using the non-Framework Python spkg
* Trying to use X11 instead of Cocoa/Carbon? (you can't use
Cocoa/Carbon if you are using a non-Framework Python build)
* Trying to use a custom built mesa package for offscreen rendering.

Is this correct?  I don't know if this is possible.  The folks who
have the most experience with this are the VisIt developers - I think
they build VisIt with offscreen rendering and use the native OS GUI
(through Qt).  I will contact them to see if they have this setup
working.   I will report back.

Cheers,

Brian


On Mon, Jun 29, 2009 at 2: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. The updated package is
> here:
>
> http://code.google.com/p/femhub/downloads/list
>
> e.g.: http://femhub.googlecode.com/files/vtk-cvs-20090316-minimal.p1.spkg
>
> Also I fixed the mesa package, here is the updated one:
> http://femhub.googlecode.com/files/mesa-7.4.4.p2.spkg
> Changes I did:
>  * updated to mesa 7.4.4
>  * uses mesa's configure script (thus the same easy command works out
> of the box on mac and both 32bit and 64bit linuxes)
>
> I checked that on linux, this updated mesa package still works just
> fine with vtk, mayavi and offscreen rendering.
>
> If you want all in one package, just follow the instructions here:
>
> http://femhub.org/
>
> e.g. this works nice on linux, but fails on Mac in the middle of the
> VTK build, see above.
>
> So I think the mesa package is fine now, only the VTK package still
> needs more work. Any help is appreciated.
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to