You are not logged in.

#1 2006-07-17 09:19:12

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Trying to build Mplayer with enable-aa

My son wants to watch video in ascii mode, but the arch version of mplayer is compiled without support for aalib. I've tried to make my own version
using the current pkgbuild and changing "--disable-aa" to "--enable-aa", but after a while of compiling, the build aborts with the following:
'

libvo/libvo.a(vo_aa.o): In function `uninit':
vo_aa.c:(.text+0x17d): undefined reference to `aa_close'
libvo/libvo.a(vo_aa.o): In function `draw_slice':
vo_aa.c:(.text+0x325): undefined reference to `aa_fastrender'
vo_aa.c:(.text+0x35b): undefined reference to `aa_render'
libvo/libvo.a(vo_aa.o): In function `draw_frame':
vo_aa.c:(.text+0x44a): undefined reference to `aa_fastrender'
vo_aa.c:(.text+0x4ae): undefined reference to `aa_render'
libvo/libvo.a(vo_aa.o): In function `preinit':
vo_aa.c:(.text+0xa8a): undefined reference to `aa_displayrecommended'
vo_aa.c:(.text+0xa8f): undefined reference to `aa_getfirst'
vo_aa.c:(.text+0xaa2): undefined reference to `aa_displayrecommended'
vo_aa.c:(.text+0xaa7): undefined reference to `aa_recommendhi'
vo_aa.c:(.text+0xaae): undefined reference to `aa_defparams'
vo_aa.c:(.text+0xab3): undefined reference to `aa_autoinit'
vo_aa.c:(.text+0xace): undefined reference to `aa_autoinitkbd'
vo_aa.c:(.text+0xaec): undefined reference to `aa_resizehandler'
vo_aa.c:(.text+0xaf9): undefined reference to `aa_hidecursor'
vo_aa.c:(.text+0xafe): undefined reference to `aa_getrenderparams'
vo_aa.c:(.text+0xbdb): undefined reference to `aa_defrenderparams'
vo_aa.c:(.text+0xbe6): undefined reference to `aa_defparams'
vo_aa.c:(.text+0xbeb): undefined reference to `aa_parseoptions'
vo_aa.c:(.text+0xc0b): undefined reference to `aa_defrenderparams'
vo_aa.c:(.text+0xc26): undefined reference to `aa_defparams'
vo_aa.c:(.text+0xc2b): undefined reference to `aa_parseoptions'
vo_aa.c:(.text+0xc82): undefined reference to `aa_help'
vo_aa.c:(.text+0xdea): undefined reference to `aa_close'
vo_aa.c:(.text+0xe28): undefined reference to `aa_displayrecommended'
vo_aa.c:(.text+0xe2d): undefined reference to `aa_recommendlow'
vo_aa.c:(.text+0xe38): undefined reference to `aa_displayrecommended'
vo_aa.c:(.text+0xe3d): undefined reference to `aa_recommendhi'
vo_aa.c:(.text+0xe48): undefined reference to `aa_displayrecommended'
vo_aa.c:(.text+0xe4d): undefined reference to `aa_recommendhi'
libvo/libvo.a(vo_aa.o): In function `printosdtext':
vo_aa.c:(.text+0xf0b): undefined reference to `aa_printf'
vo_aa.c:(.text+0xf67): undefined reference to `aa_printf'
libvo/libvo.a(vo_aa.o): In function `flip_page':
vo_aa.c:(.text+0x105e): undefined reference to `aa_flush'
vo_aa.c:(.text+0x11bd): undefined reference to `aa_puts'
vo_aa.c:(.text+0x11f9): undefined reference to `aa_puts'
libvo/libvo.a(vo_aa.o): In function `check_events':
vo_aa.c:(.text+0x137f): undefined reference to `aa_getevent'
libvo/libvo.a(vo_aa.o): In function `resize':
vo_aa.c:(.text+0x1817): undefined reference to `aa_resize'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed.  Aborting...

Can someone help me out here? I imagine the answer is simple, but I can't get past this stage.

Offline

#2 2006-07-17 11:57:52

nifan
Member
Registered: 2003-04-10
Posts: 102

Re: Trying to build Mplayer with enable-aa

Maybe you don't have aalib installed i guess.


______
"Ignorance, the root and the stem of every evil." - Plato

Offline

#3 2006-07-17 21:37:30

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: Trying to build Mplayer with enable-aa

Oh, I have aalib installed alright. I can also use some other apps which use it (jp2a), and after playing around with it some more, I can also use gstreamer with the aalib-plugin, so in that sense it's a 'mission accomplished', although I'd still like to know why mplayer couldn't find the aalib.

Offline

#4 2006-07-17 23:54:14

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Trying to build Mplayer with enable-aa

diff -ur MPlayer-1.0pre8.orig/configure MPlayer-1.0pre8/configure
--- MPlayer-1.0pre8.orig/configure      2006-06-11 20:35:47.000000000 +0200
+++ MPlayer-1.0pre8/configure   2006-06-13 12:43:01.000000000 +0200
@@ -4137,6 +4137,8 @@
   _def_aa='#define HAVE_AA 1'
   if cygwin ; then
     _ld_aa=`aalib-config --libs | cut -d " " -f 2,5,6`
+  else
+    _ld_aa="-laa"
   fi
   _vosrc="$_vosrc vo_aa.c"
   _vomodules="aa $_vomodules"

This patch will help.

Offline

#5 2006-07-18 06:49:34

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: Trying to build Mplayer with enable-aa

Thanks!
But... how do I use it?

Offline

#6 2006-07-18 13:12:17

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: Trying to build Mplayer with enable-aa

mplayer -vo help

May I suggest this tool for the future:

man man

Offline

#7 2006-07-18 14:29:22

1270
Member
From: Iowa
Registered: 2005-12-22
Posts: 16

Re: Trying to build Mplayer with enable-aa

Copy and save the code above to a file(patch.diff as an example), copy that file to /var/abs/multimedia/mplayer/ and add "patch -Np1 -i $startdir/patch.diff || return 1" to the PKGBUILD.

build() {
  cd $startdir/src/MPlayer-${pkgver}
patch -Np1 -i $startdir/patch.diff || return 1
[ "$CARCH" == "x86_64" ] && $(patch -Np1 -i ../mplayer-1.0_pre7-gcc4-amd64.patch || return 1)

There is a chance I know what I am talking about.

Offline

#8 2006-07-18 14:29:48

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Trying to build Mplayer with enable-aa

eyolf wrote:

Thanks!
But... how do I use it?

@codemac: I think eyolf wants to know how to use the patch. wink

eyolf: Copy what brain0 posted in a file, name it aa.patch and add it to the source array of the PKGBUILD. Then before the configure line add:
patch -p1 < $startdir/src/aa.patch || return 1

Offline

#9 2006-07-18 14:35:47

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: Trying to build Mplayer with enable-aa

I read a little bit too fast sometimes, my apologies.

Offline

#10 2006-07-28 13:21:21

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: Trying to build Mplayer with enable-aa

No problem - I do that myself too.
anyway, thanks for your help. I'm pretty sure I would have given up on that patch thing if I were left to myself (and man...)

Offline

Board footer

Powered by FluxBB