MantisBT - ParaView
View Issue Details
0005856ParaView(No Category)public2007-10-10 11:292010-11-22 22:22
Clinton Stimpson 
David Partyka 
lowminoralways
closedfixed 
 
3.83.10 
0005856: fix osmesa build on Mac OS X
Attached are changes that allow a build on Mac OS X using mesa, osmesa (turn Carbon off).
These changes should be cleaned up or corrected before committing.
No tags attached.
patch changes.patch (2,233) 2007-10-10 11:29
https://www.vtk.org/Bug/file/6176/changes.patch
Issue History
2007-10-10 11:29Clinton StimpsonNew Issue
2007-10-10 11:29Clinton StimpsonFile Added: changes.patch
2007-10-11 18:30Clinton StimpsonNote Added: 0009419
2008-04-15 10:30Berk GeveciAssigned To => Clinton Stimpson
2008-04-15 10:30Berk GeveciPrioritynormal => low
2008-04-15 10:30Berk GeveciStatusbacklog => tabled
2008-04-15 10:30Berk GeveciCategory3.4 => 3.6
2009-02-16 17:06Ken MorelandAssigned ToClinton Stimpson => Berk Geveci
2009-03-21 15:16Berk GeveciNote Added: 0015746
2009-03-25 10:14Berk GeveciNote Added: 0015798
2009-03-25 10:15Berk GeveciCategory3.6 => 3.8
2009-05-13 13:39Utkarsh AyachitTarget Version => 3.8
2010-11-05 14:27Utkarsh AyachitAssigned ToBerk Geveci => David Partyka
2010-11-05 14:28Utkarsh AyachitNote Added: 0022923
2010-11-16 14:31David PartykaNote Added: 0023301
2010-11-16 14:31David PartykaStatustabled => @80@
2010-11-16 14:31David PartykaFixed in Version => 3.10
2010-11-16 14:31David PartykaResolutionopen => no change required
2010-11-16 14:45David PartykaNote Added: 0023303
2010-11-16 14:45David PartykaStatus@80@ => @20@
2010-11-16 14:45David PartykaResolutionno change required => reopened
2010-11-17 08:25David PartykaNote Added: 0023328
2010-11-17 08:25David PartykaStatus@20@ => @80@
2010-11-17 08:25David PartykaResolutionreopened => fixed
2010-11-22 22:22Alan ScottNote Added: 0023514
2010-11-22 22:22Alan ScottStatus@80@ => closed
2011-06-16 13:10Zack GalbreathCategory => (No Category)

Notes
(0009419)
Clinton Stimpson   
2007-10-11 18:30   
Another fix necessary:

> In ParaView3/VTK/VolumeRendering/vtkVolumeRenderingFactory.cxx line 63,
> replace
>
> #if defined(VTK_USE_OGLR) || defined(_WIN32) || defined(VTK_USE_COCOA) ||
> defined(VTK_USE_CARBON)
>
> with
>
> #if defined(VTK_USE_OGLR) || defined(VTK_USE_OSMESA) || defined(_WIN32) ||
> defined(VTK_USE_COCOA) || defined(VTK_USE_CARBON)
(0015746)
Berk Geveci   
2009-03-21 15:16   
Clint,
I don't get the following part of the patch. Doesn't this break X11 with OpenGL?

diff --git a/VTK/vtkToolkits.h.in b/VTK/vtkToolkits.h.in
index 09722fc..e9723fa 100644
--- a/VTK/vtkToolkits.h.in
+++ b/VTK/vtkToolkits.h.in
@@ -145,7 +145,7 @@
      (defined(VTK_USE_X) && defined(_WIN32)) || \
      (defined(VTK_USE_MANGLED_MESA) && !defined(_WIN32))) && \
      !(defined (VTK_USE_CARBON) || defined(VTK_USE_COCOA))
-# define VTK_USE_OGLR
+/*# define VTK_USE_OGLR*/
 #endif
 
 #if (defined(VTK_OPENGL_HAS_OSMESA) && !defined(VTK_USE_OGLR) && \
(0015798)
Berk Geveci   
2009-03-25 10:14   
Since this patch is not complete and it is not urgent, I am postponing this.
(0022923)
Utkarsh Ayachit   
2010-11-05 14:28   
Verify if this still is applicable.,
(0023301)
David Partyka   
2010-11-16 14:31   
I am not experiencing any issue building against osmesa on my Mac presently. Please reopen if needed.
(0023303)
David Partyka   
2010-11-16 14:45   
Argh, just noticed I had VTK_USE_COCOA still ON. Will proceed from here.
(0023328)
David Partyka   
2010-11-17 08:25   
This is fixed now at least when building paraview against osmesa 7.9. A lot of logic was missing to link the osmesa libraries when it was enabled, which I added. Also I now force any of VKT_USE_X, VTK_USE_COCOA, or VTK_USE_CARBON to OFF when VTK_OPENGL_HAS_OSMESA is ON. If anyone disagrees with these changes please reopen this issue and let me know.
(0023514)
Alan Scott   
2010-11-22 22:22   
Trusting Dave's logic and testing. Looks correct to me. Untested by me.