ubuntu编译 linphone sdk android源码下载

1、下载代码

复制代码
git clone https://gitlab.linphone.org/BC/public/linphone-sdk.git --recursive

2、更新

复制代码
cd linphone-sdk

git submodule update --init --recursive

3、下载android ndk

复制代码
​
wget https://googledownloads.cn/android/repository/android-ndk-r23c-linux.zip

安装以下工具:
 - Cmake >= 3.22
 - python >= 3.6
 - pip (or pip3 if the build machine has both python2 and python3)
 - yasm
 - nasm
 - doxygen
 - Pystache (use `pip install pystache` or `pip3 install pystache`)
 - six (use `pip install six` or `pip3 install six`)

If you are building the AV1 codec, which is enabled by default (`ENABLE_AV1=Off` to disable), you will also need:
 - Meson
 - Ninja
 - Perl

​

4、设置环境变量

复制代码
export ANDROID_NDK_HOME=/home/ndk/android-ndk-r23c

5、编译

复制代码
cmake --preset=android-sdk -B build-android -DLINPHONESDK_ANDROID_ARCHS=arm64



cmake --build build-android
相关推荐
枫桥骤雨1 小时前
我的龙虾日记
ubuntu·openclaw
枫桥骤雨5 小时前
本地OpenClaw部署教程
ubuntu·openclaw
BieberChen8 小时前
ubuntu定时执行脚本---crontab详细使用指南
linux·运维·ubuntu
时空无限10 小时前
ubuntu 22.04 如何使用命令查看配置防火墙规则
服务器·网络·ubuntu
biubiubiu070610 小时前
Ubuntu 22.04 高级运维与架构规范手册
运维·ubuntu·架构
有毒的教程11 小时前
Ubuntu 网络代理设置教程
linux·网络·ubuntu
我是一个对称矩阵11 小时前
Ubuntu安装WIFI适配器驱动
stm32·单片机·ubuntu
vvw&11 小时前
如何在 Linux 中安装和使用 nftables
linux·运维·服务器·ubuntu
AzusaFighting12 小时前
ROS 2 Jazzy (Ubuntu Noble 24.04)部署
linux·运维·ubuntu
浮若于心12 小时前
WSL2 Ubuntu 占用 C 盘空间清理指南
linux·c语言·ubuntu