[Paraview] [paraview] compiling Mesa with paraview
Berk Geveci
berk.geveci at kitware.com
Thu Oct 14 11:34:25 EDT 2010
Just a comment:
If you are building ParaView for desktop use, do not set OSMESA (i.e.
set VTK_OPENGL_HAS_OSMESA to OFF). Set OPENGL_gl_LIBRARY to Mesa's GL
library.
If you are building ParaView for server use (only) and you want
offscreen rendering support, follow Dave's instructions.
After Mesa's latest changes, you need to build two different versions
of ParaView if you want offscreen rendering with OSMesa on the server.
-berk
On Thu, Oct 14, 2010 at 11:27 AM, Dave Partyka <dave.partyka at kitware.com> wrote:
> Hi Joshua,
> The best way to configure paraview with OSMesa is to use the following
> settings.
> VTK_USE_X : OFF
> OPENGL_gl_LIBRARY : <leave this blank>
> OPENGL_glu_LIBRARY: to osmesa's libGLU.so.
> OSMESA_LIBRARY : /usr/lib64/libOSMesa.so
> VTK_OPENGL_HAS_OSMESA : ON
> VTK_USE_MANGLED_MESA : OFF
> VTK_USE_OFFSCREEN : ON
>
> 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.
> On Thu, Oct 14, 2010 at 10:13 AM, Joshua Wu <joshuawu at lanl.gov> wrote:
>>
>> I'm recently started to install paraview on a new machine,
>> OS is Ubuntu, a 64 bit machine.
>> Mesa itself is built smoothly and my cmake configuration
>> is the same as I built before (I successfully built Mesa with
>> PV many times), I've tried three versions of Mesa to be
>> integrated into PV, 7.9, 7.6.1 and 7.0.4. About 48% of building PV,
>> I get the following consistent error
>>
>> ---
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_create_framebuffer'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_free_context_data'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_get_current_context'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_vbo_InvalidateState'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_initialize_context'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_reference_renderbuffer'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_enable_1_4_extensions'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swrast_choose_triangle'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_error'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_add_soft_renderbuffers'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_add_renderbuffer'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_enable_1_3_extensions'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_calloc'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_problem'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_enable_1_5_extensions'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_vbo_CreateContext'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swrast_choose_line'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_free'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swsetup_DestroyContext'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_make_current'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_new_renderbuffer'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_tnl_DestroyContext'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_init_driver_functions'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_update_framebuffer_visual'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_destroy_visual'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_unreference_framebuffer'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_vbo_DestroyContext'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_remove_renderbuffer'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_create_visual'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swrast_DestroyContext'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swrast_CreateContext'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swrast_InvalidateState'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_resize_framebuffer'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_tnl_run_pipeline'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swsetup_InvalidateState'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_tnl_InvalidateState'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swsetup_CreateContext'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_strcmp'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_mesa_enable_sw_extensions'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_swsetup_Wakeup'
>> /home/joshuawu/remoteparaview/mesa/Mesa-7.0.4/lib64/libOSMesa.so.6:
>> undefined reference to `_tnl_CreateContext'
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/TestParallelRendering] Error 1
>> make[1]: ***
>> [VTK/Parallel/Testing/Cxx/CMakeFiles/TestParallelRendering.dir/all] Error 2
>> make: *** [all] Error 2
>> ---
>>
>> the newer versions just have libOSMesa.so.7 undefined reference...
>> Is there anything I need to do to configure Mesa, or is this a paraview
>> issue?
>>
>> --Josh
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
More information about the ParaView
mailing list