Skip to contentSkip to conversation

encoder audio or speech for omap5912

DISCUSSION K S Shankar 2 participants 2 messages Oct 6, 2006

lore
Share & tools
lore
#0 lore raw

Hi All,

I want encode wav to mp3 on omap5912. I try to compiled lame3.97 with montavista linux cross compiler with options
CC= /opt/montavista/previewkit/arm/v4t_le/bin/arm_v4t_le-gcc ./configure --target=arm-linux --host=arm-linux --prefix=/root/lame. This compiled properly, but not works.

/ # lame
LAME version 3.97 (http://lame.sourceforge.net/)

usage: lame [options] <infile> [outfile]

<infile> and/or <outfile> can be "-", which means stdin/stdout.

Try:
"lame --help" for general usage information
or:
"lame --preset help" for information on suggested predefined
settings
or:

     "lame --longhelp"

or "lame -?" for a complete options list
/home # lame testcase.wav testcase.mp3
Segmentation fault.

I think that the problem maybe with this(configure warning)

checking for IEEE854 compliant 80 bit floats... configure: WARNING: can't check for IEEE854 compliant 80 bit floats

checking for ieee754_float64_t... no
checking for ieee754_float32_t... no
configure: WARNING:
**************************************************************************

  *                                                                        *
  * You are cross compiling:                                               *
  *   - I did not have a change to determine                               *
  *     + the size of:                                                     *
  *       - short                                                          *
  *       - unsigned short                                                 *
  *       - int                                                            *
  *       - unsigned int                                                   *
  *       - long                                                           *
  *       - unsigned long                                                  *
  *       - float                                                          *
  *       - double                                                         *
  *       - long double                                                    *
  *     + the endianess of the system                                      *
  *   - You have to provide appropriate defines for them in config.h, e.g. *
  *     + define SIZEOF_SHORT to 2 if the size of a short is 2             *
  *     + define WORDS_BIGENDIAN if your system is a big endian system     *
  *                                                                        *

**************************************************************************

Anyone could help me with this.

Thanks & Regards,

K. S. Shankar

#1 lore raw
Quoted 3 lines · K S Shankar

* - You have to provide appropriate defines for them in config.h, e.g. *

  *     + define SIZEOF_SHORT to 2 if the size of a short is 2             *
  *     + define WORDS_BIGENDIAN if your system is a big endian system     *

Maybe you should follow the advice the tool gives you?

OMAP is little endian. If you are unsure which sizes are correct for the various #define SIZEOF_xx try to write a short test program which does someting like

printf("Size of short: %i\n", sizeof(short));

etc.

Dirk