Hi John,<br><br>Search for VTK_USE_OSMESA in VTK/Rendering/vtkGraphicsFactory.cxx. Then look at $build_dir/VTK/vtkToolkits.h to see what is required for VTK_USE_OSMESA to be defined.<br><br>Pat<br><br><div class="gmail_quote">
On Thu, Feb 25, 2010 at 10:14 AM, Biddiscombe, John A. <span dir="ltr"><<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Pat </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I don’t quite understand that bit below. In what way does cmake
care what openGL is being used? I have in the past simply created a symlink
libGL which points to libOSMesa – this got rid of glx issues when I was
experimenting – but what does CMake ‘do’ that is causing a problem? (I mean how
does CMake checking for real GL instead of OSMesa affect anything?)</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">JB</span></p><div class="im">
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<p class="MsoNormal" style="margin-bottom: 12pt;">Unfortunately you can't just
set libOSMesa.so in place of libGL.so (setting OPENGL_gl_LIBRARY in cmake)
because cmake uses the OPENGL_gl_LIBRARY variable to check for the existance of
real opengl versus osmesa. So that's why I said to set OPENGL_gl_LIBRARY
to the empty string.</p>
</div>
</div></div>
</div>
</blockquote></div><br>