1.编译问题
软件编译出现问题,QTime需要替换为QElapsedTimer,并导入该包
位置在device.h118行
#include
......
//QTime m_startTimeCount;
QElapsedTimer m_startTimeCount;
修改之后可编译通过
2.运行报错
""
"QtScrcpy"
本软件完全开源免费,严禁用于非法用途,否则后果自负,你可以在下面地址下载:
"QtScrcpy https://github.com/barry-ran/QtScrcpy"
adb path: /home/hector/DATA/githubtools/QtScrcpy/third_party/adb/linux/adb
"../../../third_party/adb/linux/adb" "tcpip 5555"
AdbProcess::out:restarting in TCP mode port: 5555
adb return 0 exit status QProcess::NormalExit
"../../../third_party/adb/linux/adb" "devices"
AdbProcess::out:List of devices attached
APPID device
adb return 0 exit status QProcess::NormalExit
"../../../third_party/adb/linux/adb" "-s APPID devices"
AdbProcess::out:List of devices attached
APPID device
adb return 0 exit status QProcess::NormalExit
getScreenRect is empty
"../../../third_party/adb/linux/adb" "-s APPID push ../../../third_party/scrcpy-server /data/local/tmp/scrcpy-server.jar"
AdbProcess::out:../../../third_party/scrcpy-server: 1 file pushed. 0.9 MB/s (26142 bytes in 0.028s)
"../../../third_party/adb/linux/adb" "-s APPID reverse localabstract:scrcpy tcp:27183"
adb return 0 exit status QProcess::NormalExit
"../../../third_party/adb/linux/adb" "-s APPID shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 1.12.1 1080 8000000 60 false - true true"
adb return 0 exit status QProcess::NormalExit
"../../../third_party/adb/linux/adb" "-s APPID reverse --remove localabstract:scrcpy"
server start finish in 0.65s
show event
adb return 0 exit status QProcess::NormalExit
FPS: 10
hide event
FPS: 38
show event
FPS: 40
Script updated.
FPS: 40
ASSERT: "false" in file ../../QtScrcpy/QtScrcpy/util/mousetap/mousetap.cpp, line 22
[1] 324807 abort (core dumped) ./QtScrcpy
接着软件退出