怎样跨平台编译alsa-utils

1.  先编译ncurses库:
./configure --host=arm-linux --prefix=/home/rjying/projects/tomtom/tools/arm-linux
make
make install
使用arm-linux-gcc作为跨平台编译器,编译出libncurses.a 等文件。
并且安装到tools/arm-linux/lib目录中。

2。编译alsa-utils
LDFLAGS="-L/home/rjying/projects/tomtom/tools/arm-linux/lib -lpthread -lc -lgcc" CFLAGS="-I/home/rjying/projects/tomtom/tools/arm-linux/include/ncurses" ./configure --host=arm-linux --disable-nls

3. 编译alsa-lib
LDFLAGS="-L/home/rjying/projects/tomtom/tools/arm-linux/lib -lpthread -lm -lc -lgcc" CFLAGS="-I/home/rjying/projects/tomtom/tools/arm-linux/include" ./configure --prefix=/home/rjying/projects/tomtom/tools/arm-linux --host=arm-linux --datadir=/share --libdir=/lib --with-softfloat --with-tmpdir=/var

你可能感兴趣的:(编译器,跨平台)