Healy Yang wrote:
I run into trouble when I try to configure the Madplay under my cross-platform development. After I untar the package I do follwing step to setup the Madplay entironment.
export CC=arm-lynx-linux-bluecat-gcc export RANLIB=arm-lynx-linux-bluecat-ranlib export LD=arm-lynx-linux-bluecat-ld export NM=arm-lynx-linux-bluecat-nm
./configure --build=i386-linux --host=arm-linux --target=arm-linux \ --enable-fbm=arm -enable-sso --prefix=/bluecat/cdt --exec-prefix=/bluecat/cdt
Don't bother with --target. That's only used for building cross-compiler tools. Also, you misspelled --enable-fpm.
then the config procedure and make procedure pass smoothly but when make install I trap into the trouble I reported yesterday:
make[1]: Entering directory `/bluecat/mad/po' if test -r "../././././mkinstalldirs"; then \ ../././././mkinstalldirs /usr/local/share; \ else \ /bin/sh ../././mkinstalldirs /usr/local/share; \ fi ../././././../././././mkinstalldirs: Can't open ../././././../././././mkinstalldirs
I don't understand why you get this error. `mkinstalldirs' should be in the top-level directory of the MAD distribution. The shell commands look right, but the invocation of mkinstalldirs doesn't.
If you only have trouble in the po directory, you could try configuring with --disable-nls.
I modified the makefile maually today by delete the following line in makefile
SUBDIRS = intl po $(libz) libid3tag libmad $(winamp) the make install pass and all thing seem OK.
Probably not the best course of action, but whatever works.
But when I try to run the madplay on my target board(Ep7312) the follwing message display
bash# ./madplay -o raw:- ./funky.mp3 >/dev/null MPEG Audio Decoder 0.14.2 (beta) - Copyright (C) 2000-2001 Robert Leslie 2373 frames decoded (0:01:01.9), -2.2 dB peak amplitude, 0 clipped samples bash#
But there have not any noise during this procedure when the BlueCat demo run OK.
That's because you generated the noise on stdout (-o raw:-) and then redirected it to the bit bucket (>/dev/null).
There some question confuse me,
- What's the function of directory under mad name po,msvc++ and intl ?
po = portable (internationalized message) object files, for NLS msvc++ = Microsoft Visual C++ project files, for Win32 intl = GNU gettext support, for NLS
- Is there anything wrong with my ./configure procedure?
See above.