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
1 / 3
To page
189******95
deepin
2019-05-26 03:58
#1
具体的一些快捷键可以到上面项目链接中查看
Reply View the author
superendermansm
deepin
2019-05-26 05:03
#2
mark         
Reply View the author
tommytctn
deepin
2019-05-26 07:07
#3
前两天刚玩过,重点是可以用无线连接,且不需要在手机安装APP,很不错。
Reply View the author
189******95
deepin
2019-05-26 07:51
#4
https://bbs.deepin.org/post/178520
前两天刚玩过,重点是可以用无线连接,且不需要在手机安装APP,很不错。

没试过无线,在Linux这边感觉这个确实不错,毕竟Linux这边投屏软件不多
Reply View the author
然也
deepin
2019-05-26 18:31
#5
https://bbs.deepin.org/post/178520
没试过无线,在Linux这边感觉这个确实不错,毕竟Linux这边投屏软件不多

刚安装了一下,挺好的,投屏挺方便的。
wifi下也可以,只不过反应觉得比usb连接慢点。
设置无线投屏就是在usb连接情况下,执行  以下命令
1    adb tcpip 5555
2    adb connect 手机ip:5555
3    拔掉usb线(此时adb 连接方式已经调整为监听tcpip连接,监听端口是5555)
4    运行scrcpy命令

原文 的操作方式如下:
https://www.genymotion.com/blog/ ... w-works-wirelessly/

How to run scrcpy wirelessly?
Here are the steps:
1. Connect the device to the same Wi-Fi as your computer
2. Get your device IP address (in Settings → About phone → Status)
3. Enable adb over TCP/IP on your device: adb tcpip 5555
4. Connect to your device: adb connect DEVICE_IP:5555 (replace DEVICE_IP)
5. Unplug your device
6. Run scrcpy as usual

To switch back to USB mode: adb usb.
Reply View the author
189******95
deepin
2019-05-26 18:49
#6
https://bbs.deepin.org/post/178520
刚安装了一下,挺好的,投屏挺方便的。
wifi下也可以,只不过反应觉得比usb连接慢点。
设置无线投屏就是 ...

ok的,多谢说明
Reply View the author
873792861
deepin
2019-05-27 03:33
#7
投屏到电脑干嘛?似乎对我而言,没什么用
Reply View the author
189******95
deepin
2019-05-27 05:38
#8
https://bbs.deepin.org/post/178520
投屏到电脑干嘛?似乎对我而言,没什么用

这个的话可以用来演示的时候使用
Reply View the author
然也
deepin
2019-05-28 21:30
#9
有能将iphone投屏到linux的软件吗?
Reply View the author
873792861
deepin
2019-06-03 06:56
#10
https://bbs.deepin.org/post/178520
投屏到电脑干嘛?似乎对我而言,没什么用

发现有我需要用的地方了。现在优酷上的漫威的影片只能移动APP上观看,而xdroid上安装的优酷看视频太卡,凤凰OS拓展到外接显示器只能是复制,分辨率不行。so,现在只能先用这个软件投屏看着先了。我为什么不看迅雷下载好的视频?因为边看电影边看弹幕比较有意思
Reply View the author
a2035274
deepin
2019-06-05 06:42
#11
刚刚在deepin-15.10.1上编译安装过,这scrcpy.tar.gz是编译好的两个文件,有需要的可以下载试用
但仍然需要,安装 adb 和 其它依赖

  1. sudo apt install ffmpeg libsdl2-2.0.0 android-tools-adb
Copy the Code
只是不用再安装 android-studio 和编译了


Reply View the author
189******95
deepin
2019-06-05 06:46
#12
https://bbs.deepin.org/post/178520
刚刚在deepin-15.10.1上编译安装过,这是编译好的两个文件,有需要的可以下载试用
但仍然需要,安装 adb 和 ...

编译不需要androd-studio只需要按照前面的步骤就好了
Reply View the author
a2035274
deepin
2019-06-05 06:55
#13
本帖最后由 a2035274 于 2019-6-4 22:58 编辑

那可能是我那里弄错了,按照你的方法一直出现错误
Failed to install the following Android SDK packages as some licences have…
最后没办法才安装的android-studio
设置环境变量
export ANDROID_HOME=~/Android/Sdk/

同意许可

cd ~/Android/Sdk/tools/bin
./sdkmanager --licenses

然后才编译成功





Reply View the author
189******95
deepin
2019-06-05 07:19
#14
https://bbs.deepin.org/post/178520
那可能是我那里弄错了,按照你的方法一直出现错误
Failed to install the following Android SDK packages  ...

这样看来也许是需要的,我本身安装了AndroidStudio所以可能没发现
Reply View the author
stainsun
deepin
2019-08-15 18:46
#15
本帖最后由 stain 于 2019-8-15 10:48 编辑

内网同屏,能无线,无需手机端。
又一款Linux下的办公工具,很好。
Reply View the author
stainsun
deepin
2019-08-15 18:51
#16
https://bbs.deepin.org/post/178520
内网同屏,能无线,无需手机端。
又一款Linux下的办公工具,很好。

“内+网+tou+屏”居然发不出来,“投屏”可以。
这关键字,唉,都是小广告逼的。
Reply View the author
hhhushuang
deepin
2019-08-16 19:11
#17
https://bbs.deepin.org/post/178520
内网同屏,能无线,无需手机端。
又一款Linux下的办公工具,很好。

那么在哪里才能下载到呢,上面这个对新手有些不友好
Reply View the author
hhhushuang
deepin
2019-08-16 19:12
#18
https://bbs.deepin.org/post/178520
内网同屏,能无线,无需手机端。
又一款Linux下的办公工具,很好。

那么在哪里才能下载到呢,
Reply View the author
a2035274
deepin
2019-08-16 20:47
#19
https://bbs.deepin.org/post/178520
那么在哪里才能下载到呢,

请看12楼  可以试一下
Reply View the author
hhhushuang
deepin
2019-08-16 22:00
#20
https://bbs.deepin.org/post/178520
请看12楼  可以试一下

很感谢你提供的帮助,但我还是失败了。一直到最后一步运行之前,我和原帖图片上内容都是一样的,最后一运行就不对
Reply View the author
1 / 3
To page