Kompilere LIBDRM p Scientific Linux 7

Webside https://01.org/linuxgraphics/community/libdrm

Installer avhengigheter
yum install xorg-x11-util-macros libpciaccess-devel

Hent ned og kompiler
source /opt/rh/devtoolset-3/enable

cd /tmp ; git clone git://anongit.freedesktop.org/mesa/drm
cd drm
./autogen.sh
ver=$( grep PACKAGE_VERSION= configure | cut -f2 -d\' ) ; echo $ver
./configure --prefix=/opt/libdrm-$ver 
make
make check

Installer til /opt/libdrm-... som root kjr
cd /tmp/drm
make install

Bruk
export LD_LIBRARY_PATH=/opt/libdrm-2.4.96/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

export LIBDRM_ROOT=/opt/libdrm-2.4.96
export LIBDRM_CFLAGS="-I${LIBDRM_ROOT}/include -I${LIBDRM_ROOT}/include/libdrm"
export LIBDRM_LIBS="-L${LIBDRM_ROOT}/lib -ldrm"
Topic revision: r2 - 2018-12-13, TheodorIvesdal
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback