trevorsandy / osmesa-install

script and patches to build and install variations of OSMesa http://www.mesa3d.org/osmesa.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

osmesa-install

Script and patches to build and install variations of OSMesa http://www.mesa3d.org/osmesa.html:

  • "mangled" or not (in mangled OSMesa, all functions start with mgl instead of gl)
  • debug or not
  • choice of osmesa driver: swrast, softpipe, llvmpipe or swr (SWR is not yet supported on macOS)
  • possibility to also compile and install LLVM 4.0.0 or 3.4.2 for the llvmpipe driver

Usage

  • edit variables / paths as the beginning of the osmesa-install.sh script
  • compile and install:
mkdir build
cd build
sh ../osmesa-install.sh
  • there is a test program on the osdemo directory, with a few checks

Notes and caveats

The script fixes the following Mesa bugs related to mangled OSMesa:

Also note that the latest clang (tested with 4.0.0) does not build on 32 bits mingw64 due to the following gcc bug (older versions of clang work):

About

script and patches to build and install variations of OSMesa http://www.mesa3d.org/osmesa.html

License:GNU General Public License v3.0


Languages

Language:Shell 77.7%Language:C 20.8%Language:Makefile 1.5%