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 =96 but you simply tell VTK to use that one instead o=
f libGL. (Pat=92s tweaks may also be required to stop vtkXRenderwindow stuf=
f being pulled in).<br>
=A0<br>
I haven=92t actually tried this, but I=92d like to be proved right or wrong=
so that I know for future reference.<br>
=A0<br>
JB<br>
</span></font></div><ul><li><div class=3D"im"><font face=3D"Calibri, Verdan=
a, Helvetica, Arial"><span style=3D"font-size:11pt"><b><i>Xlib</i></b> - Th=
is is the default mode for building Mesa. It uses Xlib as a software render=
er to do all rendering. It corresponds to the option </span><font size=3D"2=
"><span style=3D"font-size:10pt">--with-driver=3Dxlib</span></font><span st=
yle=3D"font-size:11pt">. The libX11 and libXext libraries, as well as the X=
11 development headers, will be need to support the Xlib driver.=20
</span></font></div></li><li><font face=3D"Calibri, Verdana, Helvetica, Ari=
al"><span style=3D"font-size:11pt"><b><i>DRI</i></b> - This mode uses the D=
RI hardware drivers for accelerated OpenGL rendering. Enable the DRI driver=
s 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 bas=
ic installation instructions <<a href=3D"http://www.mesa3d.org/install.h=
tml" target=3D"_blank">http://www.mesa3d.org/install.html</a>> =A0for de=
tails on prerequisites for the DRI drivers.=20
</span></font></li><li><font face=3D"Calibri, Verdana, Helvetica, Arial"><s=
pan style=3D"font-size:11pt"><b><i>OSMesa</i></b> - No libGL is built in th=
is mode. Instead, the driver code is built into the Off-Screen Mesa (OSMesa=
) library. See the Off-Screen Rendering <<a href=3D"http://www.mesa3d.or=
g/osmesa.html" target=3D"_blank">http://www.mesa3d.org/osmesa.html</a>> =
=A0page for more details. <br>
</span></font></li></ul><div class=3D"im"><font face=3D"Calibri, Verdana, H=
elvetica, 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"http://paraview-bounces@paraview.org" target=3D"_blank">paraview-bounce=
s at paraview.org</a> [<a href=3D"mailto:paraview-bounces at paraview.org" target=
=3D"_blank">mailto:paraview-bounces at paraview.org</a>] <b>On Behalf Of </b>p=
at 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 fo=
llow the hacks I describe.=A0 By the way, when I compile osmesa, for pure o=
ffscreen, I just run 'make linux-osmesa' and the result is libOSMes=
a.so and libGLU.so.<br>
<br>
Pat<br>
<br>
On Wed, Feb 24, 2010 at 3:29 PM, pat marion <<a href=3D"http://pat.mario=
n at kitware.com" target=3D"_blank">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=
some small hacks to the cmakelists.=A0 I think the important part for you =
is in 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"http://km=
orel at sandia.gov" target=3D"_blank">kmorel at sandia.gov</a>> wrote:<br>
</span></font></div><blockquote><font face=3D"Calibri, Verdana, Helvetica, =
Arial"><span style=3D"font-size:11pt"><div class=3D"im"><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></div><div class=3D"im">
On 2/24/10 1:02 PM, "Dave Partyka" <<a href=3D"http://dave.par=
tyka at kitware.com" target=3D"_blank">dave.partyka at kitware.com</a> <<a hre=
f=3D"http://dave.partyka@kitware.com" target=3D"_blank">http://dave.partyka=
@kitware.com</a>> > wrote:<br>
</div></span></font><blockquote><font face=3D"Calibri, Verdana, Helvetica, =
Arial"><span style=3D"font-size:11pt"><div class=3D"im"><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></div><div class=3D"im">
On Wed, Feb 24, 2010 at 2:40 PM, Moreland, Kenneth <<a href=3D"http://km=
orel at sandia.gov" target=3D"_blank">kmorel at sandia.gov</a> <<a href=3D"htt=
p://kmorel@sandia.gov" target=3D"_blank">http://kmorel@sandia.gov</a>> &=
gt; wrote:<br>
</div></span></font><blockquote><div class=3D"im"><font face=3D"Calibri, Ve=
rdana, 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></div><font size=3D"2"><font face=3D"Consolas, Courier New, C=
ourier"><span style=3D"font-size:10pt"><div class=3D"im"><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></div>
*** *** *** =A0email: <a href=3D"http://kmorel@sandia.gov" target=3D"_blank=
">kmorel at sandia.gov</a> <<a href=3D"http://kmorel@sandia.gov" target=3D"=
_blank">http://kmorel@sandia.gov</a>> <<a href=3D"http://kmorel@sandi=
a.gov" target=3D"_blank">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" target=3D"_blank">http://www.cs.unm.edu/~kmorel</a> <<a href=3D=
"http://www.cs.unm.edu/%7Ekmorel" target=3D"_blank">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 <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a> <<a href=3D"http://www.kitware.com" target=3D"_blank">http://ww=
w.kitware.com</a>> <<a href=3D"http://www.kitware.com" target=3D"_bla=
nk">http://www.kitware.com</a>> <br>
<div class=3D"im">
<br>
<br>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html" target=3D"_blank">http://www.kitware.com/ope=
nsource/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" target=3D"_blank">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" target=3D"_bl=
ank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></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"><div class=3D"im"><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></div><div class=3D"im">
*** *** *** =A0email: <a href=3D"http://kmorel@sandia.gov" target=3D"_blank=
">kmorel at sandia.gov</a> <<a href=3D"http://kmorel@sandia.gov" target=3D"=
_blank">http://kmorel@sandia.gov</a>> <br>
** =A0*** =A0** =A0phone: (505) 844-8919<br></div>
=A0=A0=A0=A0*** =A0=A0=A0=A0=A0web: =A0=A0<a href=3D"http://www.cs.unm.edu/=
~kmorel" target=3D"_blank">http://www.cs.unm.edu/~kmorel</a> <<a href=3D=
"http://www.cs.unm.edu/%7Ekmorel" target=3D"_blank">http://www.cs.unm.edu/%=
7Ekmorel</a>> <br>
</span></font></font><div class=3D"im"><font face=3D"Calibri, Verdana, Helv=
etica, Arial"><span style=3D"font-size:11pt"><br>
_______________________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a> <<a href=3D"http://www.kitware.com" target=3D"_blank">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" target=3D"_blank">http://www.kitware.com/ope=
nsource/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" target=3D"_blank">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" target=3D"_bl=
ank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</span></font></div></blockquote><div class=3D"im"><font face=3D"Calibri, V=
erdana, Helvetica, Arial"><span style=3D"font-size:11pt">=A0<br>
=A0<br>
<br>
_______________________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a> <<a href=3D"http://www.kitware.com" target=3D"_blank">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" target=3D"_blank">http://www.kitware.com/ope=
nsource/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" target=3D"_blank">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" target=3D"_bl=
ank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</span></font></div></blockquote><font face=3D"Calibri, Verdana, Helvetica,=
Arial"><span style=3D"font-size:11pt"><br>
<br>
</span></font></blockquote><div class=3D"im"><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>
=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"http://kmorel@sandia.gov" target=3D"_blank=
">kmorel at sandia.gov</a><br>
** =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" target=3D"_blank">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>
</div></div>
<br>_______________________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a><br>
<br>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html" target=3D"_blank">http://www.kitware.com/ope=
nsource/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" target=3D"_blank">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" target=3D"_bl=
ank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>
--00c09fa21c2912a29804806f5e90--
More information about the ParaView
mailing list