参考了网上各位大牛们的足迹移植了linphone的语音版,但是还没有进行相关测试,不过编译都正常通过了,按理说应该是没问题吧,下面是移植过程:
1、下载所需依赖包
linphone依赖很多软件包,这些软件包都可以从网络上下载到,为了方便,我将我使用的软件包打包上传了一份,需要的可以从这个地址下载本次编译所需的软件依赖包,下载地址:http://download.csdn.net/detail/yxtouch/7468369
ortp可以从这里下载:http://download.csdn.net/detail/yxtouch/6914887
2、编译依赖包:
首先设置编译生存的安装环境变量,可使用如下命令设置安装目录为/home/fyx/workspace/linphone/arm。
export ARM_INSTALL_TREE=/home/fyx/workspace/linphone/arm
(1)、ncurses
解压进入解压目录,使用如下命令进行配置、编译、安装:
./configure --prefix=$ARM_INSTALL_TREE/usr --host=arm-none-linux-gnueabi --with-gnu-ld --with-shared
make
make install
(2)、readline
./configure --prefix=$ARM_INSTALL_TREE/usr --host=arm-none-linux-gnueabi --disable-static
make
make install
(3)、libosip
./configure --prefix=$ARM_INSTALL_TREE/usr --host=arm-none-linux-gnueabi --with-gnu-ld --disable-static
make
make install
(4)、libogg
./configure --prefix=$ARM_INSTALL_TREE/usr --host=arm-none-linux-gnueabi --with-gnu-ld --disable-static
make
make install
(5)、speex
./configure --prefix=$ARM_INSTALL_TREE/usr --host=arm-none-linux-gnueabi --with-gnu-ld --disable-static --enable-fixed-point --enable-arm-asm
make
make install
(6)、libeXosip
./configure --prefix=$ARM_INSTALL_TREE/usr CC=arm-linux-gcc --host=arm-linux --enable-shared --disable-static PKG_CONFIG_PATH=$ARM_INSTALL_TREE/usr/lib/pkgconfig/
make
make install
(7)、ortp-0.22.0
./configure --prefix=$ARM_INSTALL_TREE/usr --host=arm-linux --with-gnu-ld --disable-static
make
make install
(8)、mediastream2
./configure --prefix=$ARM_INSTALL_TREE/usr --host=arm-linux --with-gnu-ld --disable-static --enable-macsnd=no --enable-video=no --enable-tests --disable-gsm PKG_CONFIG_PATH=$ARM_INSTALL_TREE/usr/lib/pkgconfig/
make
make install
(9)、linphone
./configure --prefix=$ARM_INSTALL_TREE/usr \
--host=arm-none-linux-gnueabi \
--with-gnu-ld --disable-static --disable-glib --disable-gtk_ui --disable-video \
--with-readline=$ARM_INSTALL_TREE/usr \
SPEEX_CFLAGS="-I$ARM_INSTALL_TREE/usr/include" \
SPEEX_LIBS="-L$ARM_INSTALL_TREE/usr/lib -lspeex -lspeexdsp" \
OSIP_LIBS="-L$ARM_INSTALL_TREE/usr/lib -losip2 -losipparser2" \
OSIP_CFLAGS="-I$ARM_INSTALL_TREE/usr/include" \
--disable-pulseaudio
make
make install
3、开发板测试
待续。。。