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

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