Hi I tried to enable the option --enable-test but got the below error
/home/biswal/final/src/router/audioplayer/usr/include/glib-2.0/glib/gthread.h: In function 'g_once_init_enter': /home/biswal/final/src/router/audioplayer/usr/include/glib-2.0/glib/gthread.h:344: warning: cast discards qualifiers from pointer target type mipsel-uclibc-linux26-gcc -Wall -Wextra -Wno-deprecated-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -std=c99 -D_GNU_SOURCE -I/home/biswal/final/src/router/audioplayer/usr/include -L/home/biswal/final/src/router/audioplayer/usr/lib -o test/read_mixer test_read_mixer-read_mixer.o test_read_mixer-conf.o test_read_mixer-buffer2array.o test_read_mixer-utils.o test_read_mixer-log.o test_read_mixer-mixer_control.o test_read_mixer-mixer_api.o test_read_mixer-oss_mixer.o -lnsl -lm -lglib-2.0 -lgthread-2.0 -liconv -lintl -lpthread -lmad -lid3tag -lz test_read_mixer-read_mixer.o: In function `main': read_mixer.c:(.text+0x84): undefined reference to `alsa_mixer' collect2: ld returned 1 exit status make[2]: *** [test/read_mixer] Error 1 make[2]: Leaving directory `/home/biswal/final/src/router/audioplayer/mpd' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/biswal/final/src/router/audioplayer/mpd' make: *** [mpd] Error 2 bash-2.05b$ Also please note I have the following options enabled/disbaled --disable-ipv6 --disable-flac --disable-mpc \ --disable-oggflac --disable-vorbis --disable-fifo --disable-aac \ --disable-vorbis-encoder --disable-lame-encoder --disable-alsa \ --disable-un --disable-ao --enable-mad --enable-audiofile \ --enable-id3 --enable-test Regards Kiran From: Max Kellermann [mailto:m...@duempel.org] Sent: Monday, October 19, 2009 7:00 AM To: Kiran Biswal Cc: 'musicpd-dev-team@lists.sourceforge.net' Subject: Re: [Musicpd-dev-team] Rnning MPD from commandline On 2009/10/19 15:35, Kiran Biswal <bis...@broadcom.com> wrote: > Just wondering how to play a mp3 file from command line. Does it have > a similar feature like madlld or madplay application to play a file? > Could someone suggest the exact syntax to pass a mp3 file as input and > save the decoded output into a file? Try to recompile with "--enable-test", that'll create the test program "test/run_decoder". With that, you can do stuff like: ./test/run_decoder mad /tmp/foo.mp3 >/tmp/foo.raw That's a program we use for debugging decoder plugins (there are more). "mad" is the name of the decoder plugin. Max ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team