zoukankan      html  css  js  c++  java
  • 为嵌入式mplayer移植添加ALSA音频驱动(全志V3s荔枝派zero)

    首先准备mplayer和alsa_lib,我的是bulidroot添加后编译自动下载的,版本分别是alsa-lib-1.1.4.1和mplayer-1.3.0。

    首先编译alsa_lib:

    ./configure --host=arm-linux-gnueabihf --prefix=/usr/alsa-lib
    make
    make install

    以上为编译alsa之后将库文件头文件等放入/user/alsa-lib 文件夹中。

    然后编译mplayer:

    1 ./configure --enable-cross-compile --host-cc=gcc --cc=arm-linux-gnueabihf-gcc --as=arm-linux-gnueabihf-as --ar=arm-linux-gnueabihf-ar --ranlib=arm-linux-gnueabihf-ranlib --target=arm-linux --disable-dvdread --disable-win32dll --enable-fbdev --disable-mencoder --disable-live --disable-mp3lame --disable-armv5te  --enable-alsa --extra-cflags="-I /usr/alsa-lib/usr/include" --extra-ldflags="-L /usr/alsa-lib/usr/lib "
    2 make -j4

    configure mplayer时注意不要加--enable-static,否则会造成编译无法通过。

  • 相关阅读:
    babel的使用及安装配置
    npm install卡顿问题
    盒模型
    安全性
    字符串方法
    vue
    CSS3
    重载运算符
    装箱拆箱
    模板库
  • 原文地址:https://www.cnblogs.com/guanglun/p/9141791.html
Copyright © 2011-2022 走看看