[Mesa-dev] Segmentation fault with VTK OffScreenRendering

Kevin H. Hobbs hobbsk at ohio.edu
Fri Jan 27 12:28:23 PST 2012


So you want to get OSMesa from Mesa-7.11.2 working with VTK-5.8.0 on
Fedora 15?

You can do without the VTKData lines.
They don't add as many tests as I thought.


# Go somewhere to play around
cd /tmp

# get Mesa
wget ftp://ftp.freedesktop.org/pub/mesa/7.11.2/MesaLib-7.11.2.tar.bz2

# get VTK and test data
wget http://www.vtk.org/files/release/5.8/vtk-5.8.0.tar.gz
wget http://www.vtk.org/files/release/5.8/vtkdata-5.8.0.tar.gz

# untar Mesa
tar -xjvf MesaLib-7.11.2.tar.bz2

# Configure and build mesa
cd Mesa-7.11.2/
./configure \
  --with-driver=osmesa \
  --with-gallium-drivers="" \
  --disable-egl

make -j4
cd ..

# Untar VTK and VTKData
tar -xzvf vtk-5.8.0.tar.gz
tar -xzvf vtkdata-5.8.0.tar.gz


# Configure and build VTK
mkdir VTK_Build
cd VTK_Build/
cmake \
  -D"VTK_DATA_ROOT:PATH=/tmp/VTKData" \
  -D"OPENGL_INCLUDE_DIR:PATH=/tmp/Mesa-7.11.2/include" \
  -D"OPENGL_gl_LIBRARY:FILEPATH=" \
  -D"OPENGL_glu_LIBRARY:FILEPATH=/tmp/Mesa-7.11.2/lib/libGLU.so" \
  -D"VTK_OPENGL_HAS_OSMESA:BOOL=ON" \
  -D"OSMESA_INCLUDE_DIR:PATH=/tmp/Mesa-7.11.2/include" \
  -D"OSMESA_LIBRARY:FILEPATH=/tmp/Mesa-7.11.2/lib/libOSMesa.so" \
  -D"VTK_USE_OFFSCREEN:BOOL=ON" \
  -D"VTK_USE_X:BOOL=OFF" \
  /tmp/VTK

make -j4
make test

When I run this I get only three test failures out of 463.

The following tests FAILED:
        146 - TestTecplotReader (Failed)
        203 - TestMultiTexturing (SEGFAULT)
        204 - TestMultiTexturingTransform (SEGFAULT)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120127/4c8cb3c2/attachment.pgp>


More information about the mesa-dev mailing list