LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-12-2014, 06:41 AM   #16
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,579
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037

I will add it if I have some spare time and see if it makes a difference. I also consider to create a repo with an updated graphics stack for radeon users on Slackware, since these questions come up pretty often, but this is something I don't have time for until end of next week.
 
Old 03-12-2014, 07:28 AM   #17
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
Ok guys, thanks for all the help. Will try when get home in a few hours. Will also post the results, I hope it works. I know I am never buying an AMD card again.
 
Old 03-12-2014, 11:30 AM   #18
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
After reading a bit, just a little I must confess. I decided to do sort of frankeinstein SlackBuild using both of your SlackBuilds. Here is how it looks like (I had to remove "intel" off DRI_DRIVERS since it was giving me an error "configure: error: DRI driver directory 'intel' does not exist"). I got a bit confused but I think the SlackBuild is right:

I'd use llvm-shared-libraries, thought it'd be a good thing but I didn't build llvm with shared libraries (oops) and since I don't want to rebuild it I removed it too.
Code:
#!/bin/sh

# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013  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=mesa
VERSION=10.1.0
DEMOVERS=8.1.0
BUILD=${BUILD:-1}

# Be sure this list is up-to-date:
DRI_DRIVERS="i915,i965,radeon,swrast"

NUMJOBS=${NUMJOBS:--j8}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) export ARCH=i486 ;;
    arm*) export ARCH=arm ;;
       *) export ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  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 Mesa-${VERSION}

tar xvf $CWD/MesaLib-${VERSION}.tar.?z* || exit 1
cd Mesa-$VERSION

# Let's kill the warning about operating on a dangling symlink:
rm -f src/gallium/state_trackers/d3d1x/w32api

# 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 {} \;

# Apply patches from git (and maybe elsewhere):
# Patches obtained by:
#   git checkout origin/8.0
#   git format-patch 3d657b14b4cab98a2945904823e78cd8950944f4.. # 8.0.3 release
if /bin/ls $CWD/patches/*.patch 1> /dev/null 2> /dev/null ; then
  for patch in $CWD/patches/*.patch ; do
    patch -p1 < $patch || exit 1 ; 
  done
fi

if [ ! -r configure ]; then
  autoreconf || exit 1
fi

# Running autogen to avoid problems if our autotools don't match upstream's:
./autogen.sh

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/mesa-$VERSION \
  --with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
  --with-dri-drivers="$DRI_DRIVERS" \
  --with-egl-platforms="drm,x11" \
  --with-gallium-drivers="r300,r600" \
  --enable-gles1 \
  --enable-gles2 \
  --enable-openvg \
  --enable-gbm \
  --enable-gallium-egl \
  --enable-gallium-gbm \
  --enable-xorg \
  --enable-glx-tls \
  --enable-gallium-llvm \
  --enable-vdpau \
  --enable-texture-float \
  --enable-shared-glapi \
  --enable-xa \
  --enable-osmesa \
  --enable-r600-llvm-compiler \
  --disable-dri3 \
  --build=$ARCH-slackware-linux

# r300 requires llvm
# Other gallium drivers:
# galahad,i915,identity,llvmpipe,noop,nv50,nvc0,nvfx,rbug,softpipe,svga,trace

make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1

# Now install the demos
( cd $TMP
  rm -rf mesa-demos-$DEMOVERS
  tar xvf $CWD/mesa-demos-$DEMOVERS.tar.?z* || exit 1
  cd mesa-demos-$DEMOVERS
  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 {} \;  
  CFLAGS="$SLKCFLAGS" \
  ./configure \
    --prefix=/usr \
    --build=$ARCH-slackware-linux
  # Build and install gears and glinfo, as well as a few other demos
  make -C src/demos gears glinfo
  make -C src/xdemos \
    glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
    glxheads glxinfo glxpbdemo glxpixmap
  mkdir -p $PKG/usr/bin
  cp -a src/demos/{gears,glinfo} $PKG/usr/bin
  for i in glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
      glxheads glxinfo glxpbdemo glxpixmap ; do
        cp -a src/xdemos/$i $PKG/usr/bin ;
  done
)
  
# 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

find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
  rm -f $PKG/usr/info/dir
  gzip -9 $PKG/usr/info/*
fi

mkdir -p $PKG/usr/doc/Mesa-$VERSION/html
cp -a \
  docs/COPYING* docs/relnotes-${VERSION}*.html docs/README* docs/GL* \
  $PKG/usr/doc/Mesa-$VERSION
cp -a docs/*.html $PKG/usr/doc/Mesa-$VERSION/html
rm -f $PKG/usr/doc/Mesa-$VERSION/html/relnotes*.html

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
And, well, while I was finishing this post the build failed

Code:
Making all in gallium/auxiliary
gmake[2]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary'
Making all in pipe-loader
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary/pipe-loader'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary/pipe-loader'
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary'
gmake[3]: Nada a ser feito para `all-am'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary'
gmake[2]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/auxiliary'
Making all in gallium/drivers
gmake[2]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers'
Making all in .
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers'
gmake[3]: Nada a ser feito para `all-am'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers'
Making all in galahad
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/galahad'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/galahad'
Making all in identity
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/identity'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/identity'
Making all in noop
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/noop'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/noop'
Making all in trace
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/trace'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/trace'
Making all in rbug
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/rbug'
gmake[3]: Nada a ser feito para `all'.
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/rbug'
Making all in radeon
gmake[3]: Entrando no diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/radeon'
  CCLD   libradeon.la
  CC     libllvmradeon_la-radeon_llvm_emit.lo
radeon_llvm_emit.c:35:20: fatal error: libelf.h: No such file or directory
 #include <libelf.h>
                    ^
compilation terminated.
gmake[3]: ** [libllvmradeon_la-radeon_llvm_emit.lo] Erro 1
gmake[3]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers/radeon'
gmake[2]: ** [all-recursive] Erro 1
gmake[2]: Saindo do diretório `/tmp/Mesa-10.1.0/src/gallium/drivers'
gmake[1]: ** [all-recursive] Erro 1
gmake[1]: Saindo do diretório `/tmp/Mesa-10.1.0/src'
make: ** [all-recursive] Erro 1
root@darkstar:/home/pedro/SlackBuilds/14.1/mesa#
 
Old 03-12-2014, 12:17 PM   #19
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,579
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
A missing libelf is surprising, since libelf is part of a standard Slackware installation. I assume that you did a full install?
 
Old 03-12-2014, 01:41 PM   #20
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
I just skipped KDE and a few other packages, I might have removed. What is the name of the package? Libelf?
EDIT: found some old libelf packages on google, I guess it is not called libelf anymore.

Last edited by moisespedro; 03-12-2014 at 01:45 PM.
 
Old 03-12-2014, 02:43 PM   #21
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,579
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
Quote:
Originally Posted by moisespedro View Post
I just skipped KDE and a few other packages, I might have removed. What is the name of the package? Libelf?
EDIT: found some old libelf packages on google, I guess it is not called libelf anymore.
Code:
>>> slackpkg search libelf 

DONE

The list below shows all packages with name matching "libelf".

[ Status           ] [ Repository               ] [ Package                                  ]
   installed                                        libelf-0.8.13-x86_64-2                    
   installed           multilib                     libelf-compat32-0.8.13-x86_64-2compat32   

You can search specific files using "slackpkg file-search file".
>>> find slackware64 -name "libelf*.txz"
slackware64/l/libelf-0.8.13-x86_64-2.txz
As you can see, libelf is still a normal package in a standard installation. For the future, if you ask for help with a non-standard installation please provide the info that it is a non-standard installation.
 
Old 03-12-2014, 02:45 PM   #22
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
Things got weird, I have libelf installed
Code:
root@darkstar:~# slackpkg search libelf

DONE

The list below shows all packages with name matching "libelf".

[ Status           ] [ Repository               ] [ Package                                  ]
   installed                                        libelf-0.8.13-x86_64-2                    
   installed           multilib                     libelf-compat32-0.8.13-x86_64-2compat32   

You can search specific files using "slackpkg file-search file".
 
Old 03-12-2014, 02:50 PM   #23
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,579
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
That is indeed weird. If such things happen I usually repeat the process in a clean chroot to rule out errors in my installation.
 
Old 03-12-2014, 02:55 PM   #24
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
EDIT: Forget this. Could it be something related to llvm?
EDIT2: Or libelf being misplaced?
EDIT3:
Contents of the libelf package I just reinstalled (stock slackware version)
Code:
install/slack-desc
install/doinst.sh
usr/doc/libelf-0.8.13/INSTALL
usr/doc/libelf-0.8.13/README
usr/doc/libelf-0.8.13/COPYING.LIB
usr/doc/libelf-0.8.13/ChangeLog
usr/lib64/libelf.a
usr/lib64/pkgconfig/libelf.pc
usr/lib64/libelf.so.0.8.13
usr/include/libelf/nlist.h
usr/include/libelf/libelf.h
usr/include/libelf/elf_repl.h
usr/include/libelf/sys_elf.h
usr/include/libelf/gelf.h
usr/share/locale/de/LC_MESSAGES/libelf.mo
EDIT4: I am sort of o a noob on this type of thing (still) but could it be related to this:
--libdir=/usr/lib${LIBDIRSUFFIX} \ (from the mesa.SlackBuild - LIBDIRSUFFIX being = 64)
EDIT5: root@darkstar:/home/pedro/SlackBuilds/14.1/mesa# ls /usr/lib64/ | grep libelf
libelf.a
libelf.so@
libelf.so.0@
libelf.so.0.8.13*

root@darkstar:/home/pedro/SlackBuilds/14.1/mesa# ls /usr/include/libelf/
elf_repl.h gelf.h libelf.h nlist.h sys_elf.h

Last edited by moisespedro; 03-12-2014 at 03:08 PM.
 
Old 03-12-2014, 04:31 PM   #25
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,579
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
Have you tried to run the Slackbuild again after re-installing libelf? Also, does the Slackbuild as you have it now work in a clean chroot?
 
Old 03-12-2014, 06:35 PM   #26
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
Yes I tried and what do you mean by a clean chroot?
 
Old 03-13-2014, 11:17 AM   #27
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
I did a bit of research and are you talking about something like this?
http://slackworld.berlios.de/2007/chroot_howto.html
 
Old 03-13-2014, 11:42 AM   #28
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
Guys it was something with llvm! I took " --enable-r600-llvm-compiler \" out of my SlackBuild and it worked!

Here is the SlackBuild:

Code:
#!/bin/sh

# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013  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=mesa
VERSION=10.1.0
DEMOVERS=8.1.0
BUILD=${BUILD:-1}

# Be sure this list is up-to-date:
DRI_DRIVERS="i915,i965,radeon,swrast"

NUMJOBS=${NUMJOBS:--j8}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) export ARCH=i486 ;;
    arm*) export ARCH=arm ;;
       *) export ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  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 Mesa-${VERSION}

tar xvf $CWD/MesaLib-${VERSION}.tar.?z* || exit 1
cd Mesa-$VERSION

# Let's kill the warning about operating on a dangling symlink:
rm -f src/gallium/state_trackers/d3d1x/w32api

# 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 {} \;

# Apply patches from git (and maybe elsewhere):
# Patches obtained by:
#   git checkout origin/8.0
#   git format-patch 3d657b14b4cab98a2945904823e78cd8950944f4.. # 8.0.3 release
if /bin/ls $CWD/patches/*.patch 1> /dev/null 2> /dev/null ; then
  for patch in $CWD/patches/*.patch ; do
    patch -p1 < $patch || exit 1 ; 
  done
fi

if [ ! -r configure ]; then
  autoreconf || exit 1
fi

# Running autogen to avoid problems if our autotools don't match upstream's:
./autogen.sh

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/mesa-$VERSION \
  --with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
  --with-dri-drivers="$DRI_DRIVERS" \
  --with-egl-platforms="drm,x11" \
  --with-gallium-drivers="r300,r600" \
  --enable-gles1 \
  --enable-gles2 \
  --enable-openvg \
  --enable-gbm \
  --enable-gallium-egl \
  --enable-gallium-gbm \
  --enable-xorg \
  --enable-glx-tls \
  --enable-gallium-llvm \
  --enable-vdpau \
  --enable-texture-float \
  --enable-shared-glapi \
  --enable-xa \
  --enable-osmesa \
  --disable-dri3 \
  --build=$ARCH-slackware-linux

# r300 requires llvm
# Other gallium drivers:
# galahad,i915,identity,llvmpipe,noop,nv50,nvc0,nvfx,rbug,softpipe,svga,trace

make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1

# Now install the demos
( cd $TMP
  rm -rf mesa-demos-$DEMOVERS
  tar xvf $CWD/mesa-demos-$DEMOVERS.tar.?z* || exit 1
  cd mesa-demos-$DEMOVERS
  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 {} \;  
  CFLAGS="$SLKCFLAGS" \
  ./configure \
    --prefix=/usr \
    --build=$ARCH-slackware-linux
  # Build and install gears and glinfo, as well as a few other demos
  make -C src/demos gears glinfo
  make -C src/xdemos \
    glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
    glxheads glxinfo glxpbdemo glxpixmap
  mkdir -p $PKG/usr/bin
  cp -a src/demos/{gears,glinfo} $PKG/usr/bin
  for i in glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
      glxheads glxinfo glxpbdemo glxpixmap ; do
        cp -a src/xdemos/$i $PKG/usr/bin ;
  done
)
  
# 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

find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
  rm -f $PKG/usr/info/dir
  gzip -9 $PKG/usr/info/*
fi

mkdir -p $PKG/usr/doc/Mesa-$VERSION/html
cp -a \
  docs/COPYING* docs/relnotes-${VERSION}*.html docs/README* docs/GL* \
  $PKG/usr/doc/Mesa-$VERSION
cp -a docs/*.html $PKG/usr/doc/Mesa-$VERSION/html
rm -f $PKG/usr/doc/Mesa-$VERSION/html/relnotes*.html

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
EDIT: by the way, apart from glxinfo and glxgears is there another way to check if I didn't do anything stupid?

Last edited by moisespedro; 03-13-2014 at 11:46 AM.
 
Old 03-13-2014, 03:04 PM   #29
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0, CRUX 3.1
Posts: 3,059
Blog Entries: 15

Rep: Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769
Not really. The only other thing would be to put an intensive OpenGL app to work as a load bearing test.

Remember to get driconf also.
 
Old 03-13-2014, 05:55 PM   #30
moisespedro
Member
 
Registered: Nov 2013
Distribution: Slackware
Posts: 772

Original Poster
Rep: Reputation: 80
Reaper, did you have any problems with llvm not founding libelf?
And ok I will get driconf (I think I already did)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
amd catalyst 13.12 - libGL error failed to load driver swrast Dr.Thodt Slackware 1 01-25-2014 01:35 AM
no display: Xorg, Nvidia driver broken after Etch update; Failed to load module "glx" forgox Debian 19 07-12-2010 12:26 PM
Xorg -- (EE) Failed to load module "glx" (loader failed, 7) windowsrefugeeX Linux - Software 10 09-23-2009 05:51 PM
XML load failed krishnakant Linux - General 1 05-21-2009 01:11 PM
XServer failed to load... Kieffer87 Ubuntu 2 01-16-2006 08:38 PM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration