No subject
Wed Oct 7 22:37:18 EDT 2009
lding Mesa,, both Xlib and DRI make use of the X11 libraries, but it is my =
understanding that if you build mesa with the <BR>
</SPAN></FONT><FONT SIZE=3D"2"><FONT FACE=3D"Consolas, Courier New, Courier=
"><SPAN STYLE=3D'font-size:10pt'>--with-driver=3Dosmesa<BR>
</SPAN></FONT></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPA=
N STYLE=3D'font-size:11pt'>=A0<BR>
Then the offending glx* linkage will not be necessary. You will get a libOS=
Mesa instead of libGL – but you simply tell VTK to use that one inste=
ad of libGL. (Pat’s tweaks may also be required to stop vtkXRenderwin=
dow stuff being pulled in).<BR>
=A0<BR>
I haven’t actually tried this, but I’d like to be proved right =
or wrong so that I know for future reference.<BR>
=A0<BR>
JB<BR>
</SPAN></FONT><UL><LI><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SP=
AN STYLE=3D'font-size:11pt'><B><I>Xlib</I></B> - This is the default mode f=
or building Mesa. It uses Xlib as a software renderer to do all rendering. =
It corresponds to the option </SPAN><FONT SIZE=3D"2"><SPAN STYLE=3D'font-si=
ze:10pt'>--with-driver=3Dxlib</SPAN></FONT><SPAN STYLE=3D'font-size:11pt'>.=
The libX11 and libXext libraries, as well as the X11 development headers, =
will be need to support the Xlib driver.=20
</SPAN></FONT><LI><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN S=
TYLE=3D'font-size:11pt'><B><I>DRI</I></B> - This mode uses the DRI hardware=
drivers for accelerated OpenGL rendering. Enable the DRI drivers with the =
option </SPAN><FONT SIZE=3D"2"><SPAN STYLE=3D'font-size:10pt'>--with-driver=
=3Ddri</SPAN></FONT><SPAN STYLE=3D'font-size:11pt'>. See the basic installa=
tion instructions <<a href=3D"http://www.mesa3d.org/install.html">http:/=
/www.mesa3d.org/install.html</a>> for details on prerequisites for=
the DRI drivers.=20
</SPAN></FONT><LI><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN S=
TYLE=3D'font-size:11pt'><B><I>OSMesa</I></B> - No libGL is built in this mo=
de. Instead, the driver code is built into the Off-Screen Mesa (OSMesa) lib=
rary. See the Off-Screen Rendering <<a href=3D"http://www.mesa3d.org/osm=
esa.html">http://www.mesa3d.org/osmesa.html</a>> page for more det=
ails. <BR>
</SPAN></FONT></UL><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPAN =
STYLE=3D'font-size:11pt'>=A0<BR>
=A0<BR>
=A0<BR>
<BR>
</SPAN><FONT SIZE=3D"2"><SPAN STYLE=3D'font-size:10pt'><B>From:</B> <a href=
=3D"paraview-bounces at paraview.org">paraview-bounces at paraview.org</a> [<a hr=
ef=3D"mailto:paraview-bounces at paraview.org">mailto:paraview-bounces at paravie=
w.org</a>] <B>On Behalf Of </B>pat marion<BR>
<B>Sent:</B> 24 February 2010 21:33<BR>
<B>To:</B> Moreland, Kenneth<BR>
<B>Cc:</B> ParaView<BR>
<B>Subject:</B> Re: [Paraview] Compiling without X11 libraries<BR>
</SPAN></FONT><SPAN STYLE=3D'font-size:11pt'><BR>
=A0<BR>
Sorry I misread your email, you don't want to create X11 windows at all.=A0=
You want to do pure osmesa.=A0 So then you'll be all set if you follow the=
hacks I describe.=A0 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>
On Wed, Feb 24, 2010 at 3:29 PM, pat marion <<a href=3D"pat.marion at kitwa=
re.com">pat.marion at kitware.com</a>> wrote:<BR>
Hi Ken,<BR>
<BR>
Below is copy and paste from a previous email where I answered a similar qu=
estion off-list (your question is a little different because you want to us=
e Mesa3D to create windows).=A0 Unfortunately you can't do this without som=
e small hacks to the cmakelists.=A0 I think the important part for you is i=
n the last paragraph.<BR>
<BR>
----------<BR>
<BR>
Using true offscreen means using vtkOSOpenGLRenderWindow and not vtkXOpenGL=
RenderWindow.=A0 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>
=A0 * OPENGL_gl_LIBRARY is set to the empty string<BR>
=A0 * VTK_USE_X is OFF<BR>
=A0 * VTK_OPENGL_HAS_OSMESA is true<BR>
<BR>
If the platform is Linux, and cmake is able to locate X11 libraries & h=
eaders, then cmake will force VTK_USE_X to ON.=A0 You must hack VTK/CMake/v=
tkUseX.cmake to set it to OFF.<BR>
<BR>
Look at the bottom of $build_dir/VTK/vtkToolkits.h to make sure that you ha=
ve 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.=A0 To avoid that, you need t=
o change all instances of ${OPENGL_gl_LIBRARY} to ${OSMESA_LIBRARY} in all =
CMakeLists.txt except for VTK/Rendering/CMakeLists.txt or VTK/CMakeLists.tx=
t.<BR>
<BR>
<BR>
Pat<BR>
<BR>
On Wed, Feb 24, 2010 at 3:10 PM, Moreland, Kenneth <<a href=3D"kmorel at sa=
ndia.gov">kmorel at sandia.gov</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"=
><SPAN STYLE=3D'font-size:11pt'><BR>
I do have PARAVIEW_BUILD_GT_GUI off, but I still need rendering. =A0I still=
need to create OpenGL windows, but I will only ever do it through OSMesa, =
never through X11.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
<BR>
<BR>
On 2/24/10 1:02 PM, "Dave Partyka" <<a href=3D"dave.partyka at ki=
tware.com">dave.partyka at kitware.com</a> <<a href=3D"http://dave.partyka@=
kitware.com">http://dave.partyka@kitware.com</a>> > wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"=
><SPAN STYLE=3D'font-size:11pt'><BR>
I am not sure about ParaView but in VTK if you turn rendering off you shoul=
d be able to do this.=A0Have 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=3D"kmorel at sa=
ndia.gov">kmorel at sandia.gov</a> <<a href=3D"http://kmorel@sandia.gov">ht=
tp://kmorel@sandia.gov</a>> > wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"=
><SPAN STYLE=3D'font-size:11pt'><BR>
Is there any way to compile ParaView without any X11 libraries at all? =A0I=
compiled OSMesa support for Mesa 3D and tried to link that, but when I lin=
k I am missing a bunch of glX* symbols. =A0I think that in order to build t=
hese functions for Mesa, I need an X11 library, which gets me back to the d=
ilemma of what if you have no libraries?<BR>
<BR>
-Ken<BR>
<BR>
</SPAN></FONT><FONT SIZE=3D"2"><FONT FACE=3D"Consolas, Courier New, Courier=
"><SPAN STYLE=3D'font-size:10pt'><BR>
=A0=A0=A0**** =A0=A0=A0=A0=A0Kenneth Moreland<BR>
=A0=A0=A0=A0*** =A0=A0=A0=A0=A0Sandia National Laboratories<BR>
*********** =A0<BR>
*** *** *** =A0email: <a href=3D"kmorel at sandia.gov">kmorel at sandia.gov</a> &=
lt;<a href=3D"http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>> &l=
t;<a href=3D"http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>> <BR=
>
</SPAN></FONT></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPA=
N STYLE=3D'font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE=3D"2"><FONT FACE=3D"Consolas, Courier New, Courier=
"><SPAN STYLE=3D'font-size:10pt'>** =A0*** =A0** =A0phone: (505) 844-8919<B=
R>
=A0=A0=A0=A0*** =A0=A0=A0=A0=A0web: =A0=A0<a href=3D"http://www.cs.unm.edu/=
~kmorel">http://www.cs.unm.edu/~kmorel</a> <<a href=3D"http://www.cs.unm=
.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>> <BR>
</SPAN></FONT></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPA=
N STYLE=3D'font-size:11pt'><BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com <<a href=3D"http://www.kitware.com">http://ww=
w.kitware.com</a>> <<a href=3D"http://www.kitware.com">http://www.kit=
ware.com</a>> <BR>
<BR>
<BR>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html">http://www.kitware.com/opensource/opensource=
.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href=3D"ht=
tp://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href=3D"http://www.paraview.org/mailman/listinfo/paraview">http://www.pa=
raview.org/mailman/listinfo/paraview</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial=
"><SPAN STYLE=3D'font-size:11pt'>=A0<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial=
"><SPAN STYLE=3D'font-size:11pt'>=A0<BR>
<BR>
</SPAN></FONT><FONT SIZE=3D"2"><FONT FACE=3D"Consolas, Courier New, Courier=
"><SPAN STYLE=3D'font-size:10pt'><BR>
=A0=A0=A0**** =A0=A0=A0=A0=A0Kenneth Moreland<BR>
=A0=A0=A0=A0*** =A0=A0=A0=A0=A0Sandia National Laboratories<BR>
*********** =A0<BR>
*** *** *** =A0email: <a href=3D"kmorel at sandia.gov">kmorel at sandia.gov</a> &=
lt;<a href=3D"http://kmorel@sandia.gov">http://kmorel@sandia.gov</a>> <B=
R>
** =A0*** =A0** =A0phone: (505) 844-8919<BR>
=A0=A0=A0=A0*** =A0=A0=A0=A0=A0web: =A0=A0<a href=3D"http://www.cs.unm.edu/=
~kmorel">http://www.cs.unm.edu/~kmorel</a> <<a href=3D"http://www.cs.unm=
.edu/%7Ekmorel">http://www.cs.unm.edu/%7Ekmorel</a>> <BR>
</SPAN></FONT></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPA=
N STYLE=3D'font-size:11pt'><BR>
_______________________________________________<BR>
Powered by www.kitware.com <<a href=3D"http://www.kitware.com">http://ww=
w.kitware.com</a>> <BR>
<BR>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html">http://www.kitware.com/opensource/opensource=
.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href=3D"ht=
tp://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href=3D"http://www.paraview.org/mailman/listinfo/paraview">http://www.pa=
raview.org/mailman/listinfo/paraview</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial=
"><SPAN STYLE=3D'font-size:11pt'>=A0<BR>
=A0<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com <<a href=3D"http://www.kitware.com">http://ww=
w.kitware.com</a>> <BR>
<BR>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html">http://www.kitware.com/opensource/opensource=
.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href=3D"ht=
tp://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href=3D"http://www.paraview.org/mailman/listinfo/paraview">http://www.pa=
raview.org/mailman/listinfo/paraview</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial=
"><SPAN STYLE=3D'font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial=
"><SPAN STYLE=3D'font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE=3D"1"><FONT FACE=3D"Monaco, Courier New"><SPAN STY=
LE=3D'font-size:7.5pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National L=
aboratories<BR>
*********** <BR>
*** *** *** email: <a href=3D"kmorel at sandia.gov">kmorel at sandia.gov</a=
><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: =
<a href=3D"http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a>=
<BR>
</SPAN></FONT></FONT><FONT FACE=3D"Calibri, Verdana, Helvetica, Arial"><SPA=
N STYLE=3D'font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>
--_000_C7ABF0631836Akmorelsandiagov_--
More information about the ParaView
mailing list