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
2 / 3
To page
a2035274
deepin
2019-08-16 22:17
#21
错误信息是什么
Reply View the author
hhhushuang
deepin
2019-08-16 22:31
#22
https://bbs.deepin.org/post/178520
请看12楼  可以试一下

试过了,依然没成功。我放弃了,谢谢帮忙
Reply View the author
paopao
deepin
2019-08-17 01:19
#23
本帖最后由 cba112233 于 2019-8-16 17:21 编辑

咋回事?最后一步出现的这个,前面步骤一样。求助~/Desktop/scrcpy-1.10$ scrcpy
INFO: scrcpy 1.10
adb: error: cannot stat '/usr/local/share/scrcpy/scrcpy-server.jar': No such file or directory
ERROR: "adb push" returned with value 1


Reply View the author
wsbln
deepin
2019-08-17 06:06
#24
试试安装一下
Reply View the author
不避风云
deepin
2019-08-17 22:43
#25
感谢分享,我转载到深度易经了,https://github.com/bubifengyun/deepin-bible/blob/master/rmd/303-install-software.Rmd 结合自己情况写了个教程,大家有啥意见欢迎来提。
Reply View the author
不避风云
deepin
2019-08-17 22:45
#26
cba112233 发表于 2019-8-16 17:19
咋回事?最后一步出现的这个,前面步骤一样。求助~/Desktop/scrcpy-1.10$ scrcpy
INFO: scrcpy 1.10 ...

参考这里 https://github.com/bubifengyun/deepin-bible/blob/master/rmd/303-install-software.Rmd

在这个之前,还需要提前安装 [`adb`](https://developer.android.com/studio/releases/platform-tools.html),下载解压缩在 */opt/android-platform-tools/*文件夹,并创建adb的超链接。

```bash
$ wget https://dl.google.com/android/repository/platform-tools_r29.0.2-linux.zip
$ unzip platform-tools_r29.0.2-linux.zip
$ sudo cp -r platform-tools /opt/android-platform-tools
$ sudo ln -s /opt/android-platform-tools/adb /usr/local/bin/
```
你再试试呢。
Reply View the author
zicheqingluo
deepin
2019-08-18 02:03
#27
有能让ipad扩展deepin屏幕的软件吗
Reply View the author
paopao
deepin
2019-08-19 23:18
#28
https://bbs.deepin.org/post/178520
参考这里 https://github.com/bubifengyun/deepin-bible/blob/master/rmd/303-install-software.Rmd

在 ...

十分感谢你的帮助
Reply View the author
paopao
deepin
2019-08-19 23:32
#29
https://bbs.deepin.org/post/178520
参考这里 https://github.com/bubifengyun/deepin-bible/blob/master/rmd/303-install-software.Rmd

在 ...

还有个疑问,希望能得到您的帮助或指导。使用scrcpy -f得到的是全屏,怎么才能退出?我还想将这个命令scrcpy -f做成可执行程序,双击可用,我先百度一下,找找方法。(小白一枚,学过一学期Windows下的C语言基础)
Reply View the author
paopao
deepin
2019-08-20 00:20
#30
可以再传过去音频吗?
Reply View the author
paopao
deepin
2019-08-20 01:20
#31
https://bbs.deepin.org/post/178520
可以再传过去音频吗?

声音问题用蓝牙解决了
Reply View the author
paopao
deepin
2019-08-20 01:24
#32
https://bbs.deepin.org/post/178520
参考这里 https://github.com/bubifengyun/deepin-bible/blob/master/rmd/303-install-software.Rmd

在 ...

拔掉数据线可以退出(简单粗暴的方法);我从网上找的方法,做了个shell,将那个scrcpy -f放进去了
Reply View the author
不避风云
deepin
2019-08-20 03:19
#33
https://bbs.deepin.org/post/178520
拔掉数据线可以退出(简单粗暴的方法);我从网上找的方法,做了个shell,将那个scrcpy -f放进去了 ...

Alt+呢,切换窗口,或者按下Win+D,显示桌面,都可以吧。有啥问题,欢迎在 https://github.com/bubifengyun/deepin-bible 留言,可以写到这本书里,感谢。
Reply View the author
风吹过的绿洲
deepin
2019-10-19 07:41
#34
能控制屏幕么,不然向日葵也能投屏
Reply View the author
189******95
deepin
2019-10-19 18:09
#35
https://bbs.deepin.org/post/178520
能控制屏幕么,不然向日葵也能投屏

不能,只是一个纯粹投屏
Reply View the author
残念
deepin
2019-10-19 18:49
#36
本帖最后由 peterzhang1234 于 2019-10-19 11:01 编辑

找到一个GUI,有人要试一试吗?
https://github.com/Tomotoes/scrcpy-gui
Reply View the author
Comments
icedragon
2020-05-29 04:41
尝试了,不行。已经有人提交 issue 了。
kevin_870223
deepin
2020-03-30 23:09
#37
请问这个是什么原因?我的是deepin15.11,手机是华为手机。己经打开了“usb调试”。
Reply View the author
kevin_870223
deepin
2020-03-31 00:06
#38
https://bbs.deepin.org/post/178520
刚刚在deepin-15.10.1上编译安装过,这是编译好的两个文件,有需要的可以下载试用
但仍然需要,安装 adb 和 ...

您好,压缩包下载好后,需要放在中里解压吗?还是放桌面解压也可以?解压好后在那个文件夹里面启用终端输入“sudo apt install ffmpeg libsdl2-2.0.0 android-tools-adb”这段代码就可以了吗?
Reply View the author
a2035274
deepin
2020-03-31 06:15
#39
https://bbs.deepin.org/post/178520
您好,压缩包下载好后,需要放在中里解压吗?还是放桌面解压也可以?解压好后在那个文件夹里面启用终端输 ...

1、下载 scrcpy.tar.gz
2、解压到当前目录
3、右键打开终端
4、终端中输入sudo cp -a usr /
5、终端中输入sudo apt-get install android-tools-adb ffmpeg libsdl2-2.0.0
6、终端中输入sudo scrcpy

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

不知道是我的手机的原因还是什么,现在是这种错误,说无法打开视频流,我的手机是华为手机,是不是华为手机的某种限制。我在windows里用APP可以实现。deepin里面没这个件。
Reply View the author
2 / 3
To page