[Mesa-dev] mesa-demos: Fixing build errors, add information to glx{gears, info}, CMake improvements

Johannes Obermayr johannesobermayr at gmx.de
Sat Nov 19 08:51:20 PST 2011


The patches can be used independent. Patch 6 applies only clean with applied patch 5 because of changes in same section of CMakeLists.txt.

Patches 1 and 2:
Fix build errors on CMake and Autoconf build.

Patches 3 and 4 (by Matthias Hopf on openSUSE):
Add some information about direct rendering, hardware acceleration and validity to glxgears and glxinfo.

Patch 5:
Install shared libraries on CMake build (if -DBUILD_SHARED_LIBS).

Patch 6:
Add possibility to use linux filesystem hierarchy on CMake build.

It introduces following variables (as prefixes):
  (-D)BINDIR  - default: none, ${BINDIR}/${subdir}
  (-D)DATADIR - default: none, ${DATADIR}/${subdir}
  (-D)DOCDIR  - default: doc

Following CMake build was successfully tested by me:
cmake .. '-DCMAKE_C_FLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' '-DCMAKE_CXX_FLAGS=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DBINDIR=/usr/lib/mesa-demos -DDATADIR=/usr/share/mesa-demos -DDOCDIR=/usr/share/doc/packages/mesa-demos -DLIBDIR=/usr/lib64


PS: Please CC me on discussion.


More information about the mesa-dev mailing list