Editing OSMesa

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
OSMesa is used since Octave 4.0 for offscreen rendering from OpenGL toolkits FLTK and Qt.
+
The minimum required version of OSMesa for Octave is 9.0.0
  
This enables printing without a X display, for example when ssh'ing to a remote machine, or if the figure is invisible ({{bug|33180}}).
+
OSMesa versions < 9.0 show a strange bug where the return values of
 
 
 
 
= 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 16: Line 11:
 
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 libOSMesa from source ==
+
== Build OSMesa 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/mesa-10.5.4.tar.xz
+
   wget -nc ftp://ftp.freedesktop.org/pub/mesa/current/MesaLib-10.2.2.tar.bz2
   tar Jxf mesa-10.5.4.tar.xz
+
   tar xjf MesaLib-10.2.2.tar.bz2
   cd mesa-10.5.4/
+
   cd Mesa-10.2.2/
 
    
 
    
 
   autoreconf -fi
 
   autoreconf -fi
Line 34: Line 29:
 
     --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 44: Line 40:
 
   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\)"
 

Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: