Cross compiler mpg123

Cross compiler mpg123

Download Source https://sourceforge.net/projects/mpg123/files/
unpacked into the source directory
generated Makefile
./configure CC = openwrt-ARM-Linux-gcc --host = ARM-Linux-openwrt --with-default- = --enable-static ALSA Audio --prefix = pwd/ the install /
compile
make
install
make install
under the lib copies install / libmpg123.so * lib / libmpg123.so * lib / mpg123 / board to / usr / lib, bin / mpg123 to the board / usr / bin / under.
Test
Export MPG123_MODDIR = / usr / lib / mpg123
mpg123 -a -o ALSA HW: 0,0 a test.mp3

注意:如果不执行export那步,会报错
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.25.10; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
[src/libout123/module.c:185] error: Failure getting module directory! (Perhaps set MPG123_MODDIR?)
[src/libout123/libout123.c:455] error: Found no driver out of [oss] working with device hw:0.
main: [src/mpg123.c:309] error: out123 error 3: failure loading driver module

Author: handsome too afraid to go c ++ Haha Church: 31,843,264

Guess you like

Origin blog.csdn.net/zmlovelx/article/details/93205799