Linphone-3.3.0音频交叉编译移植
我用的环境是ubuntu10.10 交叉编译器为mini2440附带的arm-linux-gcc-4.4.3.tar
依赖库:ncurses-5.7
readline-6.1
libosip2-3.3.0
libogg-1.2.0
speex-1.2rc1
libeXosip2-3.1.0
(ps:源码包在百度/goolge上搜索均能找到。
压缩包最好在linux下解压,在windows
下解压编译可能会报错,貌似是文件系统不同引起的)
以下步骤命令比较长,千万别敲错。严格按一下步骤执行即可编译成功。
首先在/home/my_install/建立linphone文件夹,把所有的源码包都拷到该文件夹下并解压。
然后在当前目录下建立build_arm/install文件夹用来存放编译后生成的文件,接着开始编译。
(1)cd ncurses-5.7/
./configure --prefix=/install --host=arm-linux --with-gnu-ld --with-shared
make
make install DESTDIR=/home/my_install/linphone/build_arm/
(2)cd readline-6.1/
./configure --prefix=/install --host=arm-linux --with-gnu-ld --disable-static
make
make install DESTDIR=/home/my_install/linphone/build_arm/
(3)cd libosip2-3.3.0/
./configure --prefix=/install --host=arm-linux --with-gnu-ld --disable-static
make
make install DESTDIR=/home/my_install/linphone/build_arm/
(4)cd ../libogg-1.2.0/
./configure --prefix=/install --host=arm-linux
make
make install DESTDIR=/home/my_install/linphone/build_arm/
(5)cd speex-1.2rc1/
./configure --prefix=/install --host=arm-linux --disable-static --enable-fixed-point --enable-arm-asm
--with-ogg-libraries=/home/my_install/linphone/build_arm/install/lib/
--with-ogg-includes=/home/my_install/linphone/libogg-1.2.0/include/
make
make install DESTDIR=/home/my_install/linphone/build_arm/
(6)cd libeXosip2-3.1.0/
./configure OSIP_CFLAGS=-I/home/my_install/linphone/build_arm/install/include/
OSIP_LIBS="-L/home/my_install/linphone/build_arm/install/lib -losip2-losipparser2"
--prefix=/install --host= arm-linux
cp ../libosip2-3.3.0/src/osipparser2/.libs/libosipparser2.la ../build_arm/install/lib/
make
make -k install DESTDIR=/home/my_install/linphone/build_arm/
(7)cd linphone-3.3.0/
export ARM_INSTALL_TREE=/home/my_install/linphone/build_arm/
./configure --prefix=/install --host= arm-linux --with-gnu-ld --disable-static --disable-glib
--with-osip=$ARM_INSTALL_TREE/install
--with-readline=$ARM_INSTALL_TREE/install
SPEEX_CFLAGS="-I$ARM_INSTALL_TREE/install/include"
SPEEX_LIBS="-L$ARM_INSTALL_TREE/install/lib -lspeex -lspeexdsp"
OSIP_CFLAGS="-I$ARM_INSTALL_TREE/install/include"
OSIP_LIBS="-L$ARM_INSTALL_TREE/install/lib -losip2 -leXosip2-losipparser2"
--disable-video --disable-gtk_ui
make
make -k install DESTDIR=/home/my_install/linphone/build_arm/
在此交叉编译完成
下载到ARM开发板上执行:
到/home/my_install/linphone/build_arm/install/ 目录下把lib和bin文件夹压缩,
把这两个压缩包下载到开发板并解压,把lib里的文件全部复制到开发板的/usr/lib,
bin里的文件全部复制到开发板的/usr/bin。在命令行执行./linphonec即可启动
linphone。
2012.7.17