Linux Build Instructions
On Linux, OpenSWR is built using the standard autoconf package as described here, with the addition of "swr" to the list of gallium drivers. Mesa requires some additional packages to build. Please follow the Mesa instructions and make sure you install them. One of the major Mesa requirements is LLVM, but with some additional flags required.
The instructions below describe how to compile Mesa using the Mesa released tarballs. Compiling directly from the git repository is more complicated and is beyond the scope of these instructions. If you want to compile from the git repository and you have problems, please contact us directly.
makecommand with the correct
-jparameter for your system
mkdir llvm cd llvm tar xfJ /path/to/llvm-x.y.z.src.tar.xz mkdir build root cd build cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DBUILD_SHARED_LIBS=1 -DLLVM_ENABLE_RTTI=1 -DCMAKE_INSTALL_PREFIX=$PWD/../root ../llvm-x.y.z.src make -j10 make install cd .. # Allow the mesa build to locate llvm export PATH=$PATH:$PWD/root/bin export LD_LIBRARY_PATH=$PWD/root/lib cd ..
If you have VL in your system, you will need to also pass the following flags:
../configure --disable-dri --disable-egl --disable-gbm --with-gallium-drivers=swrast,swr --with-platforms=x11
If you want to compile OSMesa, please add the following flags:
--disable-xvmc --disable-vdpau --disable-omx --disable-va
makefor your system
The resulting libraries are in the lib/gallium directory.
Please feel free to modify the above instructions to fit your needs.