Probably a good idea considering several have had to reinvent this wheel more than once.<br><br><div class="gmail_quote">On Thu, Feb 25, 2010 at 11:16 AM, Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Thanks everyone for your help. I’m pretty sure I got past this issue.<br>
<br>
I did have to “hack” VTK/CMake/vtkUseX.cmake as you mentioned. That said, is there a reason not to check in a change that allows you to set VTK_USE_X (that is, set VTK_USE_X_OPTIONAL) in the case that VTK_OPENGL_HAS_OSMESA is ON? The system would by default behave the same but would allow you to turn of X in this case when you have OSMesa but no X.<br>
<br>
-Ken<div class="im"><br>
<br>
<br>
On 2/25/10 8:08 AM, "pat marion" <<a href="http://pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>> wrote:<br>
<br>
</div></span></font><blockquote><div class="im"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">I think the latest release of MesaLib using a configure script, but older versions just provided makefiles. I still use the older releases and run 'make linux-osmesa' to get libOSMesa.so and libGLU.so without any dependencies on Xlib.<br>
<br>
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.<br>
<br>
I ran a new build and didn't get any of the link errors I described previously, so you probably don't have to worry about the other hacks I mentioned. The steps should just be:<br>
<br>
Edit VTK/CMake/vtkUseX.cmake and set VTK_USE_X_OPTIONAL to 1 instead of 0 (then VTK_USE_X will automatically default to OFF). Create a new build folder and configure with -DOPENGL_gl_LIBRARY="". Set OSMESA_LIBRARY and OSMESA_INCLUDE_DIR. Now you should be able to build a pvserver that has no dependencies on X11 or libGL.<br>
<br>
Pat<br>
<br>
On Thu, Feb 25, 2010 at 8:39 AM, Biddiscombe, John A. <<a href="http://biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>> wrote:<br>
</span></font></div><blockquote><div class="im"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Ken<br>
<br>