3d applications compete to 'stay on top' with the radeon driver
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1. Yep. This is the right git repository for Mesa. You should use the master branch.
2. Also, the util-macros and libdrm are from right repositories.
3. "--enable-gallium" is enough, because the Mesa git tree use now as default Gallium for R300. If you add "--enable-gallium-radeon", you will build also a DDX driver for R300 (an equivalent of xf86-video-ati) and THIS DRIVER WILL OVERRIDE the xf86-video-ati's radeon driver on installation. You can try this method in a second shoot.
4. Here you go: git://anongit.freedesktop.org/xorg/driver/xf86-video-ati
A very important note: because the configure flags are critical on those toys, you should use SlackBuilds to generate packages.
A very usefully thread to catch the required scripts are here:
One thing about LLVM. The Slackbuilds.org have a build for LVM 2.7 but today version is 2.8, and the Mesa guys claim that this version work much better for Mesa. Download the 2.8 version from http://www.llvm.org and you need only to adjust the $VERSION on llvm.SlackBuild.
Of course you can take a shoot. In fact, he use the latest stable versions released.
But, I prefer to stay on top of git with those toys and I update the packages from my graphics stack every week. Of course, this is my personal opinion ...
#!/bin/sh
CWD=`pwd`
DATE=$(date +%Y%m%d)
if [ ! -d $CWD/util-macros ] ; then
git clone git://anongit.freedesktop.org/git/xorg/util/macros util-macros
else
( cd $CWD/util-macros ; git pull origin )
fi
# Create the source archive
SRCVERSION=$( sed -n "/^AC_INIT(/,/)/p" $CWD/util-macros/configure.ac | tr -d '[],\n' | awk '{print$2}' )
VERSION="${SRCVERSION}_git${DATE}"
( cd util-macros
git archive --format=tar --prefix=util-macros-${VERSION}/ HEAD | bzip2 -zc > $CWD/util-macros-${VERSION}.tar.bz2
)
util-macros.SlackBuild
Code:
#!/bin/sh
# Copyright 2006, 2007, 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PKGNAM=util-macros
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
# Automatically determine architecture for build & packaging:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
esac
fi
NUMJOBS=${NUMJOBS:-" -j7 "}
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf ${PKGNAM}-${VERSION}
tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z* || exit 1
cd ${PKGNAM}-$VERSION
if [ ! -f ./configure ] ; then
autoreconf -v --install
fi
# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Configure:
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux
# Build and install:
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
# Compress and link manpages, if any:
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
for manpagedir in $(find . -type d -name "man*") ; do
( cd $manpagedir
for eachpage in $( find . -type l -maxdepth 1) ; do
ln -s $( readlink $eachpage ).gz $eachpage.gz
rm $eachpage
done
gzip -9 *.?
)
done
)
fi
# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
( cd $PKG/usr/info
rm -f dir
gzip -9 *
)
fi
# Add a documentation directory:
mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION
cp -a \
README \
$PKG/usr/doc/${PKGNAM}-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $TMP/package-${PKGNAM}
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-noarch-$BUILD.txz
slack-desc
Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
util-macros: util-macros
util-macros:
util-macros: util-macros is part of X11.
util-macros:
util-macros: For more information about the X.Org Foundation (the providers of the
util-macros: X.Org implementation of the X Window System), see their website:
util-macros:
util-macros: http://www.x.org
util-macros:
util-macros:
util-macros:
Last edited by Darth Vader; 10-27-2010 at 10:28 AM.
Reason: SILLY TIPPOS
./windows/VC8/progs/demos/gears.vcproj
./windows/VC8/progs/glut
./windows/VC8/progs/glut/glut.vcproj
./windows/VC8/progs/progs.sln
find: ` ': No such file or directory ./mesa.Slackbuild: line 33: (: command not found
./mesa.Slackbuild: line 35: (: command not found
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:9: run info '(automake)Extending aclocal'
/usr/share/aclocal/imlib.m4:9: or see http://sources.redhat.com/automake/autom ake.html#Extending-aclocal
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf
autoreconf: configure.ac: not using Autoheader
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory `.'
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gmake... gmake
checking for makedepend... /usr/bin/makedepend
checking for sed... /usr/bin/sed
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking if compiling with clang... no
checking whether gcc version is sufficient... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether gcc supports -fvisibility=hidden... yes
checking whether g++ supports -fvisibility=hidden... yes
checking whether to enable assembly... yes, x86
checking for gcc option to produce PIC... -fPIC
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for posix_memalign... yes
checking for TALLOC... yes
checking pkg-config files for X11 are available... yes
checking for X11... yes
checking for LIBDRM... yes
checking for DRI2PROTO... yes
checking for GLPROTO... yes
checking for XF86VIDMODE... yes
checking for DRIGL... yes
checking for LIBDRM_RADEON... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes
checking for INTEL... yes
checking for XCB_DRI2... yes
checking for LIBUDEV... yes
checking for GLW... yes
checking for GLUT... yes
checking udis86.h usability... no
checking udis86.h presence... no
checking for udis86.h... no checking for llvm-config... /usr/bin/llvm-config
checking for XORG... yes
checking for XEXT... yes
configure: creating ./config.status
config.status: creating configs/autoconf
config.status: executing configs commands
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh bin/config.sub failed
./mesa.Slackbuild: line 44: --prefix=/usr: No such file or directory
./mesa.Slackbuild: line 46: --sysconfdir=/etc: No such file or directory
./mesa.Slackbuild: line 48: --docdir=/usr/doc/mesa-20101027_git: No such file or directory
./mesa.Slackbuild: line 50: --with-dri-driverdir=/usr/lib/xorg/modules/dri: No s uch file or directory
./mesa.Slackbuild: line 51: --enable-gallium-llvm: command not found
./mesa.Slackbuild: line 52: --enable-gallium-swrast: command not found
./mesa.Slackbuild: line 53: --enable-debug: command not found
./mesa.Slackbuild: line 54: --build=i486-slackware-linux: command not found
make[1]: Entering directory `/tmp/mesa-20101027_git/src'
Making sources for autoconf
gmake[2]: Entering directory `/tmp/mesa-20101027_git/src/mapi/glapi'
running /usr/bin/makedepend
gmake[2]: Leaving directory `/tmp/mesa-20101027_git/src/mapi/glapi'
gmake[2]: Entering directory `/tmp/mesa-20101027_git/src/mapi/glapi'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.