Repository 32bit  Forum
Repository 64bit  Wiki

[RISOLTO] Problema ricompilazione MPlayer

Postate qui se avete consigli per migliorare i pacchetti disponibili in questo sito o se avete problemi con installazione, funzionamento o altro.

Moderatore: Staff

Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.

[RISOLTO] Problema ricompilazione MPlayer

Messaggioda Thraphyx » mer feb 24, 2010 21:43

Salve a tutti, ho un problema con MPlayer.. non riesco a ricompilarlo!
Avevo deciso di rifarmi il pacchetto per includere il supporto alla scheda grafica nvidia e ai video 3gp, ma non sono riuscito a ricompilarlo usando lo slackbuild.
Ho provato sia con lo slackbuild di Pat, aggiungendo solo il supporto ad nvidia, sia con un altro leggermente modificato per includere anche i codec closed e la lingua italiana. Addirittura neanche con lo script preso dal dvd riesco a compilare.. E il bello è che ogni volta da un errore diverso.. :shock:

Le opzioni in ballo sono:
Codice: Seleziona tutto
VDPADU = --enable-vdpadu
CODEC = USE_PATENTS="YES"
LINGUA = LANGUAGES="it en" o quello che è
VERSION=datacorrente per scaricare gli ultimi sorgenti disponibili


Ho letto del supporto vdpadu da questo post,
viewtopic.php?f=4&t=30364
solo che non mi è sembrato opportuno rispondere lì, visto che il problema sembra più ampio..

Incollo un pò i vari output (la parte finale, ovviamente), specificando gli script e le opzioni usate:

*SlackBuild mio (patent=yes, vdpadu, lingua, build, version)
Codice: Seleziona tutto
root@juiz:/usr/local/src/MPlayer# VERSION=2010-02-24 ./MPlayer.SlackBuild
[..cut..]
cp: impossibile fare stat di `DOCS/HTML-single': No such file or directory
mv: impossibile fare stat di `/tmp/build/package-MPlayer/usr/doc/MPlayer-2010-02-24/HTML-single': No such file or directory
./MPlayer.SlackBuild FAILED at line 349!
root@juiz:/usr/local/src/MPlayer# ls
Blue-1.7.tar.bz2  MPlayer-2010-02-24.tar.xz  MPlayer.SlackBuild*  slack-desc*


*SlackBuild mio (patent=yes, vdpadu, lingua, build, version)
Codice: Seleziona tutto
root@juiz:/usr/local/src/MPlayer# ./MPlayer.SlackBuild
[..cut..]
./MPlayer.SlackBuild: line 290: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
./MPlayer.SlackBuild FAILED at line 290!
root@juiz:/usr/local/src/MPlayer# ls
Blue-1.7.tar.bz2  MPlayer-r29390.tar.xz  MPlayer.SlackBuild*  slack-desc*


*SlackBuild di Pat (vdpadu, no x264)
Codice: Seleziona tutto
root@juiz:/usr/local/src/MPlayer# ./MPlayer.SlackBuild
[..cut..]
./MPlayer.SlackBuild: line 292: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
./MPlayer.SlackBuild FAILED at line 292!
root@juiz:/usr/local/src/MPlayer# ls
Blue-1.7.tar.bz2  MPlayer.SlackBuild*  MPlayer_nolibdvdcss-r29390.tar.xz  slack-desc*


*SlackBuild di Pat (vdpadu)
Codice: Seleziona tutto
root@juiz:/usr/local/src/MPlayer# VERSION=2010-02-24 ./MPlayer.SlackBuild
./MPlayer.SlackBuild: line 292: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
./MPlayer.SlackBuild FAILED at line 292!
root@juiz:/usr/local/src/MPlayer# ls
Blue-1.7.tar.bz2  MPlayer.SlackBuild*  MPlayer_nolibdvdcss-2010-02-24.tar.xz  slack-desc*


*SLackBuild di Pat originale
Codice: Seleziona tutto
root@juiz:/usr/local/src/MPlayer# ./MPlayer.SlackBuild
[..cut..]
./MPlayer.SlackBuild: line 289: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
./MPlayer.SlackBuild FAILED at line 289!
root@juiz:/usr/local/src/MPlayer# ls
Blue-1.7.tar.bz2  MPlayer.SlackBuild*  MPlayer_nolibdvdcss-r29390.tar.xz  slack-desc*


Non ho la minima idea di cosa possa essere.. Avrò provato a ricompilarlo una decina di volte.. Sbaglio qualcosa forse?
[-o<

EDIT:
allego lo slackbuild modificato
Allegati
MPlayer.SlackBuild.txt
mio slackbuild
(14.73 KiB) Scaricato 25 volte
Ultima modifica di Thraphyx il sab feb 27, 2010 11:23, modificato 1 volta in totale.
Avatar utente
Thraphyx
Linux 2.4
Linux 2.4
 
Messaggi: 212
Iscritto il: ven ago 28, 2009 21:43
Slackware: 14.1 multilib
Kernel: 3.10.17
Desktop: KDE 4.11.5

Re: Problema ricompilazione MPlayer

Messaggioda brainvision » mer feb 24, 2010 22:24

a me pare semplicemente che non hai scaricato le skin abilitate dalllo slackbuild. Ti dice che non le triova infatti,,
O scarichi le skin o commenti la riga in questione nello slackbuild, riga che non è affatto decisiva..
Avatar utente
brainvision
Packager
Packager
 
Messaggi: 756
Iscritto il: ven dic 26, 2008 18:23
Località: bologna (bo)
Nome Cognome: Leonardo Totaro
Slackware: x86_64-current
Kernel: 3.7.1
Desktop: xfce 4.10

Re: Problema ricompilazione MPlayer

Messaggioda phobos3576 » mer feb 24, 2010 22:47

Strano.
Come avevo già scritto nell'altra discussione, ho semplicemente preso la directory mplayer (contiene tutto il necessario, compresa la skin Blue) dal ramo source del DVD della Slackware 13, ho scaricato l'ultima SVN ed ho infine modificato la sezione ./configure dello SlackBuild con le righe:
Codice: Seleziona tutto
--enable-vdpau
--disable-x264-lavc
--disable-x264

La compilazione è andata a buon fine senza problemi.

Lo SlackBuild è questo:
Codice: Seleziona tutto
#!/bin/sh

# Copyright 2006, 2007, 2008, 2009  Eric Hameleers, Eindhoven, NL
# Copyright 2009  Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
#   Permission to use, copy, modify, and distribute this software for
#   any purpose with or without fee is hereby granted, provided that
#   the above copyright notice and this permission notice appear in all
#   copies.
#
#   THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR
#   CONTRIBUTORS 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.
# -----------------------------------------------------------------------------
#
# Slackware SlackBuild script
# ===========================
# By:        Eric Hameleers <alien@slackware.com>
# For:       MPlayer
# Descr:     a movie player for LINUX
# URL:       http://www.mplayerhq.hu/
# -----------------------------------------------------------------------------

set -e

PRGNAM=MPlayer
VERSION=${VERSION:-r29390}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-}

DOCS="AUTHORS Changelog Copyright LICENSE README DOCS/HTML-single DOCS/tech"

DEFSKIN=${DEFSKIN:-"Blue"}  # Download more skins at the following url:
SKINVER=${SKINVER:-"1.7"}   # http://www.mplayerhq.hu/design7/dload.html

# Available languages: all bg cs de dk el en es fr hu it ja
# ko mk nb nl pl ro ru sk sv tr uk pt_BR zh_CN zh_TW
LANGUAGES="en nl fr de es it"  # The default is to just add "en" documentation

if [ "$ARCH" = "x86_64" ]; then
  LIBDIRSUFFIX="64"
  # --enable-runtime-cpudetection is supported only for x86, x86_64, and PPC
  EXTRACONFIGUREOPTIONS="--enable-runtime-cpudetection"
elif [ "$ARCH" = "i486" -o \
       "$ARCH" = "i586" -o \
       "$ARCH" = "i686" ]; then
  LIBDIRSUFFIX=""
  EXTRACONFIGUREOPTIONS="--enable-runtime-cpudetection"
else
  LIBDIRSUFFIX=""
  EXTRACONFIGUREOPTIONS=""
fi

CODECSDIR=/usr/lib${LIBDIRSUFFIX}/codecs   # Where the WIN32 codecs are expected for instance

# ---------------------------------------------------------------------------
# -- PATENT ALERT! --
# MPlayer source contains an internal copy of 'libdvdcss' for reading DVD's.
# This is considered illegal software in some countries.
# Also, MPLayer can be built with MP3 (lame) and AMR audio encoders
# (needed for FLV and .3GP videos) but these libraries are 'contaminated'
# with patents from Fraunhofer and GGP.
# Also, the AAC encoder has patent issues.
# The Slackware package is built with "USE_PATENTS=NO" i.e. without using
# the lame mp3, faac, AMR and dvdcss libraries.
# This also means that this creates a version of MPlayer that is unable
# to play encrypted DVD's (which is most DVD's on the market). If it is
# allowed in your country to use libdvdcss, this is not a big problem though.
# Install a libdvdcss package and it will be picked up automatically by
# MPlayer's internal libdvdread library, so that MPlayer will again be able
# to play encrypted DVD's.
#
# If you have licenses to use the code, and/or the patents do not apply in
# your region, and you take all legal responsibility, you may wish to build
# MPlayer with the option USE_PATENTS=YES which will include potentially
# patent-encumbered code.
# ---------------------------------------------------------------------------
USE_PATENTS=${USE_PATENTS:-"NO"}

# MPlayer will try to use one of the TrueType fonts present on the target
# system for it's On Screen Display (OSD) font.
# Slackware 11.0 ships with the Vera and DejaVu fonts, you may want to add
# more fonts to this list. The first font found will be used by creating a
# symbolic link "/usr/share/mplayer/subfont.ttf" to it.
# The use of bitmapped fonts is considered deprecated, but you can still use
# those if you want. Read http://www.mplayerhq.hu/DOCS/HTML/en/fonts-osd.html
# if you want to know more about OSD font configuration.
OSDFONTS="LiberationSans-Regular.ttf \
          Arialuni.ttf arial.ttf \
          DejaVuSans.ttf Vera.ttf"

# We will work with a stripped-down source tarball, not containing libdvdcss:
[ "$USE_PATENTS" != "YES" ] && EXTRA="_nolibdvdcss" || EXTRA=""

# Where do we look for sources?
SRCDIR=$(cd $(dirname $0); pwd)

SOURCE[0]="$SRCDIR/${PRGNAM}${EXTRA}-${VERSION}.tar.xz"
SRCURL[0]=""

# The default skin to use (we need to add at least one)
SOURCE[1]="$SRCDIR/${DEFSKIN}-${SKINVER}.tar.bz2"
SRCURL[1]="http://www.mplayerhq.hu/MPlayer/skins/${DEFSKIN}-${SKINVER}.tar.bz2"

# Use the src_checkout() function if no downloadable tarball exists.
# This function checks out sources from SVN/CVS and creates a tarball of them.
src_checkout() {
  # Param #1 : index in the SOURCE[] array.
  # Param #2 : full path to where SOURCE[$1] tarball should be created.
  # Determine the tarball extension:
  PEXT=$(echo "${2}" | sed -r -e 's/.*[^.].(tar.xz|tar.gz|tar.bz2|tgz).*/\1/')
  case "$PEXT" in
    "tar.xz") TARCOMP="J" ;;
    "tar.gz") TARCOMP="z" ;;
    "tgz") TARCOMP="z" ;;
    "tar.bz2") TARCOMP="j" ;;
    *) echo "Archive can only have extension 'tar.xz', '.tar.gz' '.tar.bz2' or '.tgz'" ; exit 1 ;;
  esac
  case ${1} in
  0) # mplayer
     if [ "$(echo ${VERSION}|cut -c1)" == 'r' ]; then # revision instead of date
       REV=$(echo ${VERSION} | cut -c2-)
     else
       REV="{${VERSION}}"
     fi
     mkdir MPlayer-${VERSION} \
       && cd MPlayer-${VERSION} \
       && svn checkout  --revision $REV svn://svn.mplayerhq.hu/mplayer/trunk . \
       && find . -type d -name '.svn' -depth | xargs rm -rf \
       && ([ "$USE_PATENTS" != "YES" ] && rm -rf libdvdcss || true) \
       && chown -R root:root . \
       && cd .. \
       && tar -${TARCOMP}cf ${2} MPlayer-${VERSION}
     rm -rf MPlayer-${VERSION}
     ;;
  *) # Do nothing
     ;;
  esac
}

# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
TMP=${TMP:-/tmp/build}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

##
## --- with a little luck, you won't have to edit below this point --- ##
##

# Exit the script on errors:
set -e
trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR
# Catch unitialized variables:
set -u
P1=${1:-1}

# Create working directories:
mkdir -p $TMP/tmp-$PRGNAM # location to build the source
rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build
mkdir -p $PKG             # place for the package to be built
rm -rf $PKG/*             # erase old package's contents
mkdir -p $OUTPUT          # place for the package to be saved

# Source file availability:
for (( i = 0; i < ${#SOURCE[*]}; i++ )) ; do
  if ! [ -f ${SOURCE[$i]} ]; then
    echo "Source '$(basename ${SOURCE[$i]})' not available yet..."
    # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT
    [ -w "$SRCDIR" ] || SOURCE[$i]="$OUTPUT/$(basename ${SOURCE[$i]})"
    if ! [ "x${SRCURL[$i]}" == "x" ]; then
      echo "Will download file to $(dirname $SOURCE[$i])"
      wget -nv -T 20 -O "${SOURCE[$i]}" "${SRCURL[$i]}" || true
      if [ $? -ne 0 -o ! -s "${SOURCE[$i]}" ]; then
        echo "Downloading '$(basename ${SOURCE[$i]})' failed.. aborting the build."
        mv -f "${SOURCE[$i]}" "${SOURCE[$i]}".FAIL
        exit 1
      fi
    else
      # Try if we have a SVN/CVS download routine for ${SOURCE[$i]}
      echo "Will checkout sources to $(dirname $SOURCE[$i])"
      src_checkout $i "${SOURCE[$i]}" 2>&1 > $OUTPUT/checkout-$(basename ${SOURCE[$i]}).log
    fi
    if [ ! -f "${SOURCE[$i]}" -o ! -s "${SOURCE[$i]}" ]; then
      echo "File '$(basename ${SOURCE[$i]})' not available.. aborting the build."
      exit 1
    fi
  fi
done

if [ "$P1" == "--download" ]; then
  echo "Download complete."
  exit 0
fi

# --- PACKAGE BUILDING ---

echo "++"
echo "|| $PRGNAM-$VERSION"
echo "++"

# Warn about libdvdread requirement:
if [ "$USE_PATENTS" != "YES" ]; then
  cat <<"EOT"
**
** Removing internal DeCSS library.
** If you want to play encrypted DVD's you need to install libdvdcss separately.
** You take full legal responsibility for any use of DeCSS.  We neither supply
** DeCSS code nor endorse any illegal use of it.
**
** If you are unaffected by patent concerns because you hold the required
** licenses and permission to use the patented code, or reside in a
** location where this is not a concern, and wish to include the patented
** and restricted code (you take all legal responsibility for doing so),
** then edit this SlackBuild script and change the line:
** USE_PATENTS=${USE_PATENTS:-"NO"}
** to:
** USE_PATENTS="YES"
**
EOT
  sleep 5
fi

cd $TMP/tmp-$PRGNAM
echo "Extracting the source archive(s) for $PRGNAM..."
tar -xvf ${SOURCE[0]}
[ "$USE_PATENTS" != "YES" ] && rm -rf libdvdcss
chown -R root:root *
chmod -R u+w,go+r-w,a-s *
cd ${PRGNAM}-${VERSION}

# Determine what X we're running (the modular X returns the prefix
# in the next command, while older versions stay silent):
XPREF=$(pkg-config --variable=prefix x11) || true
[ "$XPREF" == "" ] && XPREF='/usr/X11R6'

# Remove support for patent encumbered and possibly illegal code:
if [ "$USE_PATENTS" != "YES" ]; then
  DO_PATENTED="--disable-libdvdcss-internal \
               --disable-mp3lame --disable-mp3lame-lavc \
               --disable-faac --disable-faac-lavc \
               --disable-libamr_nb --disable-libamr_wb"
else
  DO_PATENTED=""
fi

echo Building ...
# MPlayer wants to automatically determine compiler flags,
# so we don't provide CFLAGS:
./configure --prefix=/usr \
            --mandir=/usr/man \
            --confdir=/etc/mplayer \
            --enable-gui \
            --enable-menu \
            --enable-largefiles \
            --disable-arts \
            --enable-vdpau \
            --disable-x264-lavc \
            --disable-x264 \
            --codecsdir=${CODECSDIR} \
            --win32codecsdir=${CODECSDIR} \
            --realcodecsdir=${CODECSDIR} \
            --language="${LANGUAGES}" \
            ${EXTRACONFIGUREOPTIONS} \
            ${DO_PATENTED} \
            2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
# So that MPlayer does not report "UNKNOWN" as it's version:
echo $VERSION > VERSION
make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log

# Build the html documentation (not all languages are available):
( cd DOCS/xml
  for i in $(echo $LANGUAGES | tr , ' ') ; do
    [ -d $i ] && make html-single-$i ;
  done
)

# Prepare the configfile:
mkdir -p $PKG/etc/mplayer
cp etc/example.conf $PKG/etc/mplayer/mplayer.conf.new

# Install our default skin:
cd $PKG/usr/share/mplayer/skins
tar -xvf ${SOURCE[1]}
chown -R root:root *
chmod -R u+w,go+r-w,a-s *
ln -s ${DEFSKIN} default
cd -

# Add this to the doinst.sh:
! [ -d $PKG/install ] && mkdir -p $PKG/install
cat <<EOINS >> $PKG/install/doinst.sh
# Handle the incoming configuration files:
config() {
  for infile in \$1; do
    NEW="\$infile"
    OLD="\`dirname \$NEW\`/\`basename \$NEW .new\`"
    # If there's no config file by that name, mv it over:
    if [ ! -r \$OLD ]; then
      mv \$NEW \$OLD
    elif [ "\`cat \$OLD | md5sum\`" = "\`cat \$NEW | md5sum\`" ]; then
      # toss the redundant copy
      rm \$NEW
    fi
    # Otherwise, we leave the .new copy for the admin to consider...
  done
}

# Installing a bitmap font is considered deprecated; use a TTF font instead.
# We try to link to an installed TTF font at install time.
# Configure a default TrueType font to use for the OSD :
if [ ! -f usr/share/mplayer/subfont.ttf ]; then
  for font in ${OSDFONTS}; do
    if [ -f .${XPREF}/lib${LIBDIRSUFFIX}/X11/fonts/TTF/\${font} ]; then
      ( cd usr/share/mplayer/
        ln -sf ${XPREF}/lib${LIBDIRSUFFIX}/X11/fonts/TTF/\${font} subfont.ttf
      )
      break
    fi
  done
fi

# Prepare the new configuration file
config etc/mplayer/mplayer.conf.new

if [ -x /usr/bin/update-desktop-database ]; then
  chroot . /usr/bin/update-desktop-database -q usr/share/applications
fi

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x usr/bin/gtk-update-icon-cache ]; then
    chroot . /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi

EOINS

# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/doc/$PRGNAM-$VERSION/HTML-single $PKG/usr/doc/$PRGNAM-$VERSION/html
# Save a sample of all configuration files:
for i in etc/*.conf ; do
  cp $i $PKG/usr/doc/$PRGNAM-$VERSION/$(basename $i)-sample
done
# Save a transcript of all configured options for this specific build:
if [ -n $OUTPUT/configure-${PRGNAM}.log ]; then
  cat $OUTPUT/configure-${PRGNAM}.log \
    | sed -n "/^Config files successfully generated/,/^'config.h' and 'config.mak' contain your configuration options./p" \
    > $PKG/usr/doc/$PRGNAM-$VERSION/${PRGNAM}.configuration
fi
find $PKG/usr/doc -type f -exec chmod 644 {} \;

# Compress the man page(s):
if [ -d $PKG/usr/man ]; then
  find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
  for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
fi

# 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 )

# Add a package description:
mkdir -p $PKG/install
cat $SRCDIR/slack-desc > $PKG/install/slack-desc
if [ -f $SRCDIR/doinst.sh ]; then
  cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh
fi

# Build the package:
cd $PKG
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
cd $OUTPUT
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz.md5
cd -
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt

# Warn about libdvdcss requirement (again):
if [ "$USE_PATENTS" != "YES" ]; then
  cat <<"EOT"
**
** Internal DECSS library was not built.
** If you want to play encrypted DVD's you need to install libdvdcss separately.
** You take full legal responsibility for any use of DeCSS.  We neither supply
** DeCSS code nor endorse any illegal use of it.
**
** If you are unaffected by patent concerns because you hold the required
** licenses and permission to use the patented code, or reside in a
** location where this is not a concern, and wish to include the patented
** and restricted code (you take all legal responsibility for doing so),
** then edit this SlackBuild script and change the line:
** USE_PATENTS=${USE_PATENTS:-"NO"}
** to:
** USE_PATENTS="YES"
**
EOT

fi

I sorgenti di MPlayer r29390 li ho presi da Slacky:

http://repository.slacky.eu/slackware-1 ... 29390/src/
Avatar utente
phobos3576
Staff
Staff
 
Messaggi: 2980
Iscritto il: sab apr 16, 2005 23:00
Slackware: 13.1
Kernel: 2.6.37-smp
Desktop: KDE 4.5.3

Re: Problema ricompilazione MPlayer

Messaggioda Trotto@81 » mer feb 24, 2010 23:13

E' lo stesso errore che ho avuto io!!
Semplicemente sono cambiate le directory della doc, basta aggiornare la variabile nello slackbuild e funziona.
Avatar utente
Trotto@81
Iper Master
Iper Master
 
Messaggi: 3014
Iscritto il: ven giu 25, 2004 23:00
Località: Monasterace M. (RC)
Nome Cognome: Andrea
Slackware: Slackware64 14.1
Kernel: default
Desktop: KDE 4.10.5

Re: Problema ricompilazione MPlayer

Messaggioda Thraphyx » sab feb 27, 2010 11:23

GRANDE! \:D/
Sono riuscito a creare il pacchetto senza errori!
Come ha detto Trotto@81, è un problema della variabile della documentazione, è bastato modificarla ed è andato.
Per la precisione, nello slackbuild, ho modificato:

Codice: Seleziona tutto
DOCS="AUTHORS Changelog Copyright LICENSE README DOCS/HTML-single DOCS/tech"

In
Codice: Seleziona tutto
DOCS="AUTHORS Changelog Copyright LICENSE README DOCS/HTML DOCS/tech"

E
Codice: Seleziona tutto
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/doc/$PRGNAM-$VERSION/HTML-single $PKG/usr/doc/$PRGNAM-$VERSION/html

che diventa
Codice: Seleziona tutto
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/doc/$PRGNAM-$VERSION/HTML $PKG/usr/doc/$PRGNAM-$VERSION/html


Grazie mille a tutti, specialmente a trotto :thumbright:
Thraphyx

PS.
Metto risolto, anche se ci sarebbe ancora una cosa riguardo le prestazioni con i video hd, ma credo sia meglio postare nell'altro thread.

EDIT:
Aggiungo, per la cronaca, che l'ho compilato usando
Codice: Seleziona tutto
USE_PATENTS=${USE_PATENTS:-"YES"}
--enable-vdpau

e lanciandolo con
Codice: Seleziona tutto
# VERSION=2010-02-27 ./MPlayer.SlackBuild
Avatar utente
Thraphyx
Linux 2.4
Linux 2.4
 
Messaggi: 212
Iscritto il: ven ago 28, 2009 21:43
Slackware: 14.1 multilib
Kernel: 3.10.17
Desktop: KDE 4.11.5

Re: [RISOLTO] Problema ricompilazione MPlayer

Messaggioda Trotto@81 » sab feb 27, 2010 11:41

Con i video in HD e vdpau non supero mai il 3% di cpu.
Avatar utente
Trotto@81
Iper Master
Iper Master
 
Messaggi: 3014
Iscritto il: ven giu 25, 2004 23:00
Località: Monasterace M. (RC)
Nome Cognome: Andrea
Slackware: Slackware64 14.1
Kernel: default
Desktop: KDE 4.10.5

Re: [RISOLTO] Problema ricompilazione MPlayer

Messaggioda Thraphyx » sab feb 27, 2010 12:27

Eh.. io speravo di ottenere risultati simili.. ma la cpu viaggia sempre sul 50-60%, come prima (forse un pelo in più)..
Nelle preferenze video ho selezionato vdpau tra i driver disponibili.. C'è forse altro che devo impostare e mi sfugge? :?
Ho una nvidia 8600m gt da 256MB
Avatar utente
Thraphyx
Linux 2.4
Linux 2.4
 
Messaggi: 212
Iscritto il: ven ago 28, 2009 21:43
Slackware: 14.1 multilib
Kernel: 3.10.17
Desktop: KDE 4.11.5

Re: [RISOLTO] Problema ricompilazione MPlayer

Messaggioda Trotto@81 » sab feb 27, 2010 12:34

In SMPlayer Preferenze --> Avanzate --> Opzioni per MPlayer --> -vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau,
Avatar utente
Trotto@81
Iper Master
Iper Master
 
Messaggi: 3014
Iscritto il: ven giu 25, 2004 23:00
Località: Monasterace M. (RC)
Nome Cognome: Andrea
Slackware: Slackware64 14.1
Kernel: default
Desktop: KDE 4.10.5

Re: [RISOLTO] Problema ricompilazione MPlayer

Messaggioda Thraphyx » sab feb 27, 2010 12:39

Scusa ma.. non utilizzo SMPlayer, ma MPlayer nudo e crudo. Che posso fare? :-k
Avatar utente
Thraphyx
Linux 2.4
Linux 2.4
 
Messaggi: 212
Iscritto il: ven ago 28, 2009 21:43
Slackware: 14.1 multilib
Kernel: 3.10.17
Desktop: KDE 4.11.5

Re: [RISOLTO] Problema ricompilazione MPlayer

Messaggioda Thraphyx » sab feb 27, 2010 12:43

Ops, scusa.. quelle sono opzioni di mplayer. Ho provato a lanciare mplayer così, e in effetti il la riduzione di risorse è paurosa :shock:
Di nuovo grazie!
Ma non c'è un modo per impostarlo in mplayer? Oltre ad usare un frontend o usare un alias?

EDIT:
ho installato SMPlayer, e che dire, funziona alla grande. Ora proverò qualche frontend..
Tutto risolto! Grazie mille! :p :thumbright:
Avatar utente
Thraphyx
Linux 2.4
Linux 2.4
 
Messaggi: 212
Iscritto il: ven ago 28, 2009 21:43
Slackware: 14.1 multilib
Kernel: 3.10.17
Desktop: KDE 4.11.5

Re: [RISOLTO] Problema ricompilazione MPlayer

Messaggioda Trotto@81 » sab feb 27, 2010 13:03

C'è il file nascosto nella tua home se non vuoi usare un front end, ma ti assicuro che mplayer senza smplayer non è la stessa cosa.
Avatar utente
Trotto@81
Iper Master
Iper Master
 
Messaggi: 3014
Iscritto il: ven giu 25, 2004 23:00
Località: Monasterace M. (RC)
Nome Cognome: Andrea
Slackware: Slackware64 14.1
Kernel: default
Desktop: KDE 4.10.5

Re: [RISOLTO] Problema ricompilazione MPlayer

Messaggioda Thraphyx » sab feb 27, 2010 13:18

In effetti SMPlayer è proprio comodo.. Mi sa che utilizzerò questo :D
Alla prossima!
Avatar utente
Thraphyx
Linux 2.4
Linux 2.4
 
Messaggi: 212
Iscritto il: ven ago 28, 2009 21:43
Slackware: 14.1 multilib
Kernel: 3.10.17
Desktop: KDE 4.11.5


Torna a Packages

Chi c’è in linea

Visitano il forum: Trotto@81, ZeroUno e 1 ospite