On Fri, Apr 11, 2014 at 10:37 AM, Matt Turner <matts...@gmail.com> wrote: > Someone asked about my Mesa build set up. Rather than sending it > privately I figured I'd post it for posterity on mesa-dev. > > I build with > > CFLAGS="-O2 -march=native -pipe" CXXFLAGS="$CFLAGS" ./autogen.sh > --with-dri-drivers=i965 --with-gallium-drivers= > --with-egl-platforms=x11,drm --enable-glx-tls --enable-gles1 > --enable-gles2 > > --enable-debug enables assertions and builds with -g, but also > silently adds -O0 to your CFLAGS. > > My build set up consists of > > ~/projects/mesa - contains mesa git checkout > ~/projects/mesa-release - release build directory > ~/projects/mesa-debug - debug build directory > > I do out-of-tree builds into the debug and release directories by > running ../mesa/autogen.sh ... from each of them, with the only > difference being the --enable-debug flag. > > Environment variables allow you to use your built mesa without > installing it: LIBGL_DRIVERS_PATH, LD_LIBRARY_PATH. Mesa's build > system links built files into $(builddir)/$(libdir), e.g., > ~/projects/mesa-release/lib/. I use some wrapper scripts to allow me > to easily run programs against my Mesa builds: > > ~/bin/mesa-release: > #!/bin/sh > LIBGL_DRIVERS_PATH=~/projects/mesa-release/lib > LD_LIBRARY_PATH=~/projects/mesa-release/lib:${LD_LIBRARY_PATH} $@
Note for anyone using this: gmail line wrapped this. LIBGL_DRIVERS_PATH and LD_LIBRARY_PATH need to be set on the line that executes $@. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev