You are not logged in.

#1 2008-12-28 15:50:52

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Mplayer build error

I'm trying to build mplayer, but whatever I try (also rebuilding mplayer from abs), it always ends with this error message during make:

make[1]: *** No rule to make target `x86/dsputil_yasm.o', needed by `libavcodec.a'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/tmp/yaourt-tmp-bart/aur-mplayer-nogui-svn/mplayer-nogui-svn/src/mplayer/libavcodec'
make: *** [libavcodec/libavcodec.a] Fout 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build mplayer-nogui-svn package.

I figured it might had something to do with yasm, but that is installed. Odd is the x86 because I have x86_64.

This is the pkgbuild I use:

pkgname=mplayer-nogui-svn
pkgver=28056
pkgrel=1
pkgdesc="Famous multimedia player, dev. version, without its GUI"
arch=('i686' 'x86_64')
url="http://www.mplayerhq.hu/"
license=('GPL')
depends=('ttf-dejavu')
makedepends=('subversion')
conflicts=('mplayer')
provides=('mplayer')
source=()
md5sums=()

build() {

  cd $srcdir
  svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer -r $pkgver
  cd mplayer

  CFLAGS="$CFLAGS -fomit-frame-pointer"
./configure --prefix=/usr --confdir=/etc/mplayer --disable-gui \
    --enable-runtime-cpudetection --enable-largefiles --enable-menu --enable-tv-v4l1 --enable-tv-v4l2 \
    --disable-libdv --disable-liblzo --enable-speex --disable-dvdread-internal \
    --enable-fribidi --enable-smb --enable-dvdnav \
    --disable-openal --disable-faad-internal --disable-jack --disable-esd \
    --enable-musepack --disable-libamr_nb --disable-libamr_wb \
    --enable-x264 --enable-mencoder

  make || return 1
  make DESTDIR=$pkgdir install || return 1

  install -m0644 etc/{codecs.conf,input.conf,example.conf} $pkgdir/etc/mplayer
  install -d $pkgdir/usr/share/mplayer/
  ln -s /usr/share/fonts/TTF/DejaVuSans.ttf $pkgdir/usr/share/mplayer/subfont.ttf
  rm -rf $srcdir/mplayer

}

Offline

#2 2008-12-28 15:58:01

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Mplayer build error

The x86 directory in Mplayer, or specifically in FFmpeg, is new. x264's developers are currently rewriting the h264 decoders for the FFmpeg project. They created that directory to keep the ASM code separate from everything else because it doesn't work on some architectures. The code is fine for both 32 and 64 bit. With that being said, I'd say wait a little bit. It may just be that the subversion tree isn't fully up to date.

--EDIT--

Although, that file has been in the FFmpeg tree since 12/22/2008. Hmmm?

Offline

#3 2008-12-28 16:15:25

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: Mplayer build error

I'll give it another try later on then. I used the same pkgbuild I think 2 weeks ago on another computer and it worked then.

Last edited by Nepherte (2008-12-28 16:16:28)

Offline

#4 2008-12-28 16:17:50

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Mplayer build error

Nepherte wrote:

I'll give it another try later on then. I used the same pkgbuild I think 2 weeks ago on another computer and it worked then.

By any chance are you using FFmpeg from subversion?

Offline

#5 2008-12-28 16:27:43

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: Mplayer build error

Yes I do, on both computers.

Offline

#6 2008-12-28 16:32:49

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Mplayer build error

These lines in your mplayer-svn PKGBUILD will allow you to use the system FFmpeg instead of the mplayer version:

--disable-libavutil_a
--disable-libavcodec_a 
--disable-libavformat_a
--disable-libswscale_a
--disable-libpostproc_a

This is assuming that you have --enable-swscale and --enable-postproc in your FFmpeg build.

Offline

#7 2008-12-28 16:53:55

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: Mplayer build error

Thx, that worked.

Offline

#8 2008-12-28 17:18:46

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Mplayer build error

You're welcome. Check out how small your mplayer binary is now. Cool, huh?

Offline

#9 2008-12-28 18:37:02

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: Mplayer build error

Yea, Totally. Compiled in no time.

Offline

Board footer

Powered by FluxBB