[Paraview] [paraview] compiling Mesa with paraview

Dave Partyka dave.partyka at kitware.com
Fri Oct 15 13:33:40 EDT 2010


Hi Josh,

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 OPENGL_gl_LIBRARY blank (I believe because all of the GL symbols
are then included in libOSMesa).

Also you need to build Mesa as Kevin described with these options.

rm -rf /home/kevin/mesa_osmesa/*
cd /home/kevin/mesa
make realclean
git pull origin
./autogen.sh \
 --prefix=/home/kevin/mesa_osmesa/ \
 --with-driver=osmesa \
 --disable-gallium

make -j8
make install

On Fri, Oct 15, 2010 at 1:23 PM, Joshua Wu <joshuawu at lanl.gov> wrote:

> I tried your configuration for 7.5.2
> I also included the OPENGL_gl_LIBRARY in my configuration
> since if I don't include OPENGL_gl_LIBRARY, I would get the
> same error
>
> this is what I'm getting
>
> ---
> Scanning dependencies of target PSLACReaderLinear
> [ 46%] [ 46%] Built target DistributedData
> Built target DistributedDataRenderPass
> Linking CXX executable ../../../../bin/GenericCommunicator
> Scanning dependencies of target PSLACReaderQuadratic
> Scanning dependencies of target SocketClient
> [ 46%] Building CXX object
> VTK/Parallel/Testing/Cxx/CMakeFiles/PSLACReaderLinear.dir/PSLACReaderLinear.cxx.o
> [ 50%] Built target vtkGraphicsCS
> Scanning dependencies of target SocketServer
> [ 50%] [ 50%] Building CXX object
> VTK/Parallel/Testing/Cxx/CMakeFiles/PSLACReaderQuadratic.dir/PSLACReaderQuadratic.cxx.o
> Building CXX object
> VTK/Parallel/Testing/Cxx/CMakeFiles/SocketClient.dir/SocketClient.cxx.o
> [ 51%] Built target GraphicsCxxTests
> [ 51%] [ 54%] Built target vtkRenderingPythonD
> [ 54%] Building CXX object
> VTK/Parallel/Testing/Cxx/CMakeFiles/SocketClient.dir/ExerciseMultiProcessController.cxx.o
> [ 54%] Building CXX object
> VTK/Parallel/Testing/Cxx/CMakeFiles/SocketServer.dir/SocketServer.cxx.o
> Building CXX object
> VTK/Parallel/Testing/Cxx/CMakeFiles/SocketServer.dir/ExerciseMultiProcessController.cxx.o
> [ 54%] Built target vtkHybrid
> Scanning dependencies of target TestClientServerRendering
> [ 54%] Building CXX object
> VTK/Parallel/Testing/Cxx/CMakeFiles/TestClientServerRendering.dir/TestClientServerRendering.cxx.o
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_366'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_358'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_364'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_359'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_365'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_356'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_357'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_362'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_363'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_361'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/GenericCommunicator] Error 1
> make[1]: ***
> [VTK/Parallel/Testing/Cxx/CMakeFiles/GenericCommunicator.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> Linking CXX executable ../../../../bin/PSLACReaderLinear
> Linking CXX executable ../../../../bin/PSLACReaderQuadratic
> [ 54%] Built target PSLACReaderLinear
> [ 54%] Built target PSLACReaderQuadratic
> Linking CXX executable ../../../../bin/TestClientServerRendering
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_366'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_358'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_364'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_359'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_365'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_356'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_357'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_362'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_363'
> /usr/local/lib/libOSMesa.so.7: undefined reference to
> `gl_dispatch_stub_361'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/TestClientServerRendering] Error 1
> make[1]: ***
> [VTK/Parallel/Testing/Cxx/CMakeFiles/TestClientServerRendering.dir/all]
> Error 2
> Linking CXX executable ../../../../bin/SocketClient
> [ 54%] Built target SocketClient
> Linking CXX executable ../../../../bin/SocketServer
> [ 54%] Built target SocketServer
> make: *** [all] Error 2
>
> ---
>
> this is what I have for my Cmake config for Mesa
>
> ---
>  OPENGL_INCLUDE_DIR
> /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/include
>
>
>  OPENGL_gl_LIBRARY
>  /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/lib/libGL.so
>
>
>  OPENGL_glu_LIBRARY
> /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/lib/libGLU.so
>
>
>  OPENGL_xmesa_INCLUDE_DIR         OPENGL_xmesa_INCLUDE_DIR-NOTFOUND
>
>
>
>  OSMESA_INCLUDE_DIR
> /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/include
>
>
>  OSMESA_LIBRARY
> /home/joshuawu/remoteparaview/mesa/Mesa-7.5.2/lib/libOSMesa.so
>
> VTK_OPENGL_HAS_OSMESA : ON
> VTK_USE_MANGLED_MESA : OFF
> VTK_USE_OFFSCREEN : ON
>
> VTK_USE_X : OFF
>
> ---
>
> --Josh
> On Oct 14, 2010, at 9:27 AM, Dave Partyka 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
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101015/73eed1ee/attachment-0001.htm>


More information about the ParaView mailing list