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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章