[Fix](make): 解决编译运行问题

This commit is contained in:
KevinDuan 2022-06-13 11:26:18 +08:00
parent 1f234b28c3
commit f7d929d04c
5 changed files with 12 additions and 1 deletions

View File

@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)
project(ukui-kwin-effects) project(ukui-kwin-effects)
find_package(PkgConfig)
pkg_check_modules(QGSettings REQUIRED gsettings-qt)
include_directories(${QGSettings_INCLUDE_DIRS})
find_package(Qt5 CONFIG REQUIRED COMPONENTS Core Gui) find_package(Qt5 CONFIG REQUIRED COMPONENTS Core Gui)
find_package(KF5CoreAddons REQUIRED) find_package(KF5CoreAddons REQUIRED)
find_package(KF5WindowSystem REQUIRED) find_package(KF5WindowSystem REQUIRED)

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ukui-kwin-effects (1.0.8-ok2) yangtze; urgency=medium
* [Fix](make): 解决编译运行问题
-- Kevin Duan <duankaiwen@kylinos.cn> Mon, 13 Jun 2022 11:24:54 +0800
ukui-kwin-effects (1.0.8-ok1) yangtze; urgency=medium ukui-kwin-effects (1.0.8-ok1) yangtze; urgency=medium
* [Feature](wayland): 适配wayland环境 * [Feature](wayland): 适配wayland环境

View File

@ -59,6 +59,7 @@ target_link_libraries(
KF5::CoreAddons KF5::CoreAddons
KF5::GlobalAccel KF5::GlobalAccel
Qt5::X11Extras Qt5::X11Extras
${QGSettings_LIBRARIES}
) )
install(TARGETS ${PLUGIN_NAME} DESTINATION ${INSTALL_PATH}) install(TARGETS ${PLUGIN_NAME} DESTINATION ${INSTALL_PATH})

View File

@ -1,7 +1,7 @@
#include "desktopbackground.h" #include "desktopbackground.h"
#include <QSGSimpleRectNode> #include <QSGSimpleRectNode>
#include <QGSettings/QGSettings> #include <QGSettings>
#include <QPainter> #include <QPainter>

View File

@ -41,6 +41,7 @@
#include <QWindow> #include <QWindow>
// xcb // xcb
#if HAVE_XCB_COMPOSITE #if HAVE_XCB_COMPOSITE
#include <X11/Xlib.h>
#include <xcb/damage.h> #include <xcb/damage.h>
#if HAVE_EGL #if HAVE_EGL