Android投屏软件scrcpy使用
Tofloor
poster avatar
189******95
deepin
2019-05-26 03:53
Author
Android投屏软件scrcpy使用https://github.com/Genymobile/scrcpy
个人在deepin上安装步骤如下
1.安装依赖
  1. # runtime dependencies
  2. sudo apt install ffmpeg libsdl2-2.0.0

  3. # client build dependencies
  4. sudo apt install make gcc pkg-config meson ninja-build \
  5.                  libavcodec-dev libavformat-dev libavutil-dev \
  6.                  libsdl2-dev

  7. # server build dependencies
  8. sudo apt install openjdk-8-jdk
Copy the Code
2.下载软件包

3.解压后右键在终端打开

4.编译安装软件
编译:
  1. meson x --buildtype release --strip -Db_lto=true
  2. cd x
  3. ninja
Copy the Code
安装:
  1. sudo ninja install
Copy the Code


5.使用
数据线连上手机,打开USB调试
终端输入:
  1. scrcpy
Copy the Code
即可使用

Reply Favorite View the author
All Replies
3 / 3
To page
kevin_870223
deepin
2020-03-31 08:03
#41
https://bbs.deepin.org/post/178520
1、下载 scrcpy.tar.gz
2、解压到当前目录
3、右键打开终端

我重启了之后,直接终端输入scrcpy,现在又是线程被终止,是不是我的手机的问题?
Reply View the author
a2035274
deepin
2020-03-31 19:33
#42
本帖最后由 a2035274 于 2020-3-31 12:18 编辑
https://bbs.deepin.org/post/178520
我重启了之后,直接终端输入scrcpy,现在又是线程被终止,是不是我的手机的问题?
...

华为的android版本为9.0

他的环境为android 5.0
Requirements
The Android device requires at least API 21 (Android 5.0).
Make sure you enabled adb debugging on your device(s).
On some devices, you also need to enable an additional option to control it using keyboard and mouse.

出现问题是很正常的,只能等Genymobile的作者解决这个问题了


也尝试了编译最新版 1.12.1  缺少一大堆第三方库  又无法 ()翻() 墙  所以你可以自已试试

Reply View the author
kevin_870223
deepin
2020-03-31 19:47
#43
https://bbs.deepin.org/post/178520
华为的android版本为9.0

他的环境为android 5.0

感谢您 的耐心解答,谢谢!!
Reply View the author
JesseyLawson
deepin
2020-04-01 04:14
#44
刚刚试了一下,打开软件后,深度的窗口特效(半透明)就没有了
Reply View the author
189******95
deepin
2020-04-04 17:00
#45
https://bbs.deepin.org/post/178520
刚刚试了一下,打开软件后,深度的窗口特效(半透明)就没有了

是这样的,应该是不支持深度的特效,或者说深度的特效不支持这个软件
Reply View the author
nqhdanny
deepin
2020-05-25 01:59
#46
https://bbs.deepin.org/post/178520
那可能是我那里弄错了,按照你的方法一直出现错误
Failed to install the following Android SDK packages  ...

你的安装问题我都遇到了, 感谢你的指点,androd-studio 用apt安装后 需要进入软件 再自动安装 tools, 我安装的时候 还遇到了 meson太低, 要装高一些版本的版本,最后终于用上了,  真是千辛万苦啊
Reply View the author
a2035274
deepin
2020-05-27 03:54
#47
https://bbs.deepin.org/post/178520
你的安装问题我都遇到了, 感谢你的指点,androd-studio 用apt安装后 需要进入软件 再自动安装 tools, 我 ...

有更新 大神又打包了新的
https://bbs.deepin.org/post/190453
Reply View the author
心平气和
deepin
2020-05-27 04:42
#48
不明白这个帖子为什么加精了,论坛有好多人打包了scrcpy qt gui版本,那个比你这个不简单好多?
Reply View the author
神末shenmo
Moderator
Spark-App
2020-05-27 04:52
#49
https://bbs.deepin.org/post/178520
不明白这个帖子为什么加精了,论坛有好多人打包了scrcpy qt gui版本,那个比你这个不简单好多? ...

这个是第一个。。。
Reply View the author
i8520
deepin
2020-05-27 05:45
#50
https://bbs.deepin.org/post/178520
刚安装了一下,挺好的,投屏挺方便的。
wifi下也可以,只不过反应觉得比usb连接慢点。
设置无线投屏就是 ...

这个就可以自动了
  1. #!/bin/bash
  2. while [ true ]; do
  3. /bin/sleep 3
  4. adb tcpip 5555
  5. # 192.168.5.55 自己的手机IP,手机和电脑处于同一网段
  6. adb connect 192.168.5.55:5555
  7. scrcpy
  8. done
Copy the Code
Reply View the author
189******95
deepin
2020-05-27 16:36
#51
https://bbs.deepin.org/post/178520
不明白这个帖子为什么加精了,论坛有好多人打包了scrcpy qt gui版本,那个比你这个不简单好多? ...

可以让版主取消我的加精啊,对于这个无所谓吧,就是分享一下而已,也当做自己的记录
Reply View the author
189******95
deepin
2020-05-27 16:37
#52
https://bbs.deepin.org/post/178520
这个是第一个。。。

取消加精吧,不能因为第一个就加精吧,还是要给论坛提供更加简单快捷的更好
Reply View the author
deepin-mq
deepin
2020-05-27 16:59
#53
不错的教程,推荐了。
Reply View the author
神末shenmo
Moderator
Spark-App
2020-05-27 17:15
#54
https://bbs.deepin.org/post/178520
取消加精吧,不能因为第一个就加精吧,还是要给论坛提供更加简单快捷的更好 ...

主要不是我加的,我也不知道最开始是怎么回事。。。
Reply View the author
189******95
deepin
2020-05-27 17:20
#55
https://bbs.deepin.org/post/178520
主要不是我加的,我也不知道最开始是怎么回事。。。

额。。。我也不清楚什么情况,这都好久前的帖子了
Reply View the author
189******95
deepin
2020-05-27 17:26
#56
https://bbs.deepin.org/post/178520
不错的教程,推荐了。

谢谢,不过论坛里有关于这个软件更好的教程,可以关注一下
Reply View the author
nqhdanny
deepin
2020-05-30 06:20
#57
https://bbs.deepin.org/post/178520
有更新 大神又打包了新的
https://bbs.deepin.org/post/190453

谢谢 ,已经通过最原始的方法装起来了 能用就很开心了 先不折腾了 用的不爽在来搞这个
Reply View the author
jinlong-09
deepin
2021-12-12 06:28
#58

编译错误该怎么办?

Reply View the author
3 / 3
To page