OSMesa: Difference between revisions

Jump to navigation Jump to search
1,238 bytes added ,  18 November 2017
no edit summary
(Created page with "The minimum required version of OSMesa for Octave is 9.0.0 OSMesa versions < 9.0 show a strange bug where the return values of glGetIntegerv (GL_DEPTH_BITS, &z); glGetIn...")
 
No edit summary
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The minimum required version of OSMesa for Octave is 9.0.0
OSMesa is used since Octave 4.0 for offscreen rendering from OpenGL toolkits FLTK and Qt.


OSMesa versions < 9.0 show a strange bug where the return values of
This enables printing without a X display, for example when ssh'ing to a remote machine, or if the figure is invisible ({{bug|33180}}).
 
 
= libOSMesa =
 
The minimum required version of OSMesa for Octave is 9.0.0. Versions < 9.0 show a strange bug where the return values of


   glGetIntegerv (GL_DEPTH_BITS, &z);
   glGetIntegerv (GL_DEPTH_BITS, &z);
Line 11: Line 16:
On Debian GNU/Linux 8.0 (jessie), Ubuntu 14.04 (trusty) and Fedora 21 there is no need to build OSMesa from source, just use your package manager which installs libosmesa > 10.0.
On Debian GNU/Linux 8.0 (jessie), Ubuntu 14.04 (trusty) and Fedora 21 there is no need to build OSMesa from source, just use your package manager which installs libosmesa > 10.0.


== Build OSMesa from source ==
== Build libOSMesa from source ==


Needed for example for Debian wheezy or Ubuntu 12.04.5 which ships OSMesa 8.0.5.
Needed for example for Debian wheezy or Ubuntu 12.04.5 which ships OSMesa 8.0.5.


   wget -nc ftp://ftp.freedesktop.org/pub/mesa/current/MesaLib-10.2.2.tar.bz2
   wget -nc ftp://ftp.freedesktop.org/pub/mesa/current/mesa-10.5.4.tar.xz
   tar xjf MesaLib-10.2.2.tar.bz2
   tar Jxf mesa-10.5.4.tar.xz
   cd Mesa-10.2.2/
   cd mesa-10.5.4/
    
    
   autoreconf -fi
   autoreconf -fi
Line 29: Line 34:
     --with-dri-drivers="" \
     --with-dri-drivers="" \
     --with-gallium-drivers="" \
     --with-gallium-drivers="" \
    --enable-texture-float \
     --disable-shared-glapi \
     --disable-shared-glapi \
     --disable-egl \
     --disable-egl \
Line 40: Line 44:
   make check
   make check
   sudo make install
   sudo make install
=== Floating point textures ===
Floating point textures are disabled by default due to patent restrictions. We should check if we can enable it with "--enable-texture-float"
== known problems ==
Unfortunately, there are several known problems with using on-screen Mesa and OSMesa at the same time.
The --without-OSMesa configure can be used to disable OSMesa if a problem is encountered.
* {{bug|44478}} segmentation fault when using proprietary Nvidia drivers
* {{bug|44979}} clumsy/missing configure check, relies on runtime failure
* {{bug|44338}} doesn't work at all on Windows
* [https://bugs.launchpad.net/bugs/1424059 LP #1424059] libosmesa6 is not installable on Ubuntu 14.04 with HWE updates
* {{bug|50479}} doesn't work at all with libglvnd, now standard in most distributions
=== workarounds ===
* Preload the Mesa libGL.so, for example
  export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so
== Reporting Bugs ==
* Please include the output of
  glxinfo | grep "^OpenGL \(renderer\|core profile version\|vendor\)"
219

edits

Navigation menu