You are not logged in.

#1 2007-08-27 19:02:52

mic64
Member
Registered: 2005-03-03
Posts: 173

PKGBUILD: mplayer from svn

Hi

I´m trying to build mplayer from svn.
But it always fails with this error

/usr/bin/ld: cannot open output file mplayer: Is a directory
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed.  Aborting..

This is my PKGBUILD

# $Id: PKGBUILD,v 1.14 2007/04/14 08:41:43 tom Exp $
# Maintainer: Woody Gilk <woody@archlinux.org>
# Contributor: lucke <lucke at o2 dot pl>
# Contributor: Tom K <tomk@runbox.com>

pkgname=mplayer-svn
pkgver=24074
pkgrel=1
arch=('i686')
pkgdesc="A movie player for linux"
depends=('libmad' 'libungif' 'cdparanoia' 'gtk2' 'codecs' 'sdl' 'xvidcore' \
         'libjpeg' 'lame' 'libtheora' 'esd' 'faad2' 'faac' 'ttf-bitstream-vera' \
         'libxxf86dga' 'fontconfig' 'libxinerama' 'libxv' 'libpng' \
     'libxxf86vm' 'libgl')
makedepends=('subversion' 'pkgconfig')
source=(ftp://ftp.mplayerhq.hu/MPlayer/Skin/Blue-1.7.tar.bz2) 
conflicts=('mplayer')
provides=('mplayer')
url="http://www.mplayerhq.hu/"
license="GPL"

_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 --enable-gui --disable-arts --enable-x11 \
      --disable-runtime-cpudetection --enable-sdl \
      --enable-theora --confdir=/etc/mplayer --disable-nas \
      --enable-gl --enable-tv-v4l1 --enable-tv-v4l2 --enable-largefiles \
      --disable-liblzo --disable-speex --disable-openal \
      --enable-smb --enable-aa --disable-fribidi --disable-libdv --disable-musepack \
      --language=all --disable-lirc --disable-dvdnav --disable-esd \
      

  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
  install -m644 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')

Anyone an idea how to fix this?

thanks

Offline

#2 2007-08-27 21:01:03

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: PKGBUILD: mplayer from svn

When exactly does this error occur?

Do you use versionpkg?

Offline

#3 2007-08-27 21:51:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: PKGBUILD: mplayer from svn

I've just built rev 24247 with no errors, using versionpkg. It works as expected, and it will be in unstable shortly.

Offline

#4 2007-08-28 17:03:22

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: PKGBUILD: mplayer from svn

ok I tried versionpkg, but same error.
here is a little bit longer output

make[1]: Leaving directory `/home/mic2/builds/play-svn/src/mplayer-build/osdep'
cc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o libvo/libvo.a libao2/libao2.a input/libinput.a vidix/libvidix.a gui/libgui.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a libass/libass.a osdep/libosdep.a -lXv -lXinerama -lXxf86vm -lXxf86dga -lGL -ldl -lcaca -lncurses -lncurses -Wl,-rpath,/usr/lib -lSDL -lpthread -ljack -lfaac -lx264 -lpthread -lmp3lame -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpng12 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lglib-2.0 -L/usr/lib -L/usr/lib -Wl,-z,noexecstack    -lncurses -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -lcdda_interface -lcdda_paranoia -lfreetype -lz -lfontconfig  -lz -lmad -ltheora -logg -ldts -lamrnb -lxvidcore -lm -lpthread -ldl -rdynamic  -lm
/usr/bin/ld: cannot open output file mplayer: Is a directory
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed.  Aborting...
==> ERROR: Reverting pkgver...

Offline

#5 2007-08-29 04:37:29

semdornus
Member
From: Tokyo
Registered: 2007-08-07
Posts: 47

Re: PKGBUILD: mplayer from svn

In the posted PKGBUILD, shouldn't the last backslash in the configure (after --disable-esd and before the make) be removed?

Last edited by semdornus (2007-08-29 08:49:56)

Offline

#6 2007-08-29 07:40:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: PKGBUILD: mplayer from svn

Try the PKGBUILD for mplayer-svn from our CVS - like I said, it works fine for me here.

Offline

#7 2007-08-29 08:17:47

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: PKGBUILD: mplayer from svn

how does your makepkg.conf look like ?

Offline

#8 2007-08-29 19:20:43

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: PKGBUILD: mplayer from svn

ok thanks guys

I just grabbed the PKGBUILD from your cvs and the building was fine.

thanks a lot

Offline

#9 2007-08-30 00:10:13

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: PKGBUILD: mplayer from svn

tomk wrote:

Try the PKGBUILD for mplayer-svn from our CVS - like I said, it works fine for me here.

I noticed a while ago amrnb was not needed by any packages anymore, and it wasn't even in the sync repos (so it showed up in pacman -Qm).
I only tried removing it today, but it seems mplayer-svn was built against it :

mplayer: error while loading shared libraries: libamrnb.so.0: cannot open shared object file: No such file or directory

Fortunately, the mplayer package works fine smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#10 2007-08-30 19:07:46

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: PKGBUILD: mplayer from svn

I am also getting this error, i installed mplayer svntoday with pacman -Sy mplayer-svn:

mplayer: error while loading shared libraries: libamrnb.so.0: cannot open shared object file: No such file or directory

Offline

#11 2007-08-30 23:59:22

droog
Member
Registered: 2004-11-18
Posts: 877

Re: PKGBUILD: mplayer from svn

I get the same error with the repo mplayer-svn, building 24247 from source now.
edit/ compiling it myself fixed it, the repo version doesn't work for me.

Last edited by droog (2007-08-31 00:12:14)

Offline

#12 2007-08-31 08:56:33

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: PKGBUILD: mplayer from svn

ok which pkgbuild do i use? the one in the first post?

Offline

#13 2007-08-31 10:49:07

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: PKGBUILD: mplayer from svn

Don-DiZzLe wrote:

ok which pkgbuild do i use? the one in the first post?

Use abs to get all PKGBUILDs from the official repos. (you can read archwiki if you don't know how to use it, or can't figure it out wink).
You can also use the cvs web interface :
http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#14 2007-08-31 11:35:26

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: PKGBUILD: mplayer from svn

I know about ABS and I looked there but there is no PKGBUILD for mplayer-svn. I'll grab the cvs one then.

Offline

#15 2007-08-31 11:59:35

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: PKGBUILD: mplayer from svn

> grep SUP /etc/abs/abs.conf
SUPFILES=(arch extra unstable community testing)
> ls /var/abs/unstable/multimedia/mplayer-svn
PKGBUILD

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#16 2007-08-31 12:54:11

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: PKGBUILD: mplayer from svn

oh ofcourse, I just installed arch again and i forgot to edit /etc/abs/abs.conf.

Offline

#17 2007-09-02 11:21:18

eNTi
Member
Registered: 2006-04-30
Posts: 109

Re: PKGBUILD: mplayer from svn

Don-DiZzLe wrote:

I am also getting this error, i installed mplayer svntoday with pacman -Sy mplayer-svn:

mplayer: error while loading shared libraries: libamrnb.so.0: cannot open shared object file: No such file or directory

any solution to this?

Offline

#18 2007-09-02 12:25:58

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: PKGBUILD: mplayer from svn

U need to compile it yourself from abs or cvs, check the link after my post for the PKGBUILD

Offline

#19 2007-09-15 10:11:40

xs1223
Member
Registered: 2007-09-15
Posts: 2

Re: PKGBUILD: mplayer from svn

To mic64:

I guess you've ever aborted the process of pkg making, and then restart it again.

It's the script:

cp -r $_svnmod $_svnmod-build

in the PKGBUILD that makes a trick to you.

The first time it exec:

cp -r mplayer mplayer-build

which clone the mplayer dir to current path and name it mplayer-build.

But when you start makepkg again, the same script exec

cp -r mplayer mplayer-build/mplayer

which clone the dir to the path ./mplayer-build/. Of course the destination was named mplayer as the source.

So the linker complainted a mplayer dir exists when he wanted write the final bin file also named mplayer:

mic64 wrote:
/usr/bin/ld: cannot open output file mplayer: Is a directory
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed.  Aborting..

I hope that you could understand my poor poor English, and my guess is right.=)

Last edited by xs1223 (2007-09-15 10:17:20)

Offline

#20 2007-09-15 11:53:32

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: PKGBUILD: mplayer from svn

Yes. I´ve foudn out, when aborting the build and starting it again causes the issue.
But it works fine now.

I am trying now to build mplayer with eac3 (hd-dvd) support, but can´t get it to work.
It is explained here: http://forum.doom9.org/showthread.php?t=129050

So, if anybody can give us a modified PKGBUILD, it would be great.

Offline

#21 2007-11-16 12:50:57

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: PKGBUILD: mplayer from svn

I had the same problem until I read this thread. Aborting the build > rebuild, WHAM! tongue

I'm attempting to build mplayer-svn with nvidia xvmc support at the moment. I tried to also build it with pulseaudio support but the patch ( http://www.pulseaudio.org/attachment/wi … atch.patch ) makes the svn unable to compile.

Offline

#22 2008-11-05 15:59:16

corrupt
Member
Registered: 2007-06-25
Posts: 74

Re: PKGBUILD: mplayer from svn

when trying to build mplayer-svn i get this error:

h264.c: In function 'fill_caches':
h264.c:125: warning: assignment discards qualifiers from pointer target type
h264.c:164: warning: assignment discards qualifiers from pointer target type
h264.c:166: warning: assignment discards qualifiers from pointer target type
h264.c:170: warning: assignment discards qualifiers from pointer target type
h264.c: In function 'pred_direct_motion':
h264.c:1052: warning: assignment from incompatible pointer type
h264.c:1053: warning: assignment from incompatible pointer type
h264.c: In function 'filter_mb':
h264.c:6429: warning: initialization from incompatible pointer type
h264.c:6430: warning: initialization from incompatible pointer type
cabac.h: In function 'get_cabac_noinline':
cabac.h:527: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
cabac.h:527: error: 'asm' operand has impossible constraints
make[1]: *** [h264.o] Error 1
make[1]: Leaving directory `/home/corrupt/misc/AUR/mplayer-svn/src/mplayer-build/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2
==> ERROR: Build Failed.
    Aborting...

any ideas?

Offline

#23 2008-11-05 18:10:07

neodreams
Member
Registered: 2006-03-20
Posts: 87

Re: PKGBUILD: mplayer from svn

Maybe you need to use x264-git which is in aur instead of x264, this is what i use when i compile mplayer and it's working.

Offline

#24 2008-11-05 20:35:12

corrupt
Member
Registered: 2007-06-25
Posts: 74

Re: PKGBUILD: mplayer from svn

The solution is posted in aur.

Offline

Board footer

Powered by FluxBB