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 ofgl
) - debug or not
- choice of osmesa driver:
swrast
,softpipe
,llvmpipe
orswr
(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
- 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
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):