欢迎光临散文网 会员登陆 & 注册

ubuntu安装scrcpy 2.1.1

2023-09-15 12:11 作者:JieP  | 我要投稿

ubuntu安装scrcpy 2.1.1

2023年9月15日ubuntu 23.04

test@test-ubuntustudiopc:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 23.04
Release:        23.04
Codename:       lunar
 

apt search发现apt源中打包好的scrcpy版本为1.25-1

test@test-ubuntustudiopc:~$ apt search scrcpy
正在排序... 完成全文搜索... 完成
scrcpy/lunar 1.25-1 amd64
  Display and control your Android device

scrcpy-server/lunar,lunar 1.25-1 all
  Display and control your Android device - server binary
 

按文档编译安装最新版本

文档地址:https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md

安装需要的包:

sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
                 gcc git pkg-config meson ninja-build libsdl2-dev \
                 libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
                 libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
 

clone scrcpy工程到本地,进入工程根目录,执行./install_release.sh安装。

git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh
 

安装完成后查看scrcpy版本:

test@test-ubuntustudiopc:~$ scrcpy --version
scrcpy 2.1.1 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
 - SDL: 2.26.3 / 2.26.3
 - libavcodec: 59.37.100 / 59.37.100
 - libavformat: 59.27.100 / 59.27.100
 - libavutil: 57.28.100 / 57.28.100
 - libavdevice: 59.7.100 / 59.7.100
 - libusb: - / 1.0.26


ubuntu安装scrcpy 2.1.1的评论 (共 条)

分享到微博请遵守国家法律