Dingoo A320 >> Dingux

build libao-1.2.0


使用如下方式編譯:

$ cd
$ wget https://github.com/steward-fu/a320/releases/download/v1.0/cc-dx.tar.gz
$ tar xvf cc-dx.tar.gz
$ sudo cp -a a320 /opt/a320
$ export PATH=$PATH:/opt/a320/usr/bin/
$ export TARGETMACH=mipsel-linux
$ export BUILDMACH=i686-pc-linux-gnu
$ export CROSS=mipsel-linux
$ export CC=${CROSS}-gcc
$ export LD=${CROSS}-ld
$ export AS=${CROSS}-as
$ export CXX=${CROSS}-g++

$ wget http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz
$ tar xvf libao-1.2.0.tar.gz
$ cd libao-1.2.0
$ export LDFLAGS+=--sysroot=/opt/a320
$ export CFLAGS+=-I/opt/a320/include
$ ./configure --host=$TARGETMACH --disable-pulse
$ make clean
$ make


返回上一頁