You are not logged in.
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
Maybe you don't have aalib installed i guess.
______
"Ignorance, the root and the stem of every evil." - Plato
Offline
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
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
Thanks!
But... how do I use it?
Offline
mplayer -vo help
May I suggest this tool for the future:
man man
Offline
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
Thanks!
But... how do I use it?
@codemac: I think eyolf wants to know how to use the patch.
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
I read a little bit too fast sometimes, my apologies.
Offline
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