<div dir="ltr">Refer to:<br><a href="http://paraview.org/Wiki/ParaView/Users_Guide/Parallel_Rendering">http://paraview.org/Wiki/ParaView/Users_Guide/Parallel_Rendering</a><div>And try:<br></div><div style><table border="0" cellpadding="4" cellspacing="4" style="font-size:13px;color:rgb(0,0,0);background-color:white;font-family:sans-serif;line-height:19px;width:1204px">

<tbody><tr><td>VTK_USE_COCOA</td><td>OFF</td><td>Mac only.</td></tr><tr><td>VTK_USE_X</td><td>OFF</td><td></td></tr><tr><td>VTK_USE_OFFSCREEN</td><td>ON</td><td></td></tr><tr><td>VTK_OPENGL_HAS_OSMESA</td><td>ON</td><td>
Turn this to ON to enable Off Screen MESA.</td>
</tr><tr><td>OSMESA_INCLUDE_DIR</td><td>&lt;mesa include dir&gt;</td><td>Set this to the include directory for MESA.</td></tr><tr><td>OPENGL_INCLUDE_DIR</td><td>&lt;mesa include dir&gt;</td><td>Set this to the include directory for MESA.</td>

</tr><tr><td>OPENGL_gl_LIBRARY</td><td>&lt;empty&gt;</td><td>Set this to empty.</td></tr><tr><td>OPENGL_glu_LIBRARY</td><td>libGLU</td><td>Set this to the libGLU.a or libGLU.so file.</td></tr><tr><td>OSMESA_LIBRARY</td><td>

libOSMesa</td><td>Set this to the libOSMesa.a or libOSMesa.so file.</td></tr></tbody></table></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>21 Corporate Drive<br>

Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 10:07 PM, François Bissey <span dir="ltr">&lt;<a href="mailto:fbissey@slingshot.co.nz" target="_blank">fbissey@slingshot.co.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi again,<br>
<br>
I am finding myself stuck at a strange point. I have installed mesa 9.2.0<br>
(cross compilation was effectively broken from 7.11 till 9.2.0). And I have<br>
build libosmesa but not libGL. Building libGL seem to require building a lot<br>
of bit of X11 that I don&#39;t really want if I can help it.<br>
<br>
But vtk is looking for libGL specifically is it really necessary to have<br>
both libGL and libOSMesa? I haven&#39;t found anything that would turn it off.<br>
<br>
Francois<div class="im HOEnZb"><br>
<br>
On 2013-09-06 02:15, David E DeMarle wrote:<br>
</div><div class="HOEnZb"><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Francois,<br>
<br>
You best place to learn about cross compilation is chapter 8 of the<br>
CMake book (Mastering CMake fifth edition). It explains cross<br>
compilation in detail and uses VTK as an example project.<br>
<br>
The gist of what you are missing is that for a complex project like<br>
VTK, in which the build process itself creates and runs compile time<br>
executables that generate code and do system introspection, you need<br>
to compile twice. The first compile runs on and produces executables<br>
that run on the host system. The second compile runs on (using the<br>
compile time executables produced in the first pass) the host but<br>
produces executables that run on the target system.<br>
<br>
In your case you are doing the second pass and have not added the<br>
location of the first pass into your CMAKE_PREFIX_PATH, so CMake can<br>
not find the compile time executables it needs.<br>
<br>
After that, you will also need to provide the results of the compile<br>
time system introspection queries that the host side can not<br>
determine. It can&#39;t because it has to submit and run those compile<br>
time executable on the target system in order to determine the nature<br>
of the target system. To do that you provide a TryRunResults file. It<br>
turns out not to be too hard to generate that, CMake tells you exactly<br>
what to run and what to fill in. But most likely you can just use the<br>
one in the ParaView superbuild project (bgp_xlc) or the one in<br>
VTK/CMake/TryRunResults-VTK-<u></u>bgl-gcc.cmake.<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>