Linphone android 最新版编译(解决android5.0以上无法运行问题)

环境

1. android-ndk-r10e
2. jdk8.0
3. sdk
4. linux ubuntu 14.04 lts 64位

打开linphone-android的README

0) download the Android sdk with platform-tools and tools updated to latest revision (at least API 16 is needed), then add both 'tools' and 'platform-tools' folders in your path.
1) download the Android ndk (>=r9d) from google and add it to your path (no symlink !!!).
2) install yasm, nasm, curl, ant, rsync and the autotools: autoconf, automake, aclocal, libtoolize, pkgconfig
    On 64 bits linux systems you'll need the ia32-libs package
    With the latest Debian (multiarch), you need this:
        dpkg --add-architecture i386
        aptitude update
        aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
3) run the Makefile script in the top level directory. This will download iLBC source files and convert some assembly files in VP8 project.
    $ make
4) To install the generated apk into a plugged device, run
    $ make install
5) (Optional) To generate a liblinphone SDK zip containing a full jar and native libraries, run
    $ make linphone-sdk
6) (Optional) To generate a libmediastreamer2 SDK zip containing a full jar and native libraries, run
    $ make mediastreamer2-sdk

我们看到第一个,需要sdk api16,ndk需要大于等于r9d

需要安装以下库

yasm, nasm, curl, ant, rsync and the autotools: autoconf, automake, aclocal, libtoolize, pkgconfig

如果是64位系统需要安装ia32-libs,但是现在已经安装不到ia32-libs了
可以安装lib32bz2-1.0。

OK,配置NDK和SDK环境变量就不用说了吧,这个直接百度就能百度到,然后到linphone主目录下运行make。

最新版源码我这边网络太差了,到时候有空了可以传。

android 开发交流群,大家一起交流:48761902

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值