SeptemberHX/dde-top-panel

运行程序报错:version `Qt_5.15' not found

EchoGroot opened this issue · 10 comments

执行脚本/usr/bin/dde-top-panel
报错/usr/bin/dde-top-panel: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/bin/dde-top-panel)
这个依赖没有找到安装的办法

UOS 么?UOS 需要自己编译才行。UOS 和 deepin 的 QT 库版本是不一样的。

是UOS,我自己编译是出错,麻烦大佬看看呢,很想拥有顶栏

yuyy@yuyy:/tmp/dde-top-panel/build$ cmake ..
bash: translate_generation.sh: 没有那个文件或目录
CMake Error at frame/CMakeLists.txt:15 (find_package):
  By not providing "FindQt5Svg.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Svg", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Svg" with any
  of the following names:

    Qt5SvgConfig.cmake
    qt5svg-config.cmake

  Add the installation prefix of "Qt5Svg" to CMAKE_PREFIX_PATH or set
  "Qt5Svg_DIR" to a directory containing one of the above files.  If "Qt5Svg"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/tmp/dde-top-panel/build/CMakeFiles/CMakeOutput.log".
yuyy@yuyy:/tmp/dde-top-panel/build$ find /tmp/dde-top-panel/ -name translate_generation.sh
yuyy@yuyy:/tmp/dde-top-panel/build$ 
sudo apt install git cmake libqt5svg-dev libdtkcore5-bin libkf5windowsystem-dev libxcb-ewmh-dev libxdo-dev qttools-dev
git clone https://github.com/SeptemberHX/dde-top-panel.git
cd dde-top-panel
mkdir build
cd build
cmake ..
make -j8 package

缺什么依赖就装 dev 包

UOS Qt 版本太低了,还需要用 QtDesigner 把 mainsettingwidget.ui 里 Tips tab 中的窗口删掉,那个窗口调用了 5.14+ Qt 的API

缺的依赖我下好了,现在打包报错了
activeWindowInfoChanged()’:
/tmp/dde-top-panel/widgets/ActiveWindowControlWidget.cpp:128:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘WId’ {aka ‘long long unsigned int’} [-Wsign-compare]
if (activeWinId == this->winId()) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/tmp/dde-top-panel/widgets/ActiveWindowControlWidget.cpp: In member function ‘void ActiveWindowControlWidget::windowChanged(WId, NET::Properties, NET::Properties2)’:
/tmp/dde-top-panel/widgets/ActiveWindowControlWidget.cpp:397:39: warning: comparison of integer expressions of different signedness: ‘WId’ {aka ‘long long unsigned int’} and ‘int’ [-Wsign-compare]
if (KWindowSystem::activeWindow() != this->currActiveWinId && KWindowSystem::activeWindow() != 0) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
[ 54%] Building CXX object frame/CMakeFiles/dde-top-panel.dir/controller/dockpluginscontroller.cpp.o
In file included from /tmp/dde-top-panel/widgets/mainsettingwidget.cpp:2:
/tmp/dde-top-panel/build/frame/dde-top-panel_autogen/include/ui_mainsettingwidget.h: In member function ‘void Ui_MainSettingWidget::retranslateUi(QWidget*)’:
/tmp/dde-top-panel/build/frame/dde-top-panel_autogen/include/ui_mainsettingwidget.h:1053:22: error: ‘class QTextBrowser’ has no member named ‘setMarkdown’; did you mean ‘setMask’?
textBrowser->setMarkdown(QApplication::translate("MainSettingWidget", "1. Enable Global Menu by installing \n"
^~~~~~~~~~~
setMask
make[2]: *** [frame/CMakeFiles/dde-top-panel.dir/build.make:249:frame/CMakeFiles/dde-top-panel.dir/__/widgets/mainsettingwidget.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[1]: *** [CMakeFiles/Makefile2:130:frame/CMakeFiles/dde-top-panel.dir/all] 错误 2
make: *** [Makefile:152:all] 错误 2
yuyy@yuyy:/tmp/dde-top-panel/build$

看我上面回复最后一句

成功了 谢谢老哥

新版去掉了 Tips 窗口,UOS 应该可以直接编译了

昨天安装了全局菜单,系统监控。重启就无法启动了。大佬周末有空吗,可否给个联系方式,想请教下你。不想重装系统,软件装了很久。

修复系统这方面我不太熟悉,没办法帮忙了。但是从原理上来讲,系统监控是 *.so 插件文件,最多导致 dock 出问题,不会影响系统;全局菜单包装的文件不会覆盖系统文件,就算设置成立开机自启动,也只会在用户登录后启动,不会导致系统启动不了。

所以建议仔细回忆一下,你是怎么装这两个东西的,安装过程有没有 误删除其它包/系统文件;启动选项里选择 Advance 模式,看看有没有安全模式,争取进入到命令行,然后把这两个东西删掉试试看。

我采用的是编译 安装,期间安装了很多依赖,可能和这有关。谢谢了,我自己再折腾下。
你写的这几个美化软件把deepin的颜值提升了一个档次!牛皮