You are not logged in.
Hi,
I try to compile a SVN version of Mplayer so I got the PKGBUILD of mplayer-svn from testing repository. When I launch makepkg, it starts compiling but then I get this error :
/bin/sh: line 4: cd: /home/bapman/divers/abs/mplayer-svn/pkg/usr/share/man/ru/man1: No such file or directory
/bin/sh: line 4: cd: /home/bapman/divers/abs/mplayer-svn/pkg/usr/share/man/pl/man1: No such file or directory
/bin/sh: line 4: cd: /home/bapman/divers/abs/mplayer-svn/pkg/usr/share/man/it/man1: No such file or directory
/bin/sh: line 4: cd: /home/bapman/divers/abs/mplayer-svn/pkg/usr/share/man/hu/man1: No such file or directory
/bin/sh: line 4: cd: /home/bapman/divers/abs/mplayer-svn/pkg/usr/share/man/fr/man1: No such file or directory
/bin/sh: line 4: cd: /home/bapman/divers/abs/mplayer-svn/pkg/usr/share/man/es/man1: No such file or directory
/bin/sh: line 4: cd: /home/bapman/divers/abs/mplayer-svn/pkg/usr/share/man/de/man1: No such file or directory
/bin/sh: line 4: cd: /home/bapman/divers/abs/mplayer-svn/pkg/usr/share/man/cs/man1: No such file or directory
make: *** [install-mencoder] Erreur 1
Here is the PKGBUILD :
# $Id: PKGBUILD,v 1.20 2007/12/18 22:20:20 tom Exp $
# Maintainer: Tom Killian <tom@archlinux.org>
# Contributor: lucke <lucke at o2 dot pl>
pkgname=mplayer-svn
pkgver=26421
pkgrel=1
pkgdesc="A movie player for linux"
depends=('libmad' 'libungif' 'cdparanoia' 'gtk2' 'sdl' 'xvidcore'
'lame' 'libtheora' 'faac' 'libxxf86dga' 'libxv' 'libgl'
'smbclient' 'aalib' 'lirc-utils' 'x264>=20071202-1'
'jack-audio-connection-kit')
makedepends=('subversion' 'pkgconfig' 'libcaca' 'unzip' 'live-media' 'libdts')
source=(ftp://ftp.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2)
conflicts=('mplayer')
provides=('mplayer')
url="http://www.mplayerhq.hu/"
license="GPL"
arch=('i686' 'x86_64')
_svntrunk=svn://svn.mplayerhq.hu/mplayer/trunk
_svnmod=mplayer
build() {
cd $startdir/src
svn co $_svntrunk $_svnmod --config-dir ./ -r $pkgver
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
unset CFLAGS
./configure --prefix=/usr --confdir=/etc/mplayer --with-extraincdir=/usr/lib/live-media \
--enable-gui --enable-runtime-cpudetection --enable-largefiles --enable-menu \
--enable-x11 --enable-gl --language=all \
--disable-libdv --disable-liblzo --disable-speex --disable-fribidi --disable-arts \
--disable-dvdnav --disable-openal --disable-musepack --disable-esd --disable-mga
[ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
make || return 1
make DESTDIR=$startdir/pkg install || return 1
cp etc/{codecs.conf,input.conf,example.conf} $startdir/pkg/etc/mplayer
ln -s /usr/share/fonts/TTF/Vera.ttf $startdir/pkg/usr/share/mplayer/subfont.ttf
rm -rf $startdir/pkg/usr/share/mplayer/font
mv $startdir/src/Blue $startdir/pkg/usr/share/mplayer/skins/default
rm -rf ../$_svnmod-build
}
md5sums=('e4e2020d11b681aac898103b3ba723c4')
Any idea guys ?
Last edited by Bapman (2008-04-13 16:18:00)
Offline
The manpages for certain languages have been (at least partially) missing for the last few checkouts I've made. Just change --language=all to --language=en and it will compile just fine.
Offline
Try this:
pkgname=mplayer-svn
pkgver=26421
pkgrel=1
pkgdesc="A movie player for linux"
depends=('libmad' 'libungif' 'cdparanoia' 'gtk2' 'sdl' 'xvidcore'
'lame' 'libtheora' 'faac' 'libxxf86dga' 'libxv' 'libgl'
'smbclient' 'aalib' 'lirc-utils' 'x264>=20071202-1'
'jack-audio-connection-kit')
makedepends=('subversion' 'pkgconfig' 'libcaca' 'unzip' 'live-media' 'libdts')
source=(ftp://ftp.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2)
conflicts=('mplayer')
provides=('mplayer')
url="http://www.mplayerhq.hu/"
license="GPL"
arch=('i686' 'x86_64')
_svntrunk=svn://svn.mplayerhq.hu/mplayer/trunk
_svnmod=mplayer
build() {
cd $startdir/src
svn co $_svntrunk $_svnmod --config-dir ./ -r $pkgver
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
unset CFLAGS
./configure --prefix=/usr --confdir=/etc/mplayer --with-extraincdir=/usr/lib/live-media \
--enable-gui --enable-runtime-cpudetection --enable-largefiles --enable-menu \
--enable-x11 --enable-gl --language=all \
--disable-libdv --disable-liblzo --disable-speex --disable-fribidi --disable-arts \
--disable-dvdnav --disable-openal --disable-musepack --disable-esd --disable-mga
# Bug in Makefile relatet to man languages
sed 's|\$(MANDIR)/\$\$i|\$(MANDIR)/\$\$lang|g' -i Makefile
[ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
make || return 1
make DESTDIR=$startdir/pkg install || return 1
cp etc/{codecs.conf,input.conf,example.conf} $startdir/pkg/etc/mplayer
ln -s /usr/share/fonts/TTF/Vera.ttf $startdir/pkg/usr/share/mplayer/subfont.ttf
rm -rf $startdir/pkg/usr/share/mplayer/font
mv $startdir/src/Blue $startdir/pkg/usr/share/mplayer/skins/default
rm -rf ../$_svnmod-build
}
md5sums=('e4e2020d11b681aac898103b3ba723c4')
Offline
The manpages for certain languages have been (at least partially) missing for the last few checkouts I've made. Just change --language=all to --language=en and it will compile just fine.
Yep, I also got the error when trying to compile it 2 days ago. Fixed it by removing --language=all.
Offline
Thanks guys, it compiles fine now !
Last edited by Bapman (2008-04-12 23:32:57)
Offline
Ooops spoken to fast... Well compilation is ok but now I don't have any subtitles ! Do you think it is related to the svn version or is it because of my compilation options (maybe the language one since I need french subtitles) ?
Offline
What kind of subs?
Offline
External .srt subs !
Offline
Ooops spoken to fast... Well compilation is ok but now I don't have any subtitles ! Do you think it is related to the svn version or is it because of my compilation options (maybe the language one since I need french subtitles) ?
The --language parameter has nothing to do with what srt's you can load. For what it's worth, I just rebuilt from svn to check and I'm having no problems loading any external subtitles, no matter the language.
My best guess would be that it's either due to some incorrect setting in ~/.mplayer/config or something to do with your selected video output driver (try using gl:yuv3).
Offline
try this one (comes with all manpages):
pkgname=mplayer-svn
pkgver=26421
pkgrel=1
pkgdesc="A movie player for linux"
depends=('libmad' 'libungif' 'cdparanoia' 'gtk2' 'sdl' 'xvidcore'
'lame' 'libtheora' 'faac' 'libxxf86dga' 'libxv' 'libgl'
'smbclient' 'aalib' 'lirc-utils' 'x264>=20071202-1'
'jack-audio-connection-kit')
makedepends=('subversion' 'pkgconfig' 'libcaca' 'unzip' 'live-media' 'libdts')
source=(ftp://ftp.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2)
md5sums=('e4e2020d11b681aac898103b3ba723c4')
conflicts=('mplayer')
provides=('mplayer')
url="http://www.mplayerhq.hu/"
license="GPL"
arch=('i686' 'x86_64')
_svntrunk=svn://svn.mplayerhq.hu/mplayer/trunk
_svnmod=mplayer
build() {
cd $startdir/src
svn co $_svntrunk $_svnmod --config-dir ./ -r $pkgver
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
unset CFLAGS
./configure --prefix=/usr --confdir=/etc/mplayer --with-extraincdir=/usr/lib/live-media \
--enable-gui --enable-runtime-cpudetection --enable-largefiles --enable-menu \
--enable-x11 --enable-gl --language=all \
--disable-libdv --disable-liblzo --disable-speex --disable-fribidi --disable-arts \
--disable-dvdnav --disable-openal --disable-musepack --disable-esd --disable-mga
[ "$CARCH" = "i686" ] && sed 's|-march=i486|-march=i686|g' -i config.mak
make || return 1
install -d $startdir/pkg/usr/share/man/man1 || return 1
for _lang in ru pl it hu fr de es cs
do
install -d $startdir/pkg/usr/share/man/${_lang}/man1
done || return 1
install -d $startdir/pkg/usr/share/mplayer/skins/default
make DESTDIR=$startdir/pkg install || return 1
cp etc/{codecs.conf,input.conf,example.conf} $startdir/pkg/etc/mplayer
ln -s /usr/share/fonts/TTF/Vera.ttf $startdir/pkg/usr/share/mplayer/subfont.ttf
rm -rf $startdir/pkg/usr/share/mplayer/font
cp -r $startdir/src/Blue $startdir/pkg/usr/share/mplayer/skins/default
rm -rf ../$_svnmod-build
Last edited by Stefan Husmann (2008-04-13 14:48:08)
Offline
The --language parameter has nothing to do with what srt's you can load. For what it's worth, I just rebuilt from svn to check and I'm having no problems loading any external subtitles, no matter the language.
My best guess would be that it's either due to some incorrect setting in ~/.mplayer/config or something to do with your selected video output driver (try using gl:yuv3).
Thanks for the help again !
Unfortunately I changed my output driver and deleted my .mplayer directory but subs still don't work ! Is there a special line to put in mplayer config file (mine is blank right now) ?
Offline
Ok I'm stupid ! By launching mplayer in command line, it told me to put the font file .ttf in .mplayer directory ! Now it works !
Anyway, do you guys have a link to good config files for mplayer ?
Offline
could anyone help to adapt the mplayer PKGBUILD to make it easy on dependencies? I mean, i converted from alsa to oss4 and having the mplayer with the alsa-libs, jack-audio and esd doesn't really helps. Using it in a simple openbox environment with the smplayer frontend...
dvdnad could be enabled too
Anyone interested?
i'm not really confortable to edit a PKGBUILD by myself...
I just have the mplayer installed, i don't need anything else like xine or gstreamer...
Last edited by Lazer (2008-04-16 16:08:46)
Offline