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
相关推荐
Eloudy1 小时前
Ubuntu 22.04 从源码编译安装 ROS 2 Jazzy 笔记
linux·笔记·ubuntu
云空1 天前
《XUbuntu 终端完整命令大全》
linux·前端·chrome·ubuntu·xubuntu
北城笑笑1 天前
Server 18 ,Nginx + Vite 前端部署排错实战:从 `/api/gpt/chat` 404 到 9012 后端服务的完整定位过程
linux·运维·前端·nginx·ubuntu·vue
小小的木头人1 天前
Ubuntu 20.04 离线安装最新版 Firefox 浏览器
ubuntu·firefox
时空无限2 天前
ubuntu dpkg -l 输出第一列解释
linux·运维·ubuntu
叮咚侠2 天前
Ubuntu 24.04 安装zabbix-agent 5.0 服务
linux·ubuntu·zabbix·zabbix-agent
bosins2 天前
将 Hyper-V 上的 Ubuntu 虚拟机内容迁移到 WSL (Windows Subsystem for Linux) 中
linux·windows·ubuntu
Matt今年18岁2 天前
自动检测校园网状态,自动联网并恢复 Ubuntu 下的 ToDesk 连接
运维·服务器·开发语言·pytorch·python·ubuntu
王坊兴2 天前
Ubuntu 部署产品原型静态服务器:SFTP + Nginx
服务器·nginx·ubuntu
breeze jiang2 天前
TypeScript 工具类型怎么记:从 Pick、Omit 到 keyof 与 Exclude 推导
linux·ubuntu·typescript