[DTK] 请问各位大神dde-session-shell编译缺头文件问题怎么解决。。
Tofloor
poster avatar
136******08
deepin
2023-08-02 17:03
Author
  1. git clone xxxx

  2. apt build-dep dde-session-shell

  3. mkdir build

  4. cd build

  5. cmake ..

  6. make

  7. 报错:

    In file included from /root/projects/dde-session-shell/build/dde-lock_autogen/6UPSDZWOXP/../../../src/dde-lock/lockframe.h:8,
    from /root/projects/dde-session-shell/build/dde-lock_autogen/6UPSDZWOXP/moc_lockframe.cpp:10,
    from /root/projects/dde-session-shell/build/dde-lock_autogen/mocs_compilation.cpp:6:
    /root/projects/dde-session-shell/src/widgets/fullscreenbackground.h:13:10: fatal error: imageeffect_interface.h: 没有那个文件或目录
    #include "imageeffect_interface.h"
    ^~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [CMakeFiles/dde-lock.dir/build.make:314:CMakeFiles/dde-lock.dir/dde-lock_autogen/mocs_compilation.cpp.o] 错误 1
    make[1]: *** [CMakeFiles/Makefile2:173:CMakeFiles/dde-lock.dir/all] 错误 2
    make: *** [Makefile:136:all] 错误 2

好多头文件都找不到,难道deepin不打算放开锁屏程序的全部源码吗?

Reply Favorite View the author
All Replies
deepin-superuser
deepin
2023-08-02 17:14
#1

试试 sudo apt build-dep .

还有就是 github 上代码目前是给 V23 用的 在 V20 上编译就会出现找不到依赖

Reply View the author
Ziggy
deepin
2023-08-02 18:03
#2

可以先检查cmake有没有报错或者warning

Reply View the author
136******08
deepin
2023-08-02 19:15
#3

apt build-dep 已经执行过了,cmake没有任何错误和警告。。。git下载回来的文件确实没有上述的头文件,如果哪位大神愿意发给我的话非常感激。。。可以把包含上述头文件的源码包发到我的邮箱[email protected]吗。。。

目前缺的不只是一个头文件

感谢感谢。。。

Reply View the author
winee
deepin
2023-08-03 22:26
#4

看一下 dtk 版本是不是 5.6.14, 不是的话 revert 这个提交 https://github.com/linuxdeepin/dde-session-shell/commit/8f1eea6b5b328a60346ccc744911537e82dd3832

Reply View the author
winee
deepin
2023-08-03 22:27
#5

这个头文件是 qdbusxml2cpp-fix 扫描 xml 出来的

Reply View the author