[MPlayer-dev-eng] mplayer + codec(*.so)
Diego Biurrun
diego at biurrun.de
Fri Dec 26 16:28:04 CET 2008
On Fri, Dec 26, 2008 at 09:26:59PM +0800, houdiney wrote:
> Hi, all:
> Second,
> I have been puzzled in a question: I wanna integrate a midi lib(libmidi.so) into mplayer,
> so in the directory .../mplayer/libmpcodecs/, I created file ad_midi.c like some other codec's(ex. ad_libmad.c), as follows:
>
> //-----------------------------------
> [...]
> //-----------------------------------
>
> then, in the file ad.c, I added :
> extern ad_functions_t mpcodecs_ad_libmidi;
> in struct mpcodecs_ad_drivers:
> &mpcodecs_ad_libmidi
> in file .../libmpcodecs/Makefile, add:
> SRCS_COMMON-$(LIBMIDI) += ad_libmidi.c
>
> then type "make" in a shell in directory mplayer, bu error follows:
> ...
> libmpcodecs/libmpcodecs.a(ad.o):(.data+0x58): undefined reference to `mpcodecs_ad_libmidi'
>
> Could someone give me an advise on what I should do next ?
In this order of importance:
1) Get a mail client that does not break threads.
2) Learn what top-posting is and avoid it.
3) Hook up ad_midi.c in the Makefile.
Diego
More information about the MPlayer-dev-eng
mailing list