Sorry I misread your email, you don't want to create X11 windows at all. You want to do pure osmesa. So then you'll be all set if you follow the hacks I describe. By the way, when I compile osmesa, for pure offscreen, I just run 'make linux-osmesa' and the result is libOSMesa.so and libGLU.so.<br>
<br>Pat<br><br><div class="gmail_quote">On Wed, Feb 24, 2010 at 3:29 PM, pat marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</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;">
Hi Ken,<br><br>Below is copy and paste from a previous email where I answered a similar question off-list (your question is a little different because you want to use Mesa3D to create windows). Unfortunately you can't do this without some small hacks to the cmakelists. I think the important part for you is in the last paragraph.<br>
<br>----------<br><br>Using true offscreen means using vtkOSOpenGLRenderWindow and not
vtkXOpenGLRenderWindow. Which one is used depends on whether or not
VTK_USE_OSMESA is defined in $build_dir/VTK/vtkToolkits.h.<br><br>VTK_USE_OSMESA is defined when:<br>
<br> * OPENGL_gl_LIBRARY is set to the empty string<br> * VTK_USE_X is OFF<br> * VTK_OPENGL_HAS_OSMESA is true<br><br>If
the platform is Linux, and cmake is able to locate X11 libraries &
headers, then cmake will force VTK_USE_X to ON. You must hack
VTK/CMake/vtkUseX.cmake to set it to OFF.<br><br>Look at the bottom of $build_dir/VTK/vtkToolkits.h to make sure that you have successfully defined VTK_USE_OSMESA.<br><br>If you are doing a shared build, and OPENGL_gl_LIBRARY is the empty string, then you will get link errors because of some changes that were introduced after the transitive linking patch last June. To avoid that, you need to change all instances of ${OPENGL_gl_LIBRARY} to ${OSMESA_LIBRARY} in all CMakeLists.txt except for VTK/Rendering/CMakeLists.txt or VTK/CMakeLists.txt.<br>
<font color="#888888">
<br><br>Pat<br><br><br></font><div class="gmail_quote"><div class="im">On Wed, Feb 24, 2010 at 3:10 PM, Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">I do have PARAVIEW_BUILD_GT_GUI off, but I still need rendering. I still need to create OpenGL windows, but I will only ever do it through OSMesa, never through X11.<br>
<br>
-Ken<div><br>
<br>
<br>
On 2/24/10 1:02 PM, "Dave Partyka" <<a href="http://dave.partyka@kitware.com" target="_blank">dave.partyka@kitware.com</a>> wrote:<br>
<br>
</div></span></font><blockquote><div><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">I am not sure about ParaView but in VTK if you turn rendering off you should be able to do this. Have you tried turning PARAVIEW_BUILD_QT_GUI off? I do that when I generate the command line tools package on Mac OSX.<br>
<br>
On Wed, Feb 24, 2010 at 2:40 PM, Moreland, Kenneth <<a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>> wrote:<br>
</span></font></div><blockquote><div><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Is there any way to compile ParaView without any X11 libraries at all? I compiled OSMesa support for Mesa 3D and tried to link that, but when I link I am missing a bunch of glX* symbols. I think that in order to build these functions for Mesa, I need an X11 library, which gets me back to the dilemma of what if you have no libraries?<br>
<br>
-Ken<br>
</span></font></div><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;"><div><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br></div>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a> <<a href="http://kmorel@sandia.gov" target="_blank">http://kmorel@sandia.gov</a>> <br><div>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><br>
</div></span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>> <br><div>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</div></span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font><div><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font>
</div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br></div><div class="im">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></div></blockquote></div><br>
</blockquote></div><br>