Skip to content

deepin 编译wayland_autotool失败 #143

Description

@wang-qa

环境

deepin 社区版25
Deepin GNU/Linux 23 \n \l

#142 与这个安装报错一致
都是缺少部分文件

  1. cat: /usr/share/deepin-elf-verify/whitelist: 没有那个文件或目录
  2. cat: /home/jidan/.xsession-errors: 没有那个文件或目录
  3. error: KWayland/Client/ddeseat.h: 没有那个文件或目录
    • 在libdwayland-dev: /usr/include/DWayland/Client/ddeseat.h
      中找到???
    • KWayland/Client 全路径为/usr/include/KF5/KWayland/KWayland/Client,也是缺少部分文件无法编译通过
编译 wayland_autotool 点击查看详情
+ sudo apt install -y g++ build-essential cmake qt5-default qt5-qmake libkf5wayland-dev libqt5gui5 libqt5core5a
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
g++ 已经是最新版 (4:13.2.0+really12.3.0-0deepin2)。
build-essential 已经是最新版 (12.12+deepin2)。
cmake 已经是最新版 (3.31.4-2)。
qt5-default 已经是最新版 (5.15.8-1+deepin9+rb1)。
qt5-qmake 已经是最新版 (5.15.8-1+deepin9+rb1)。
libkf5wayland-dev 已经是最新版 (4:5.103.0-1)。
libqt5gui5 已经是最新版 (5.15.8-1+deepin9+rb1)。
libqt5core5a 已经是最新版 (5.15.8-1+deepin9+rb1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 325 个软件包未被升级。
+ mkdir -p build
+ cd build
+ cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/KF5Wayland/KF5WaylandQchTargets.cmake:6 (set_target_properties):
  Policy CMP0160 is not set: More read-only target properties now error when
  trying to set them.  Run "cmake --help-policy CMP0160" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  IMPORTED property is read-only for target("KF5Wayland_QCH")

Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/KF5Wayland/KF5WaylandConfig.cmake:41 (include)
  CMakeLists.txt:9 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/jidan/my_project/src/depends/wayland_autotool/build
+ make -j4
[  0%] Built target wayland_autotool_autogen_timestamp_deps
[ 16%] Built target wayland_autotool_autogen
[ 66%] Building CXX object CMakeFiles/wayland_autotool.dir/main.cpp.o
[ 66%] Building CXX object CMakeFiles/wayland_autotool.dir/autotool.cpp.o
[ 66%] Building CXX object CMakeFiles/wayland_autotool.dir/wayland_autotool_autogen/mocs_compilation.cpp.o
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/autotool.h: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/autotool.h: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/autotool.h: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/main.cpp: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/main.cpp: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/main.cpp: not a directory
In file included from /home/jidan/my_project/src/depends/wayland_autotool/build/wayland_autotool_autogen/EWIEGA46WW/moc_autotool.cpp:10,
                 from /home/jidan/my_project/src/depends/wayland_autotool/build/wayland_autotool_autogen/mocs_compilation.cpp:2:
/home/jidan/my_project/src/depends/wayland_autotool/build/wayland_autotool_autogen/EWIEGA46WW/../../../autotool.h:15:10: fatal error: KWayland/Client/ddeseat.h: 没有那个文件或目录
   15 | #include <KWayland/Client/ddeseat.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/jidan/my_project/src/depends/wayland_autotool/main.cpp:6:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:15:10: fatal error: KWayland/Client/ddeseat.h: 没有那个文件或目录
   15 | #include <KWayland/Client/ddeseat.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:6:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:15:10: fatal error: KWayland/Client/ddeseat.h: 没有那个文件或目录
   15 | #include <KWayland/Client/ddeseat.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
make[2]: *** [CMakeFiles/wayland_autotool.dir/build.make:86:CMakeFiles/wayland_autotool.dir/wayland_autotool_autogen/mocs_compilation.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [CMakeFiles/wayland_autotool.dir/build.make:114:CMakeFiles/wayland_autotool.dir/main.cpp.o] 错误 1
make[2]: *** [CMakeFiles/wayland_autotool.dir/build.make:100:CMakeFiles/wayland_autotool.dir/autotool.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:123:CMakeFiles/wayland_autotool.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2

根据资料,尝试将src/depends/wayland_autotool/autotool.cpp src/depends/wayland_autotool/autotool.h中的KWayland修改为DWayland编译结果变了,也还是失败

替换后编译日志
jidan@jidan-PC:~/my_project/src/depends/wayland_autotool/build$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/KF5Wayland/KF5WaylandQchTargets.cmake:6 (set_target_properties):
  Policy CMP0160 is not set: More read-only target properties now error when
  trying to set them.  Run "cmake --help-policy CMP0160" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  IMPORTED property is read-only for target("KF5Wayland_QCH")

Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/KF5Wayland/KF5WaylandConfig.cmake:41 (include)
  CMakeLists.txt:9 (find_package)                                                                             
This warning is for project developers.  Use -Wno-dev to suppress it.                                         
                                                                                                              
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/jidan/my_project/src/depends/wayland_autotool/build
jidan@jidan-PC:~/my_project/src/depends/wayland_autotool/build$ make 
[ 33%] Built target wayland_autotool_autogen_timestamp_deps
[ 33%] Built target wayland_autotool_autogen
[ 33%] Building CXX object CMakeFiles/wayland_autotool.dir/autotool.cpp.o
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/autotool.h: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: not a directory
cc1plus: warning: /home/jidan/my_project/src/depends/wayland_autotool/main.cpp: not a directory
In file included from /home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:6:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:68:5: error: ‘DWayland’ does not name a type
   68 |     DWayland::Client::Registry * m_registry = Q_NULLPTR;
      |     ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:70:5: error: ‘DWayland’ does not name a type
   70 |     DWayland::Client::FakeInput *m_fakeInput = Q_NULLPTR;
      |     ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:71:5: error: ‘DWayland’ does not name a type
   71 |     DWayland::Client::DDESeat *m_ddeSeat = Q_NULLPTR;
      |     ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:72:5: error: ‘DWayland’ does not name a type
   72 |     DWayland::Client::Seat *m_seat = Q_NULLPTR;
      |     ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:74:5: error: ‘DWayland’ does not name a type
   74 |     DWayland::Client::DDEPointer *m_ddePointer= Q_NULLPTR;
      |     ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:76:5: error: ‘DWayland’ does not name a type
   76 |     DWayland::Client::DataControlDeviceV1 *m_dataControlDeviceV1=Q_NULLPTR;
      |     ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:77:5: error: ‘DWayland’ does not name a type
   77 |     DWayland::Client::DataControlSourceV1 *m_dataControlSourceV1=Q_NULLPTR;
      |     ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.h:82:5: error: ‘DWayland’ does not name a type
   82 |     DWayland::Client::DataControlDeviceManager *m_dataControlDeviceManager = Q_NULLPTR;
      |     ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::init()’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:41:5: error: ‘m_registry’ was not declared in this scope; did you mean ‘wl_registry’?
   41 |     m_registry = new DWayland::Client::Registry(this);
      |     ^~~~~~~~~~
      |     wl_registry
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:41:22: error: ‘DWayland’ does not name a type
   41 |     m_registry = new DWayland::Client::Registry(this);
      |                      ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:42:24: error: ‘DWayland’ has not been declared
   42 |     m_registry->create(DWayland::Client::ConnectionThread::fromApplication(this));
      |                        ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:44:26: error: ‘DWayland’ has not been declared
   44 |     connect(m_registry, &DWayland::Client::Registry::fakeInputAnnounced, this, [this] (quint32 name, quint32 version) {
      |                          ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In lambda function:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:45:8: error: ‘m_fakeInput’ was not declared in this scope
   45 |        m_fakeInput = m_registry->createFakeInput(name, version, this);
      |        ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:45:22: error: ‘m_registry’ is not captured
   45 |        m_fakeInput = m_registry->createFakeInput(name, version, this);
      |                      ^~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:44:85: note: the lambda has no capture-default
   44 |     connect(m_registry, &DWayland::Client::Registry::fakeInputAnnounced, this, [this] (quint32 name, quint32 version) {
      |                                                                                     ^
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:41:5: note: ‘<typeprefixerror>m_registry’ declared here
   41 |     m_registry = new DWayland::Client::Registry(this);
      |     ^~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::init()’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:50:26: error: ‘DWayland’ has not been declared
   50 |     connect(m_registry, &DWayland::Client::Registry::seatAnnounced, this, [this] (quint32 name, quint32 version) {
      |                          ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In lambda function:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:51:8: error: ‘m_seat’ was not declared in this scope; did you mean ‘wl_seat’?
   51 |        m_seat = m_registry->createSeat(name, version, this);
      |        ^~~~~~
      |        wl_seat
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:51:17: error: ‘m_registry’ is not captured
   51 |        m_seat = m_registry->createSeat(name, version, this);
      |                 ^~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:50:80: note: the lambda has no capture-default
   50 |     connect(m_registry, &DWayland::Client::Registry::seatAnnounced, this, [this] (quint32 name, quint32 version) {
      |                                                                                ^
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:41:5: note: ‘<typeprefixerror>m_registry’ declared here
   41 |     m_registry = new DWayland::Client::Registry(this);
      |     ^~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::init()’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:53:26: error: ‘DWayland’ has not been declared
   53 |     connect(m_registry, &DWayland::Client::Registry::ddeSeatAnnounced, this, [this] (quint32 name, quint32 version) {
      |                          ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In lambda function:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:54:8: error: ‘m_ddeSeat’ was not declared in this scope
   54 |        m_ddeSeat = m_registry->createDDESeat(name, version, this);
      |        ^~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:54:20: error: ‘m_registry’ is not captured
   54 |        m_ddeSeat = m_registry->createDDESeat(name, version, this);
      |                    ^~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:53:83: note: the lambda has no capture-default
   53 |     connect(m_registry, &DWayland::Client::Registry::ddeSeatAnnounced, this, [this] (quint32 name, quint32 version) {
      |                                                                                   ^
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:41:5: note: ‘<typeprefixerror>m_registry’ declared here
   41 |     m_registry = new DWayland::Client::Registry(this);
      |     ^~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:55:8: error: ‘m_ddePointer’ was not declared in this scope; did you mean ‘dde_pointer’?
   55 |        m_ddePointer=m_ddeSeat->createDDePointer(this);
      |        ^~~~~~~~~~~~
      |        dde_pointer
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::init()’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:57:26: error: ‘DWayland’ has not been declared
   57 |     connect(m_registry, &DWayland::Client::Registry::dataControlDeviceManagerAnnounced, this, [this] (quint32 name, quint32 version) {
      |                          ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In lambda function:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:58:8: error: ‘m_dataControlDeviceManager’ was not declared in this scope
   58 |        m_dataControlDeviceManager = m_registry->createDataControlDeviceManager(name, version, this);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:58:37: error: ‘m_registry’ is not captured
   58 |        m_dataControlDeviceManager = m_registry->createDataControlDeviceManager(name, version, this);
      |                                     ^~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:57:100: note: the lambda has no capture-default
   57 | ct(m_registry, &DWayland::Client::Registry::dataControlDeviceManagerAnnounced, this, [this] (quint32 name, quint32 version) {
      |                                                                                           ^

/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:41:5: note: ‘<typeprefixerror>m_registry’ declared here
   41 |     m_registry = new DWayland::Client::Registry(this);
      |     ^~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:61:12: error: ‘m_dataControlSourceV1’ was not declared in this scope; did you mean ‘zwlr_data_control_source_v1’?
   61 |            m_dataControlSourceV1=m_dataControlDeviceManager->createDataSource(this);
      |            ^~~~~~~~~~~~~~~~~~~~~
      |            zwlr_data_control_source_v1
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:62:12: error: ‘m_dataControlDeviceV1’ was not declared in this scope; did you mean ‘zwlr_data_control_device_v1’?
   62 |            m_dataControlDeviceV1=m_dataControlDeviceManager->getDataDevice(m_seat, this);
      |            ^~~~~~~~~~~~~~~~~~~~~
      |            zwlr_data_control_device_v1
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:62:76: error: ‘m_seat’ was not declared in this scope; did you mean ‘wl_seat’?
   62 |            m_dataControlDeviceV1=m_dataControlDeviceManager->getDataDevice(m_seat, this);
      |                                                                            ^~~~~~
      |                                                                            wl_seat
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:67:44: error: ‘DWayland’ has not been declared
   67 |            connect(m_dataControlDeviceV1, &DWayland::Client::DataControlDeviceV1::dataOffered, this, [this](DWayland::Client::DataControlOfferV1* offer){
      |                                            ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:67:109: error: ‘DWayland’ has not been declared
   67 | (m_dataControlDeviceV1, &DWayland::Client::DataControlDeviceV1::dataOffered, this, [this](DWayland::Client::DataControlOfferV1* offer){
      |                                                                                           ^~~~~~~~

/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:67:145: error: expected ‘,’ or ‘...’ before ‘*’ token
   67 | :Client::DataControlDeviceV1::dataOffered, this, [this](DWayland::Client::DataControlOfferV1* offer){
      |                                                                                             ^

/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In lambda function:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:69:21: error: ‘offer’ was not declared in this scope
   69 |                if (!offer)
      |                     ^~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:81:46: error: ‘offer’ was not declared in this scope
   81 |                QList<QString> mimeTypeList = offer->offeredMimeTypes();
      |                                              ^~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In lambda function:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:126:44: error: ‘DWayland’ has not been declared
  126 |            connect(m_dataControlSourceV1, &DWayland::Client::DataControlSourceV1::sendDataRequested,this,[this] (const QString &mimeType, qint32 fd) {
      |                                            ^~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::click(QString)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:195:9: error: ‘m_fakeInput’ was not declared in this scope
  195 |         m_fakeInput->requestPointerButtonClick(Qt::MouseButton::LeftButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:198:9: error: ‘m_fakeInput’ was not declared in this scope
  198 |         m_fakeInput->requestPointerButtonClick(Qt::MouseButton::RightButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:201:9: error: ‘m_fakeInput’ was not declared in this scope
  201 |         m_fakeInput->requestPointerButtonClick(Qt::MouseButton::MiddleButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::mouseDown(QString)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:210:9: error: ‘m_fakeInput’ was not declared in this scope
  210 |         m_fakeInput->requestPointerButtonPress(Qt::MouseButton::LeftButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:213:9: error: ‘m_fakeInput’ was not declared in this scope
  213 |         m_fakeInput->requestPointerButtonPress(Qt::MouseButton::RightButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:216:9: error: ‘m_fakeInput’ was not declared in this scope
  216 |         m_fakeInput->requestPointerButtonPress(Qt::MouseButton::MiddleButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::mouseUp(QString)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:224:9: error: ‘m_fakeInput’ was not declared in this scope
  224 |         m_fakeInput->requestPointerButtonRelease(Qt::MouseButton::LeftButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:227:9: error: ‘m_fakeInput’ was not declared in this scope
  227 |         m_fakeInput->requestPointerButtonRelease(Qt::MouseButton::RightButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:230:9: error: ‘m_fakeInput’ was not declared in this scope
  230 |         m_fakeInput->requestPointerButtonRelease(Qt::MouseButton::MiddleButton);
      |         ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::moveTo(int, int)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:237:5: error: ‘m_fakeInput’ was not declared in this scope
  237 |     m_fakeInput->requestPointerMoveAbsolute(point);
      |     ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘QPointF AutoTool::getPos()’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:242:12: error: ‘m_ddePointer’ was not declared in this scope; did you mean ‘dde_pointer’?
  242 |     return m_ddePointer->getGlobalPointerPos();
      |            ^~~~~~~~~~~~
      |            dde_pointer
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::keyDown(quint32)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:255:5: error: ‘m_fakeInput’ was not declared in this scope
  255 |     m_fakeInput->requestKeyboardKeyPress(key);
      |     ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::keyUp(quint32)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:260:5: error: ‘m_fakeInput’ was not declared in this scope
  260 |     m_fakeInput->requestKeyboardKeyRelease(key);
      |     ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::vscroll(qreal)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:272:5: error: ‘m_fakeInput’ was not declared in this scope
  272 |     m_fakeInput->requestPointerAxis(Qt::Orientation::Vertical,delta);
      |     ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::hscroll(qreal)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:277:5: error: ‘m_fakeInput’ was not declared in this scope
  277 |     m_fakeInput->requestPointerAxis(Qt::Orientation::Horizontal,delta);
      |     ^~~~~~~~~~~
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp: In member function ‘void AutoTool::setText(QString)’:
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:293:9: error: ‘m_dataControlSourceV1’ was not declared in this scope; did you mean ‘zwlr_data_control_source_v1’?
  293 |         m_dataControlSourceV1->offer(format);
      |         ^~~~~~~~~~~~~~~~~~~~~
      |         zwlr_data_control_source_v1
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:295:5: error: ‘m_dataControlDeviceV1’ was not declared in this scope; did you mean ‘zwlr_data_control_device_v1’?
  295 |     m_dataControlDeviceV1->setSelection(0, m_dataControlSourceV1);
      |     ^~~~~~~~~~~~~~~~~~~~~
      |     zwlr_data_control_device_v1
/home/jidan/my_project/src/depends/wayland_autotool/autotool.cpp:295:44: error: ‘m_dataControlSourceV1’ was not declared in this scope; did you mean ‘zwlr_data_control_source_v1’?
  295 |     m_dataControlDeviceV1->setSelection(0, m_dataControlSourceV1);
      |                                            ^~~~~~~~~~~~~~~~~~~~~
      |                                            zwlr_data_control_source_v1
make[2]: *** [CMakeFiles/wayland_autotool.dir/build.make:100:CMakeFiles/wayland_autotool.dir/autotool.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:123:CMakeFiles/wayland_autotool.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2

安装日志 点击查看详情
(my_project) jidan@jidan-PC:~/my_project$ bash -x env.sh 
+ export PIPENV_VERBOSITY=-1
+ PIPENV_VERBOSITY=-1
+++ realpath env.sh
++ dirname /home/jidan/my_project/env.sh
+ ROOT_DIR=/home/jidan/my_project
++ cut -d = -f2
++ python3 -c 's=input();print(s.strip())'
+++ cat /home/jidan/my_project/CURRENT
+++ grep 'tag = '
++ echo 'tag = 2.14.0'
+ tag=2.14.0
++ cat /home/jidan/my_project/setting/globalconfig.ini
++ grep -v CLIENT_PASSWORD
++ grep 'PASSWORD = '
+ config_pwd='PASSWORD = 1'
++ echo 'PASSWORD = 1'
++ cut -d = -f2
++ python3 -c 's=input();print(s.strip())'
+ PASSWORD=1
++ hostname -I
+ IP=localhost.localdomain
+ DEV=false
+ getopts :p:D opt
+ debian_platform=false
+ yq=apt
+ command -v apt
+ debian_platform=true
+ yq=apt
++ cat /home/jidan/.xsession-errors
++ grep XDG_SESSION_TYPE
++ head -n 1
++ cut -d = -f2
cat: /home/jidan/.xsession-errors: 没有那个文件或目录
+ DISPLAY_SERVER=
+ '[' '' = '' ']'
+ ps -ef
+ grep -v grep
+ grep kwin_x11
+ '[' 1 = 0 ']'
+ DISPLAY_SERVER=wayland
++ python3 -c 'import sys; print(f'\''{sys.version_info.major}.{sys.version_info.minor}'\'')'
+ PYTHON_VERSION=3.12
+ whitelist=/usr/share/deepin-elf-verify/whitelist
+ pypi_mirror=https://pypi.tuna.tsinghua.edu.cn/simple
+ echo 1
+ sudo -S su
+ '[' '!' -f /home/jidan/.Xauthority ']'
+ '[' false = true ']'
+ source ./src/utils/env_vir.sh
++ source /home/jidan/my_project/src/utils/_env_base.sh
+++ trap ctrl_c_handler INT
+++ wayland_env
+++ deb_array=(g++ build-essential cmake qt5-default qt5-qmake libqt5gui5 libqt5core5a wl-clipboard)
+++ for deb in ${deb_array[*]}
+++ sudo apt install -y g++
+++ check_status g++
+++ '[' 0 = 0 ']'
+++ echo -e 'g++\t安装成功 √'
g++     安装成功 √
+++ apt policy g++
+++ cat /tmp/_yqdebversion.txt
+++ grep 已安装
  已安装:4:13.2.0+really12.3.0-0deepin2
+++ for deb in ${deb_array[*]}
+++ sudo apt install -y build-essential
+++ check_status build-essential
+++ '[' 0 = 0 ']'
+++ echo -e 'build-essential\t安装成功 √'
build-essential 安装成功 √
+++ apt policy build-essential
+++ cat /tmp/_yqdebversion.txt
+++ grep 已安装
  已安装:12.12+deepin2
+++ for deb in ${deb_array[*]}
+++ sudo apt install -y cmake
+++ check_status cmake
+++ '[' 0 = 0 ']'
+++ echo -e 'cmake\t安装成功 √'
cmake   安装成功 √
+++ apt policy cmake
+++ cat /tmp/_yqdebversion.txt
+++ grep 已安装
  已安装:3.31.4-2
+++ for deb in ${deb_array[*]}
+++ sudo apt install -y qt5-default
+++ check_status qt5-default
+++ '[' 0 = 0 ']'
+++ echo -e 'qt5-default\t安装成功 √'
qt5-default     安装成功 √
+++ apt policy qt5-default
+++ cat /tmp/_yqdebversion.txt
+++ grep 已安装
  已安装:5.15.8-1+deepin9+rb1
+++ for deb in ${deb_array[*]}
+++ sudo apt install -y qt5-qmake
+++ check_status qt5-qmake
+++ '[' 0 = 0 ']'
+++ echo -e 'qt5-qmake\t安装成功 √'
qt5-qmake       安装成功 √
+++ apt policy qt5-qmake
+++ cat /tmp/_yqdebversion.txt
+++ grep 已安装
  已安装:5.15.8-1+deepin9+rb1
+++ for deb in ${deb_array[*]}
+++ sudo apt install -y libqt5gui5
+++ check_status libqt5gui5
+++ '[' 0 = 0 ']'
+++ echo -e 'libqt5gui5\t安装成功 √'
libqt5gui5      安装成功 √
+++ apt policy libqt5gui5
+++ cat /tmp/_yqdebversion.txt
+++ grep 已安装
  已安装:5.15.8-1+deepin9+rb1
+++ for deb in ${deb_array[*]}
+++ sudo apt install -y libqt5core5a
+++ check_status libqt5core5a
+++ '[' 0 = 0 ']'
+++ echo -e 'libqt5core5a\t安装成功 √'
libqt5core5a    安装成功 √
+++ apt policy libqt5core5a
+++ cat /tmp/_yqdebversion.txt
+++ grep 已安装
  已安装:5.15.8-1+deepin9+rb1
+++ for deb in ${deb_array[*]}
+++ sudo apt install -y wl-clipboard
+++ check_status wl-clipboard
+++ '[' 0 = 0 ']'
+++ echo -e 'wl-clipboard\t安装成功 √'
wl-clipboard    安装成功 √
+++ apt policy wl-clipboard
+++ cat /tmp/_yqdebversion.txt
+++ grep 已安装
  已安装:2.0.0-1
++++ apt policy libkf5waylandclient5
++++ grep 已安装
++++ python3 -c 's=input();print(s.split('\'''\'')[1])'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

+++ libkf5waylandclient5_version=4:5.103.0-1
+++ sudo apt install -y libkf5wayland-dev=4:5.103.0-1
+++ wayland_info='libkf5wayland-dev 可能存在依赖报错,解决方法:\n
    方案一. 添加镜像对应的 ppa 仓库源,重新执行;\n
    方案二. sudo aptitude install libkf5wayland-dev,先输 n,再输 y,再输 y \n
    ***方案二可能引入兼容性问题,慎用,在下非常非常非常不推荐。***'
+++ echo -e libkf5wayland-dev '可能存在依赖报错,解决方法:\n' 方案一. 添加镜像对应的 ppa '仓库源,重新执行;\n' 方案二. sudo aptitude install libkf5wayland-dev,先输 n,再输 y,再输 '
+++ check_status libkf5wayland-dev
+++ '[' 0 = 0 ']'
+++ echo -e 'libkf5wayland-dev\t安装成功 √'
libkf5wayland-dev       安装成功 √
+++ cat /home/jidan/.bashrc
+++ grep 'export GDMSESSION=Wayland'
+++ '[' 0 -ne 0 ']'
+++ wayland_cmd_path=/usr/local/bin/wayland_autotool
++++ sudo cat /usr/share/deepin-elf-verify/whitelist
++++ grep /usr/local/bin/wayland_autotool
cat: /usr/share/deepin-elf-verify/whitelist: 没有那个文件或目录
+++ result=
+++ '[' -z '' ']'
+++ sudo sed -i '$a\/usr/local/bin/wayland_autotool' /usr/share/deepin-elf-verify/whitelist
sed:无法读取 /usr/share/deepin-elf-verify/whitelist:没有那个文件或目录
+++ echo 白名单/usr/share/deepin-elf-verify/whitelist写入失败
白名单/usr/share/deepin-elf-verify/whitelist写入失败
+++ sudo systemctl restart deepin-elf-verify.service
Failed to restart deepin-elf-verify.service: Unit deepin-elf-verify.service not found.
+++ true
+++ nohup wayland_autotool
++ export PIPENV_VENV_IN_PROJECT=true
++ PIPENV_VENV_IN_PROJECT=true
++ export PIPENV_PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple
++ PIPENV_PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple
++ export PIPENV_QUIET=true
++ PIPENV_QUIET=true
++ export PIPENV_DEFAULT_PYTHON_VERSION=3
++ PIPENV_DEFAULT_PYTHON_VERSION=3
++ echo '
 ██╗   ██╗  ██████╗      ███████╗ ███╗   ██╗ ██╗   ██╗
 ╚██╗ ██╔╝ ██╔═══██╗     ██╔════╝ ████╗  ██║ ██║   ██║
  ╚████╔╝  ██║   ██║     █████╗   ██╔██╗ ██║ ██║   ██║
   ╚██╔╝   ██║▄▄ ██║     ██╔══╝   ██║╚██╗██║ ╚██╗ ██╔╝
    ██║    ╚██████╔╝     ███████╗ ██║ ╚████║  ╚████╔╝
    ╚═╝     ╚══▀▀═╝      ╚══════╝ ╚═╝  ╚═══╝   ╚═══╝
    2.14.0 -> localhost.localdomain
'

 ██╗   ██╗  ██████╗      ███████╗ ███╗   ██╗ ██╗   ██╗
 ╚██╗ ██╔╝ ██╔═══██╗     ██╔════╝ ████╗  ██║ ██║   ██║
  ╚████╔╝  ██║   ██║     █████╗   ██╔██╗ ██║ ██║   ██║
   ╚██╔╝   ██║▄▄ ██║     ██╔══╝   ██║╚██╗██║ ╚██╗ ██╔╝
    ██║    ╚██████╔╝     ███████╗ ██║ ╚████║  ╚████╔╝
    ╚═╝     ╚══▀▀═╝      ╚══════╝ ╚═╝  ╚═══╝   ╚═══╝
    2.14.0 -> localhost.localdomain

++ env
++ '[' true = true ']'
++ sudo apt update
命中:2 https://proposed-packages.deepin.com/beige-testing unstable/25 InRelease
获取:4 https://app-store-files.uniontech.com/250417142224254/appstorev23 beige InRelease [7,673 B]           
忽略:1 https://community-packages.deepin.com/beige beige InRelease                 
命中:3 https://cdn-community-packages.deepin.com/driver-23 driver InRelease
获取:5 https://app-store-files.uniontech.com/250417142224254/appstorev23 beige/appstore i386 Packages [107 kB]
获取:6 https://app-store-files.uniontech.com/250417142224254/appstorev23 beige/appstore amd64 Packages [832 kB]
命中:7 https://community-packages.deepin.com/beige beige Release
已下载 946 kB,耗时 2秒 (498 kB/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
有 325 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
++ deb_array=(python3-pip python3-tk scrot openjdk-11-jdk-headless gir1.2-atspi-2.0 libatk-adaptor at-spi2-core python3-opencv)
++ cd /home/jidan/my_project/src/utils
+++ python3 sub_env_cut.py
++ BASICENV=
++ '[' '' = BASICENV ']'
++ '[' true = false ']'
++ for deb in ${deb_array[*]}
++ sudo apt install -y python3-pip
++ check_status python3-pip
++ '[' 0 = 0 ']'
++ echo -e 'python3-pip\t安装成功 √'
python3-pip     安装成功 √
++ for deb in ${deb_array[*]}
++ sudo apt install -y python3-tk
++ check_status python3-tk
++ '[' 0 = 0 ']'
++ echo -e 'python3-tk\t安装成功 √'
python3-tk      安装成功 √
++ for deb in ${deb_array[*]}
++ sudo apt install -y scrot
++ check_status scrot
++ '[' 0 = 0 ']'
++ echo -e 'scrot\t安装成功 √'
scrot   安装成功 √
++ for deb in ${deb_array[*]}
++ sudo apt install -y openjdk-11-jdk-headless
++ check_status openjdk-11-jdk-headless
++ '[' 0 = 0 ']'
++ echo -e 'openjdk-11-jdk-headless\t安装成功 √'
openjdk-11-jdk-headless 安装成功 √
++ for deb in ${deb_array[*]}
++ sudo apt install -y gir1.2-atspi-2.0
++ check_status gir1.2-atspi-2.0
++ '[' 0 = 0 ']'
++ echo -e 'gir1.2-atspi-2.0\t安装成功 √'
gir1.2-atspi-2.0        安装成功 √
++ for deb in ${deb_array[*]}
++ sudo apt install -y libatk-adaptor
++ check_status libatk-adaptor
++ '[' 0 = 0 ']'
++ echo -e 'libatk-adaptor\t安装成功 √'
libatk-adaptor  安装成功 √
++ for deb in ${deb_array[*]}
++ sudo apt install -y at-spi2-core
++ check_status at-spi2-core
++ '[' 0 = 0 ']'
++ echo -e 'at-spi2-core\t安装成功 √'
at-spi2-core    安装成功 √
++ for deb in ${deb_array[*]}
++ sudo apt install -y python3-opencv
++ check_status python3-opencv
++ '[' 0 = 0 ']'
++ echo -e 'python3-opencv\t安装成功 √'
python3-opencv  安装成功 √
++ '[' wayland = wayland ']'
++ wayland_env
++ deb_array=(g++ build-essential cmake qt5-default qt5-qmake libqt5gui5 libqt5core5a wl-clipboard)
++ for deb in ${deb_array[*]}
++ sudo apt install -y g++
++ check_status g++
++ '[' 0 = 0 ']'
++ echo -e 'g++\t安装成功 √'
g++     安装成功 √
++ apt policy g++
++ cat /tmp/_yqdebversion.txt
++ grep 已安装
  已安装:4:13.2.0+really12.3.0-0deepin2
++ for deb in ${deb_array[*]}
++ sudo apt install -y build-essential
++ check_status build-essential
++ '[' 0 = 0 ']'
++ echo -e 'build-essential\t安装成功 √'
build-essential 安装成功 √
++ apt policy build-essential
++ cat /tmp/_yqdebversion.txt
++ grep 已安装
  已安装:12.12+deepin2
++ for deb in ${deb_array[*]}
++ sudo apt install -y cmake
++ check_status cmake
++ '[' 0 = 0 ']'
++ echo -e 'cmake\t安装成功 √'
cmake   安装成功 √
++ apt policy cmake
++ cat /tmp/_yqdebversion.txt
++ grep 已安装
  已安装:3.31.4-2
++ for deb in ${deb_array[*]}
++ sudo apt install -y qt5-default
++ check_status qt5-default
++ '[' 0 = 0 ']'
++ echo -e 'qt5-default\t安装成功 √'
qt5-default     安装成功 √
++ apt policy qt5-default
++ cat /tmp/_yqdebversion.txt
++ grep 已安装
  已安装:5.15.8-1+deepin9+rb1
++ for deb in ${deb_array[*]}
++ sudo apt install -y qt5-qmake
++ check_status qt5-qmake
++ '[' 0 = 0 ']'
++ echo -e 'qt5-qmake\t安装成功 √'
qt5-qmake       安装成功 √
++ apt policy qt5-qmake
++ cat /tmp/_yqdebversion.txt
++ grep 已安装
  已安装:5.15.8-1+deepin9+rb1
++ for deb in ${deb_array[*]}
++ sudo apt install -y libqt5gui5
++ check_status libqt5gui5
++ '[' 0 = 0 ']'
++ echo -e 'libqt5gui5\t安装成功 √'
libqt5gui5      安装成功 √
++ apt policy libqt5gui5
++ cat /tmp/_yqdebversion.txt
++ grep 已安装
  已安装:5.15.8-1+deepin9+rb1
++ for deb in ${deb_array[*]}
++ sudo apt install -y libqt5core5a
++ check_status libqt5core5a
++ '[' 0 = 0 ']'
++ echo -e 'libqt5core5a\t安装成功 √'
libqt5core5a    安装成功 √
++ apt policy libqt5core5a
++ cat /tmp/_yqdebversion.txt
++ grep 已安装
  已安装:5.15.8-1+deepin9+rb1
++ for deb in ${deb_array[*]}
++ sudo apt install -y wl-clipboard
++ check_status wl-clipboard
++ '[' 0 = 0 ']'
++ echo -e 'wl-clipboard\t安装成功 √'
wl-clipboard    安装成功 √
++ apt policy wl-clipboard
++ cat /tmp/_yqdebversion.txt
++ grep 已安装
  已安装:2.0.0-1
+++ apt policy libkf5waylandclient5
+++ grep 已安装
+++ python3 -c 's=input();print(s.split('\'''\'')[1])'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

++ libkf5waylandclient5_version=4:5.103.0-1
++ sudo apt install -y libkf5wayland-dev=4:5.103.0-1
++ wayland_info='libkf5wayland-dev 可能存在依赖报错,解决方法:\n
    方案一. 添加镜像对应的 ppa 仓库源,重新执行;\n
    方案二. sudo aptitude install libkf5wayland-dev,先输 n,再输 y,再输 y \n
    ***方案二可能引入兼容性问题,慎用,在下非常非常非常不推荐。***'
++ echo -e libkf5wayland-dev '可能存在依赖报错,解决方法:\n' 方案一. 添加镜像对应的 ppa '仓库源,重新执行;\n' 方案二. sudo aptitude install libkf5wayland-dev,先输 n,再输 y,再输 y '\n' '***方案二可能引入兼容性问题,慎用,在下非常非常非常不推荐。***'
++ check_status libkf5wayland-dev
++ '[' 0 = 0 ']'
++ echo -e 'libkf5wayland-dev\t安装成功 √'
libkf5wayland-dev       安装成功 √
++ cat /home/jidan/.bashrc
++ grep 'export GDMSESSION=Wayland'
++ '[' 0 -ne 0 ']'
++ wayland_cmd_path=/usr/local/bin/wayland_autotool
+++ sudo cat /usr/share/deepin-elf-verify/whitelist
+++ grep /usr/local/bin/wayland_autotool
cat: /usr/share/deepin-elf-verify/whitelist: 没有那个文件或目录
++ result=
++ '[' -z '' ']'
++ sudo sed -i '$a\/usr/local/bin/wayland_autotool' /usr/share/deepin-elf-verify/whitelist
sed:无法读取 /usr/share/deepin-elf-verify/whitelist:没有那个文件或目录
++ echo 白名单/usr/share/deepin-elf-verify/whitelist写入失败
白名单/usr/share/deepin-elf-verify/whitelist写入失败
++ sudo systemctl restart deepin-elf-verify.service
Failed to restart deepin-elf-verify.service: Unit deepin-elf-verify.service not found.
++ true
++ nohup wayland_autotool
++ init_pip
++ sudo pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
++ sudo pip3 install -U pip
++ sudo pip3 cache purge
++ sudo pip3 config set global.timeout 10000
++ sudo pip3 install pipenv
++ '[' 0 = 0 ']'
++ echo -e 'pipenv\t安装成功 √'
pipenv  安装成功 √
++ cd /home/jidan/my_project/
++ pipenv --python 3.12
++ '[' 0 '!=' 0 ']'
+++ pipenv --venv
++ python_virtualenv_path=/home/jidan/my_project/.venv
+++ echo /home/jidan/my_project/.venv
+++ sed 's;/home/jidan;;g'
++ whitelist_path=/my_project/.venv
++ '[' -f /usr/share/deepin-elf-verify/whitelist ']'
++ py_debs=(python3-gi python3-pyatspi python3-dbus python3-cairo python3-pil python3-ptyprocess python3-pexpect python3-numpy python3-opencv)
++ for pd in ${py_debs[*]}
++ install_py_deb python3-gi /home/jidan/my_project/.venv
++ rm -rf 'python3-gi*'
++ apt download python3-gi
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-gi_3.48.2-1_amd64.deb python3-gi
++ cp -r ./python3-gi/usr/lib/python3/dist-packages/gi ./python3-gi/usr/lib/python3/dist-packages/PyGObject-3.48.2.egg-info ./python3-gi/usr/lib/python3/dist-packages/pygtkcompat /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-gi python3-gi_3.48.2-1_amd64.deb
++ for pd in ${py_debs[*]}
++ install_py_deb python3-pyatspi /home/jidan/my_project/.venv
++ rm -rf 'python3-pyatspi*'
++ apt download python3-pyatspi
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-pyatspi_2.38.1-1_all.deb python3-pyatspi
++ cp -r ./python3-pyatspi/usr/lib/python3/dist-packages/pyatspi /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-pyatspi python3-pyatspi_2.38.1-1_all.deb
++ for pd in ${py_debs[*]}
++ install_py_deb python3-dbus /home/jidan/my_project/.venv
++ rm -rf 'python3-dbus*'
++ apt download python3-dbus
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-dbus_1.3.2-5deepin1_amd64.deb python3-dbus
++ cp -r ./python3-dbus/usr/lib/python3/dist-packages/dbus ./python3-dbus/usr/lib/python3/dist-packages/_dbus_bindings.cpython-311-x86_64-linux-gnu.so ./python3-dbus/usr/lib/python3/dist-packages/_dbus_bindings.cpython-312-x86_64-linux-gnu.so ./python3-dbus/usr/lib/python3/dist-packages/_dbus_glib_bindings.cpython-311-x86_64-linux-gnu.so ./python3-dbus/usr/lib/python3/dist-packages/_dbus_glib_bindings.cpython-312-x86_64-linux-gnu.so ./python3-dbus/usr/lib/python3/dist-packages/dbus_python-1.3.2.egg-info /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-dbus python3-dbus_1.3.2-5deepin1_amd64.deb
++ for pd in ${py_debs[*]}
++ install_py_deb python3-cairo /home/jidan/my_project/.venv
++ rm -rf 'python3-cairo*'
++ apt download python3-cairo
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-cairo_1.26.0-1_amd64.deb python3-cairo
++ cp -r ./python3-cairo/usr/lib/python3/dist-packages/cairo ./python3-cairo/usr/lib/python3/dist-packages/pycairo-1.26.0.egg-info /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-cairo python3-cairo_1.26.0-1_amd64.deb
++ for pd in ${py_debs[*]}
++ install_py_deb python3-pil /home/jidan/my_project/.venv
++ rm -rf 'python3-pil*'
++ apt download python3-pil
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-pil_10.3.0-2_amd64.deb python3-pil
++ cp -r ./python3-pil/usr/lib/python3/dist-packages/PIL ./python3-pil/usr/lib/python3/dist-packages/pillow-10.3.0.egg-info /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-pil python3-pil_10.3.0-2_amd64.deb
++ for pd in ${py_debs[*]}
++ install_py_deb python3-ptyprocess /home/jidan/my_project/.venv
++ rm -rf 'python3-ptyprocess*'
++ apt download python3-ptyprocess
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-ptyprocess_0.7.0-2_all.deb python3-ptyprocess
++ cp -r ./python3-ptyprocess/usr/lib/python3/dist-packages/ptyprocess /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-ptyprocess python3-ptyprocess_0.7.0-2_all.deb
++ for pd in ${py_debs[*]}
++ install_py_deb python3-pexpect /home/jidan/my_project/.venv
++ rm -rf 'python3-pexpect*'
++ apt download python3-pexpect
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-pexpect_4.9-2_all.deb python3-pexpect
++ cp -r ./python3-pexpect/usr/lib/python3/dist-packages/pexpect ./python3-pexpect/usr/lib/python3/dist-packages/pexpect-4.9.0.egg-info /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-pexpect python3-pexpect_4.9-2_all.deb
++ for pd in ${py_debs[*]}
++ install_py_deb python3-numpy /home/jidan/my_project/.venv
++ rm -rf 'python3-numpy*'
++ apt download python3-numpy
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-numpy_1%3a1.26.4+ds-10_amd64.deb python3-numpy
++ cp -r ./python3-numpy/usr/lib/python3/dist-packages/numpy ./python3-numpy/usr/lib/python3/dist-packages/numpy-1.26.4.dist-info /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-numpy python3-numpy_1%3a1.26.4+ds-10_amd64.deb
++ for pd in ${py_debs[*]}
++ install_py_deb python3-opencv /home/jidan/my_project/.venv
++ rm -rf 'python3-opencv*'
++ apt download python3-opencv
++ '[' 0 '!=' 0 ']'
++ dpkg -x python3-opencv_4.6.0+dfsg-13deepin1_amd64.deb python3-opencv
++ cp -r ./python3-opencv/usr/lib/python3/dist-packages/cv2.cpython-311-x86_64-linux-gnu.so ./python3-opencv/usr/lib/python3/dist-packages/cv2.cpython-312-x86_64-linux-gnu.so /home/jidan/my_project/.venv/lib/python3.12/site-packages/
++ rm -rf python3-opencv python3-opencv_4.6.0+dfsg-13deepin1_amd64.deb
++ apt download python3-gi-cairo
++ dpkg -x python3-gi-cairo_3.48.2-1_amd64.deb python3-gi-cairo
++ cp -r ./python3-gi-cairo/usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-311-x86_64-linux-gnu.so ./python3-gi-cairo/usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-312-x86_64-linux-gnu.so /home/jidan/my_project/.venv/lib/python3.12/site-packages/gi/
++ rm -rf python3-gi-cairo python3-gi-cairo_3.48.2-1_amd64.deb
++ cd /home/jidan/my_project/src/utils/
+++ python3 sub_deb.py
++ sub_py_debs=
++ pip_array=(pyscreeze==0.1.28 PyAutoGUI==0.9.53 pytest==6.2.5 pytest-rerunfailures==10.2 pytest-timeout==2.1.0 allure-pytest==2.9.45 funnylog pdocr-rpc image-center allure-custom)
++ '[' '' = cut ']'
++ for p in ${pip_array[*]}
++ pipenv run pip install pyscreeze==0.1.28 -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status pyscreeze==0.1.28
++ '[' 0 = 0 ']'
++ echo -e 'pyscreeze==0.1.28\t安装成功 √'
pyscreeze==0.1.28       安装成功 √
++ pipenv run pip list
++ grep pyscreeze==0.1.28
++ grep -v grep
++ for p in ${pip_array[*]}
++ pipenv run pip install PyAutoGUI==0.9.53 -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status PyAutoGUI==0.9.53
++ '[' 0 = 0 ']'
++ echo -e 'PyAutoGUI==0.9.53\t安装成功 √'
PyAutoGUI==0.9.53       安装成功 √
++ pipenv run pip list
++ grep -v grep
++ grep PyAutoGUI==0.9.53
++ for p in ${pip_array[*]}
++ pipenv run pip install pytest==6.2.5 -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status pytest==6.2.5
++ '[' 0 = 0 ']'
++ echo -e 'pytest==6.2.5\t安装成功 √'
pytest==6.2.5   安装成功 √
++ pipenv run pip list
++ grep -v grep
++ grep pytest==6.2.5
++ for p in ${pip_array[*]}
++ pipenv run pip install pytest-rerunfailures==10.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status pytest-rerunfailures==10.2
++ '[' 0 = 0 ']'
++ echo -e 'pytest-rerunfailures==10.2\t安装成功 √'
pytest-rerunfailures==10.2      安装成功 √
++ grep -v grep
++ pipenv run pip list
++ grep pytest-rerunfailures==10.2
++ for p in ${pip_array[*]}
++ pipenv run pip install pytest-timeout==2.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status pytest-timeout==2.1.0
++ '[' 0 = 0 ']'
++ echo -e 'pytest-timeout==2.1.0\t安装成功 √'
pytest-timeout==2.1.0   安装成功 √
++ pipenv run pip list
++ grep -v grep
++ grep pytest-timeout==2.1.0
++ for p in ${pip_array[*]}
++ pipenv run pip install allure-pytest==2.9.45 -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status allure-pytest==2.9.45
++ '[' 0 = 0 ']'
++ echo -e 'allure-pytest==2.9.45\t安装成功 √'
allure-pytest==2.9.45   安装成功 √
++ pipenv run pip list
++ grep -v grep
++ grep allure-pytest==2.9.45
++ for p in ${pip_array[*]}
++ pipenv run pip install funnylog -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status funnylog
++ '[' 0 = 0 ']'
++ echo -e 'funnylog\t安装成功 √'
funnylog        安装成功 √
++ pipenv run pip list
++ grep -v grep
++ grep funnylog
funnylog              2024.5.24
++ for p in ${pip_array[*]}
++ pipenv run pip install pdocr-rpc -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status pdocr-rpc
++ '[' 0 = 0 ']'
++ echo -e 'pdocr-rpc\t安装成功 √'
pdocr-rpc       安装成功 √
++ pipenv run pip list
++ grep -v grep
++ grep pdocr-rpc
pdocr-rpc             2024.5.28
++ for p in ${pip_array[*]}
++ pipenv run pip install image-center -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status image-center
++ '[' 0 = 0 ']'
++ echo -e 'image-center\t安装成功 √'
image-center    安装成功 √
++ pipenv run pip list
++ grep -v grep
++ grep image-center
image-center          2024.6.5
++ for p in ${pip_array[*]}
++ pipenv run pip install allure-custom -i https://pypi.tuna.tsinghua.edu.cn/simple
++ check_status allure-custom
++ '[' 0 = 0 ']'
++ echo -e 'allure-custom\t安装成功 √'
allure-custom   安装成功 √
++ pipenv run pip list
++ grep -v grep
++ grep allure-custom
allure-custom         2024.5.24
++ echo 1
++ sudo -S su
++ cd /home/jidan/my_project/src/utils/
+++ python3 sub_depends.py
++ requirements=
++ '[' '' '!=' '' ']'
++ cd /home/jidan/my_project/src/utils/
+++ python3 sub_webui.py
++ webui=
++ '[' '' '!=' '' ']'
++ cd /home/jidan/my_project/src/utils/
+++ python3 sub_remote.py
++ remote=
++ '[' '' '!=' '' ']'
++ pipenv run pip install -U auto_uos --extra-index-url https://pypi.tuna.tsinghua.edu.cn/simple -i http://10.20.54.182:8081 --trusted-host=10.20.54.182
++ check_status auto_uos
++ '[' 1 = 0 ']'
++ echo -e 'auto_uos\t安装失败 ×'
auto_uos        安装失败 ×
++ cat /tmp/env.log
Looking in indexes: http://10.20.54.182:8081, https://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f93a1149730>, 'Connection to 10.20.54.182 timed out. (connect timeout=15)')': /auto-uos/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f93a0ea62d0>, 'Connection to 10.20.54.182 timed out. (connect timeout=15)')': /auto-uos/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f93a0ea66f0>, 'Connection to 10.20.54.182 timed out. (connect timeout=15)')': /auto-uos/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f93a0ea6990>, 'Connection to 10.20.54.182 timed out. (connect timeout=15)')': /auto-uos/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f93a0ea6c30>, 'Connection to 10.20.54.182 timed out. (connect timeout=15)')': /auto-uos/
ERROR: Could not find a version that satisfies the requirement auto_uos (from versions: none)
ERROR: No matching distribution found for auto_uos
+++ pipenv run pip show auto_uos
+++ grep Location
WARNING: Package(s) not found: auto_uos
++ pip_show=
+++ echo ''
+++ cut -d : -f2
+++ python3 -c 's=input();print(s.strip())'
++ public_location=
++ sudo rm -rf /home/jidan/my_project/public
++ sudo cp -r /auto_uos /home/jidan/my_project/public
cp: 对 '/auto_uos' 调用 stat 失败: 没有那个文件或目录
++ sudo chmod -R 777 /home/jidan/my_project/public
chmod: 无法访问 '/home/jidan/my_project/public': 没有那个文件或目录
++ cd /home/jidan/my_project
++ echo /home/jidan/my_project/.venv
/home/jidan/my_project/.venv
++ system_env
++ echo 1
++ sudo -S su
++ sudo sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/g' /etc/ssh/sshd_config
++ sudo sed -i 's/#   StrictHostKeyChecking ask/   StrictHostKeyChecking no/g' /etc/ssh/ssh_config
++ cat /home/jidan/.bashrc
++ grep 'export DISPLAY=":0"'
++ '[' 0 -ne 0 ']'
++ source /home/jidan/.bashrc
+++ case $- in
+++ return
++ echo 'cd /home/jidan/my_project/src/depends/sniff/;python3 sniff'
++ sudo tee /usr/bin/sniff
++ sudo chmod +x /usr/bin/sniff
++ gsettings set org.gnome.desktop.interface toolkit-accessibility true
++ sudo systemctl enable ssh
++ sudo systemctl start ssh
++ sudo tee /usr/bin/youqu
++ echo 'pipenv run python "$@"'
++ echo 'pipenv shell'
++ sudo tee /usr/bin/youqu-shell
++ echo 'pipenv --rm'
++ sudo tee /usr/bin/youqu-rm
++ sudo chmod +x /usr/bin/youqu
++ sudo chmod +x /usr/bin/youqu-shell
++ sudo chmod +x /usr/bin/youqu-rm
++ cd /home/jidan/my_project
++ youqu manage.py -h
cat: /home/jidan/.xsession-errors: 没有那个文件或目录
cat: /home/jidan/.xsession-errors: 没有那个文件或目录
cat: /home/jidan/.xsession-errors: 没有那个文件或目录
cat: /home/jidan/.xsession-errors: 没有那个文件或目录


 ██╗   ██╗  ██████╗  ██╗   ██╗  ██████╗  ██╗   ██╗ 
 ╚██╗ ██╔╝ ██╔═══██╗ ██║   ██║ ██╔═══██╗ ██║   ██║ 
  ╚████╔╝  ██║   ██║ ██║   ██║ ██║   ██║ ██║   ██║ 
   ╚██╔╝   ██║   ██║ ██║   ██║ ██║▄▄ ██║ ██║   ██║ 
    ██║    ╚██████╔╝ ╚██████╔╝ ╚██████╔╝ ╚██████╔╝ 
    ╚═╝     ╚═════╝   ╚═════╝   ╚══▀▀═╝   ╚═════╝  


╱╭━━━╮╱╱╱╱╱╭╮╱╱╭╮╱╭╮╱╱╱╱╭━━━╮╱
╱┃╭━╮┃╱╱╱╱╭╯┃╱╱┃┃╱┃┃╱╱╱╱┃╭━╮┃╱
╱╰╯╭╯┃╱╱╱╱╰╮┃╱╱┃╰━╯┃╱╱╱╱┃┃┃┃┃╱
╱╭━╯╭╯╱╱╱╱╱┃┃╱╱╰━━╮┃╱╱╱╱┃┃┃┃┃╱
╱┃╰━━╮╱╭╮╱╭╯╰╮╱╱╱╱┃┃╱╭╮╱┃╰━╯┃╱
╱╰━━━╯╱╰╯╱╰━━╯╱╱╱╱╰╯╱╰╯╱╰━━━╯╱
Code: https://github.com/linuxdeepin/youqu
Docs: https://youqu.uniontech.com/
PyPI: https://pypi.org/project/youqu
============================================================
YouQu 支持的子命令:
    run, remote, pmsctl, csvctl, startapp, git
您需要传入其中一个子命令,可以使用 -h 或 --help 查看每个命令参数的详细使用说明.
如: youqu manage.py run -h 

(my_project) jidan@jidan-PC:~/my_project$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions