Editing OSMesa

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 publish 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.
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 =
= libOSMesa =
Line 20: Line 16:
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 48: Line 44:


Floating point textures are disabled by default due to patent restrictions. We should check if we can enable it with "--enable-texture-float"
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: