Hi Josh, <div><br></div><div>Just to confirm, do you want to build with off screen or on screen rendering? If you want off screen then you cannot link to libGL and you need to leave <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">OPENGL_gl_LIBRARY </span>blank (I believe because all of the GL symbols are then included in libOSMesa).<div>

<br></div><div>Also you need to build Mesa as Kevin described with these options.</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">rm -rf /home/kevin/mesa_osmesa/*<br>

cd /home/kevin/mesa<br>make realclean<br>git pull origin<br>./autogen.sh \<br> --prefix=/home/kevin/mesa_osmesa/ \<br> --with-driver=osmesa \<br> --disable-gallium<br><br>make -j8<br>make install</span><br><br><div class="gmail_quote">

On Fri, Oct 15, 2010 at 1:23 PM, Joshua Wu <span dir="ltr">&lt;<a href="mailto:joshuawu@lanl.gov">joshuawu@lanl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="word-wrap:break-word">I tried your configuration for 7.5.2<div>I also included the OPENGL_gl_LIBRARY in my configuration</div><div>since if I don&#39;t include OPENGL_gl_LIBRARY, I would get the</div><div>same error</div>

<div><br></div><div>this is what I&#39;m getting</div><div><br></div><div>---</div><div><div>Scanning dependencies of target PSLACReaderLinear</div><div>[ 46%] [ 46%] Built target DistributedData</div><div>Built target DistributedDataRenderPass</div>

<div>Linking CXX executable ../../../../bin/GenericCommunicator</div><div>Scanning dependencies of target PSLACReaderQuadratic</div><div>Scanning dependencies of target SocketClient</div><div>[ 46%] Building CXX object VTK/Parallel/Testing/Cxx/CMakeFiles/PSLACReaderLinear.dir/PSLACReaderLinear.cxx.o</div>

<div>[ 50%] Built target vtkGraphicsCS</div><div>Scanning dependencies of target SocketServer</div><div>[ 50%] [ 50%] Building CXX object VTK/Parallel/Testing/Cxx/CMakeFiles/PSLACReaderQuadratic.dir/PSLACReaderQuadratic.cxx.o</div>

<div>Building CXX object VTK/Parallel/Testing/Cxx/CMakeFiles/SocketClient.dir/SocketClient.cxx.o</div><div>[ 51%] Built target GraphicsCxxTests</div><div>[ 51%] [ 54%] Built target vtkRenderingPythonD</div><div>[ 54%] Building CXX object VTK/Parallel/Testing/Cxx/CMakeFiles/SocketClient.dir/ExerciseMultiProcessController.cxx.o</div>

<div>[ 54%] Building CXX object VTK/Parallel/Testing/Cxx/CMakeFiles/SocketServer.dir/SocketServer.cxx.o</div><div>Building CXX object VTK/Parallel/Testing/Cxx/CMakeFiles/SocketServer.dir/ExerciseMultiProcessController.cxx.o</div>

<div>[ 54%] Built target vtkHybrid</div><div>Scanning dependencies of target TestClientServerRendering</div><div>[ 54%] Building CXX object VTK/Parallel/Testing/Cxx/CMakeFiles/TestClientServerRendering.dir/TestClientServerRendering.cxx.o</div>

<div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_366&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_358&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_364&#39;</div>

<div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_359&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_365&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_356&#39;</div>

<div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_357&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_362&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_363&#39;</div>

<div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_361&#39;</div><div class="im"><div>collect2: ld returned 1 exit status</div></div><div>make[2]: *** [bin/GenericCommunicator] Error 1</div><div>

make[1]: *** [VTK/Parallel/Testing/Cxx/CMakeFiles/GenericCommunicator.dir/all] Error 2</div><div>make[1]: *** Waiting for unfinished jobs....</div><div>Linking CXX executable ../../../../bin/PSLACReaderLinear</div><div>Linking CXX executable ../../../../bin/PSLACReaderQuadratic</div>

<div>[ 54%] Built target PSLACReaderLinear</div><div>[ 54%] Built target PSLACReaderQuadratic</div><div>Linking CXX executable ../../../../bin/TestClientServerRendering</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_366&#39;</div>

<div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_358&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_364&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_359&#39;</div>

<div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_365&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_356&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_357&#39;</div>

<div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_362&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_363&#39;</div><div>/usr/local/lib/libOSMesa.so.7: undefined reference to `gl_dispatch_stub_361&#39;</div>

<div class="im"><div>collect2: ld returned 1 exit status</div></div><div>make[2]: *** [bin/TestClientServerRendering] Error 1</div><div>make[1]: *** [VTK/Parallel/Testing/Cxx/CMakeFiles/TestClientServerRendering.dir/all] Error 2</div>

<div>Linking CXX executable ../../../../bin/SocketClient</div><div>[ 54%] Built target SocketClient</div><div>Linking CXX executable ../../../../bin/SocketServer</div><div>[ 54%] Built target SocketServer</div><div>make: *** [all] Error 2</div>

<div><br></div><div>---</div><div><br></div><div>this is what I have for my Cmake config for Mesa</div><div><br></div><div>---</div><div><div> OPENGL_INCLUDE_DIR               /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/include                                                                                                                                               </div>

<div> OPENGL_gl_LIBRARY                /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/lib/libGL.so                                                                                                                                          </div>

<div> OPENGL_glu_LIBRARY               /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/lib/libGLU.so                                                                                                                                         </div>

<div> OPENGL_xmesa_INCLUDE_DIR         OPENGL_xmesa_INCLUDE_DIR-NOTFOUND                                                                                                                                                                   </div>

<div> OSMESA_INCLUDE_DIR               /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/include                                                                                                                                               </div>

<div> OSMESA_LIBRARY                   /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/lib/libOSMesa.so </div><div><div class="im"><blockquote type="cite"><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">VTK_OPENGL_HAS_OSMESA : ON<br>

VTK_USE_MANGLED_MESA : OFF<br>VTK_USE_OFFSCREEN : ON</span></div></blockquote></div><blockquote type="cite"><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">VTK_USE_X : OFF</span></div>

</blockquote></div></div><div>---</div><div><br></div><div>--Josh</div><div><div></div><div class="h5"><div><div>On Oct 14, 2010, at 9:27 AM, Dave Partyka wrote:</div><br><blockquote type="cite">Hi Joshua,<div><br></div>
<div>
The best way to configure paraview with OSMesa is to use the following settings.</div><div><br></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">VTK_USE_X : OFF<br> OPENGL_gl_LIBRARY : &lt;leave this blank&gt;<br>

OPENGL_glu_LIBRARY: to <span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34)">osmesa</span>&#39;s libGLU.so.<br>OSMESA_LIBRARY : /usr/lib64/libOSMesa.so<br> VTK_OPENGL_HAS_OSMESA : ON<br>VTK_USE_MANGLED_MESA : OFF<br>

VTK_USE_OFFSCREEN : ON</span><br><br></div><div>I also recommend you either use an older Mesa (7.5.2 for example) or use the latest from their git repository as there is a major bug in the latest released versions for which ParaView will crash.</div>

 <div><br><div class="gmail_quote">On Thu, Oct 14, 2010 at 10:13 AM, Joshua Wu <span dir="ltr">&lt;<a href="mailto:joshuawu@lanl.gov" target="_blank">joshuawu@lanl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

 I&#39;m recently started to install paraview on a new machine,<br> OS is Ubuntu, a 64 bit machine.<br> Mesa itself is built smoothly and my cmake configuration<br> is the same as I built before (I successfully built Mesa with<br>

 PV many times), I&#39;ve tried three versions of Mesa to be<br> integrated into PV, 7.9, 7.6.1 and 7.0.4. About 48% of building PV,<br> I get the following consistent error<br> <br> ---<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_create_framebuffer&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_free_context_data&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_get_current_context&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_vbo_InvalidateState&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_initialize_context&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_reference_renderbuffer&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_enable_1_4_extensions&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swrast_choose_triangle&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_error&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_add_soft_renderbuffers&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_add_renderbuffer&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_enable_1_3_extensions&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_calloc&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_problem&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_enable_1_5_extensions&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_vbo_CreateContext&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swrast_choose_line&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_free&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swsetup_DestroyContext&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_make_current&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_new_renderbuffer&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_tnl_DestroyContext&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_init_driver_functions&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_update_framebuffer_visual&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_destroy_visual&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_unreference_framebuffer&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_vbo_DestroyContext&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_remove_renderbuffer&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_create_visual&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swrast_DestroyContext&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swrast_CreateContext&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swrast_InvalidateState&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_resize_framebuffer&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_tnl_run_pipeline&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swsetup_InvalidateState&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_tnl_InvalidateState&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swsetup_CreateContext&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_strcmp&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_mesa_enable_sw_extensions&#39;<br>

 /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_swsetup_Wakeup&#39;<br> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6: undefined reference to `_tnl_CreateContext&#39;<br>

 collect2: ld returned 1 exit status<br> make[2]: *** [bin/TestParallelRendering] Error 1<br> make[1]: *** [VTK/Parallel/Testing/Cxx/CMakeFiles/TestParallelRendering.dir/all] Error 2<br> make: *** [all] Error 2<br> ---<br>

 <br> the newer versions just have libOSMesa.so.7 undefined reference...<br> Is there anything I need to do to configure Mesa, or is this a paraview issue?<br> <br> --Josh<br> _______________________________________________<br>

 Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br> <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> </blockquote></div><br></div></blockquote></div><br></div></div></div></div></blockquote>

</div><br></div></div>