650 Star 6.2K Fork 1.7K

GVPBarry / QtScrcpy

 / 详情

deepin系统环境,qt5.12.2编译无法通过

待办的
创建于  
2024-03-17 18:13

/home/Chanson/Downloads/QtScrcpy-2.1.2/QtScrcpy/QtScrcpyCore/src/device/server/server.cpp: In member function ‘bool Server::execute()’:
/home/Chanson/Downloads/QtScrcpy-2.1.2/QtScrcpy/QtScrcpyCore/src/device/server/server.cpp:173:12: error: comparison of integer expressions of different signedness: ‘int’ and ‘quint32’ {aka ‘unsigned int’} [-Werror=sign-compare]
173 | if (-1 != m_params.scid) {
| ~~~^~~~~~~~~~~~~~~~
/home/Chanson/Downloads/QtScrcpy-2.1.2/QtScrcpy/QtScrcpyCore/src/device/server/server.cpp: In member function ‘bool Server::readInfo(VideoSocket*, QString&, QSize&)’:
/home/Chanson/Downloads/QtScrcpy-2.1.2/QtScrcpy/QtScrcpyCore/src/device/server/server.cpp:322:58: error: unused parameter ‘deviceName’ [-Werror=unused-parameter]
322 | bool Server::readInfo(VideoSocket videoSocket, QString &deviceName, QSize &size)
| ~~~~~~~~~^~~~~~~~~~
/home/Chanson/Downloads/QtScrcpy-2.1.2/QtScrcpy/QtScrcpyCore/src/device/server/server.cpp:322:77: error: unused parameter ‘size’ [-Werror=unused-parameter]
322 | bool Server::readInfo(VideoSocket videoSocket, QString &deviceName, QSize &size)
| ~~~~~~~^~~~
In file included from /home/Chanson/Qt5.12.12/5.12.12/gcc_64/include/QtCore/qsharedpointer.h:48,
from /home/Chanson/Qt5.12.12/5.12.12/gcc_64/include/QtCore/qdebug.h:54,
from /home/Chanson/Qt5.12.12/5.12.12/gcc_64/include/QtCore/QDebug:1,
from /home/Chanson/Downloads/QtScrcpy-2.1.2/QtScrcpy/QtScrcpyCore/src/devicemanage/devicemanage.cpp:1:
/home/Chanson/Qt5.12.12/5.12.12/gcc_64/include/QtCore/qsharedpointer_impl.h: In instantiation of ‘QWeakPointer::QWeakPointer(X
, bool) [with X = VideoSocket; T = QObject]’:
/home/Chanson/Qt5.12.12/5.12.12/gcc_64/include/QtCore/qpointer.h:71:29: required from ‘QPointer::QPointer(T
) [with T = VideoSocket]’
/home/Chanson/Downloads/QtScrcpy-2.1.2/QtScrcpy/QtScrcpyCore/src/device/demuxer/demuxer.h:44:43: required from here
/home/Chanson/Qt5.12.12/5.12.12/gcc_64/include/QtCore/qsharedpointer_impl.h:688:65: error: cannot convert ‘VideoSocket*’ to ‘const QObject*’
688 | inline QWeakPointer(X ptr, bool) : d(ptr ? Data::getAndRef(ptr) : nullptr), value(ptr)
| ^~~
| |
| VideoSocket

/home/Chanson/Qt5.12.12/5.12.12/gcc_64/include/QtCore/qsharedpointer_impl.h:160:62: note: initializing argument 1 of ‘static QtSharedPointer::ExternalRefCountData* QtSharedPointer::ExternalRefCountData::getAndRef(const QObject*)’
160 | Q_CORE_EXPORT static ExternalRefCountData getAndRef(const QObject );
| ^~~~~~~~~~~~~~~
/home/Chanson/Qt5.12.12/5.12.12/gcc_64/include/QtCore/qsharedpointer_impl.h:688:88: error: cannot convert ‘VideoSocket
’ to ‘QObject
’ in initialization
688 | inline QWeakPointer(X ptr, bool) : d(ptr ? Data::getAndRef(ptr) : nullptr), value(ptr)
| ^~~
| |
| VideoSocket

评论 (0)

影舞式 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
C++
1
https://gitee.com/Barryda/QtScrcpy.git
git@gitee.com:Barryda/QtScrcpy.git
Barryda
QtScrcpy
QtScrcpy

搜索帮助

53164aa7 5694891 3bd8fe86 5694891