求如何编译dde-kwin?没有readme.md啊.......
Tofloor
poster avatar
superendermansm
deepin
2019-06-25 20:32
Author
如题                                                         
Reply Favorite View the author
All Replies
avatar
funtoo
deepin
2019-06-25 21:04
#1
没用过cmake?在源代码目录创建个build目录,然后cd过去运行
  1. $ cmake ..
  2. $ make
  3. $ make install
Copy the Code
自己试一下就知道了
Reply View the author
avatar
superendermansm
deepin
2019-06-26 07:20
#2
funtoo 发表于 2019-6-25 13:04
没用过cmake?在源代码目录创建个build目录,然后cd过去运行自己试一下就知道了 ...

有错误提示
需要贴一下输出么?
Reply View the author
avatar
funtoo
deepin
2019-06-26 07:27
#3
https://bbs.deepin.org/post/179825
有错误提示
需要贴一下输出么?

贴吧,一般就是缺一些基础库和头文件
Reply View the author
avatar
lyhdzxf
deepin
2019-06-26 19:01
#4
CMake Warning (dev) at CMakeLists.txt:13 (add_definitions):
  Policy CMP0005 is not set: Preprocessor definition values are now escaped
  automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:13 (add_definitions):
  Policy CMP0005 is not set: Preprocessor definition values are now escaped
  automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at plugins/kwin-xcb/lib/CMakeLists.txt:5 (find_package):
  By not providing "FindKF5Config.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "KF5Config", but CMake did not find one.

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

    KF5ConfigConfig.cmake
    kf5config-config.cmake

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


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.9)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
Reply View the author
avatar
funtoo
deepin
2019-06-26 19:39
#5
https://bbs.deepin.org/post/179825
CMake Warning (dev) at CMakeLists.txt:13 (add_definitions):
  Policy CMP0005 is not set: Preprocesso ...

错误提示挺明显的啊,熟悉Debian拆包规则的话就知道,把libkf5plasma-dev这个包装一下,再重新试一下就可以了,再有其他错误就缺什么补什么。
Reply View the author
avatar
superendermansm
deepin
2019-06-26 20:33
#6
https://bbs.deepin.org/post/179825
错误提示挺明显的啊,熟悉Debian拆包规则的话就知道,把libkf5plasma-dev这个包装一下,再重新试一下就可 ...

已安装
CMake Warning (dev) at CMakeLists.txt:13 (add_definitions):
  Policy CMP0005 is not set: Preprocessor definition values are now escaped
  automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:13 (add_definitions):
  Policy CMP0005 is not set: Preprocessor definition values are now escaped
  automatically.  Run "cmake --help-policy CMP0005" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at plugins/kwin-xcb/lib/CMakeLists.txt:6 (find_package):
  By not providing "FindKF5WindowSystem.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "KF5WindowSystem", but CMake did not find one.

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

    KF5WindowSystemConfig.cmake
    kf5windowsystem-config.cmake

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


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.9)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
Reply View the author
avatar
funtoo
deepin
2019-06-26 21:09
#7
https://bbs.deepin.org/post/179825
已安装
CMake Warning (dev) at CMakeLists.txt:13 (add_definitions):
  Policy CMP0005 is not set: Pr ...
Could not find a package configuration file provided by "KF5WindowSystem"
  with any of the following names:

    KF5WindowSystemConfig.cmake
    kf5windowsystem-config.cmake
根据这提示搜索下kf5windowsystem,再加上Debian的拆包规则,很容易得出结论需要安装libkf5windowsystem-dev这个包了啊
Reply View the author
avatar
superendermansm
deepin
2019-06-27 01:29
#8
https://bbs.deepin.org/post/179825
根据这提示搜索下kf5windowsystem,再加上Debian的拆包规则,很容易得出结论需要安装libkf5windowsystem- ...

按照你的指引我完成了cmake ,但是make报错,百度不到
fatal error: kwineffects.h: 没有那个文件或目录
#include
                         ^
compilation terminated.
plugins/kwin-xcb/lib/CMakeFiles/kwin-xcb.dir/build.make:62: recipe for target 'plugins/kwin-xcb/lib/CMakeFiles/kwin-xcb.dir/kwinutils.o' failed
make[2]: *** [plugins/kwin-xcb/lib/CMakeFiles/kwin-xcb.dir/kwinutils.o] Error 1
CMakeFiles/Makefile2:149: recipe for target 'plugins/kwin-xcb/lib/CMakeFiles/kwin-xcb.dir/all' failed
make[1]: *** [plugins/kwin-xcb/lib/CMakeFiles/kwin-xcb.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

按照你说的命名规则没找到包
Reply View the author
avatar
superendermansm
deepin
2019-06-27 01:33
#9
https://bbs.deepin.org/post/179825
根据这提示搜索下kf5windowsystem,再加上Debian的拆包规则,很容易得出结论需要安装libkf5windowsystem- ...

breeze/lion 4:5.8.5-2 amd64 dde-kwin/lion,now 0.0.6-1+comsta amd64 [已安装]
  KWin configures/plugins on the DDE

dde-kwin-dbgsym/lion 0.0.6-1+comsta amd64
  debug symbols for dde-kwin

dde-kwin-dev/lion,now 0.0.6-1+comsta amd64 [已安装]
  Developer package of dde-kwin

kde-window-manager/lion,lion 4:5.8.6.8-1+comsta all
  transitional package for kwin-x11

kwayland-integration/lion 5.8.4-1 amd64
  kwayland runtime integration plugins

kwin-addons/lion 4:5.8.5-2 amd64
  additional desktop and window switchers for KWin

kwin-common/lion,now 4:5.8.6.8-1+comsta amd64 [已安装]
  KDE window manager, common files

kwin-common-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for kwin-common

kwin-data/lion,lion,now 4:5.8.6.8-1+comsta all [已安装]
  KDE window manager data files

kwin-decoration-oxygen/lion 4:5.8.4-1 amd64
  KWin decoration for the Oxygen desktop theme

kwin-dev/lion 4:5.8.6.8-1+comsta amd64
  KDE window manager - devel files

kwin-style-breeze/lion 4:5.8.5-2 amd64
  KWin Breeze Style

kwin-wayland/lion 4:5.8.6.8-1+comsta amd64
  KDE window manager, wayland version, PREVIEW release

kwin-wayland-backend-drm/lion 4:5.8.6.8-1+comsta amd64
  KDE window manager drm plugin

kwin-wayland-backend-drm-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for kwin-wayland-backend-drm

kwin-wayland-backend-fbdev/lion 4:5.8.6.8-1+comsta amd64
  KDE window manager fbdev plugin

kwin-wayland-backend-fbdev-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for kwin-wayland-backend-fbdev

kwin-wayland-backend-virtual/lion 4:5.8.6.8-1+comsta amd64
  KDE window manager virtual plugin

kwin-wayland-backend-virtual-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for kwin-wayland-backend-virtual

kwin-wayland-backend-wayland/lion 4:5.8.6.8-1+comsta amd64
  KDE window manager nested wayland plugin

kwin-wayland-backend-wayland-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for kwin-wayland-backend-wayland

kwin-wayland-backend-x11/lion 4:5.8.6.8-1+comsta amd64
  KDE window manager x11 plugin

kwin-wayland-backend-x11-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for kwin-wayland-backend-x11

kwin-wayland-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for kwin-wayland

kwin-x11/lion,now 4:5.8.6.8-1+comsta amd64 [已安装]
  KDE window manager, X11 version

kwin-x11-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for kwin-x11

libkf5windowsystem-data/lion,lion,now 5.28.0-2 all [已安装]
  Convenience access to certain properties and features of the window manager

libkf5windowsystem-dev/lion,now 5.28.0-2 amd64 [已安装]
  development files for kwindowsystem

libkf5windowsystem5/lion,now 5.28.0-2 amd64 [已安装]
  Convenience access to certain properties and features of the window manager

libkwin4-effect-builtins1/lion,now 4:5.8.6.8-1+comsta amd64 [已安装]
  KDE window manager effect builtins library

libkwin4-effect-builtins1-dbgsym/lion,now 4:5.8.6.8-1+comsta amd64 [已安装]
  debug symbols for libkwin4-effect-builtins1

libkwineffects9/lion,now 4:5.8.6.8-1+comsta amd64 [已安装]
  KDE window manager effects library

libkwineffects9-dbgsym/lion,now 4:5.8.6.8-1+comsta amd64 [已安装]
  debug symbols for libkwineffects9

libkwinglutils9/lion,now 4:5.8.6.8-1+comsta amd64 [已安装]
  KDE window manager gl utils library

libkwinglutils9-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for libkwinglutils9

libkwinxrenderutils9/lion,now 4:5.8.6.8-1+comsta amd64 [已安装]
  KDE window manager render utils library

libkwinxrenderutils9-dbgsym/lion 4:5.8.6.8-1+comsta amd64
  debug symbols for libkwinxrenderutils9

liboxygenstyle5-5/lion 4:5.8.4-1 amd64
  style library for the Oxygen desktop theme

liboxygenstyleconfig5-5/lion 4:5.8.4-1 amd64
  style library configuration for the Oxygen desktop theme

openbox-kde-session/lion,lion 3.6.1-4 all
  command line utility to run Openbox as KDE SC session

qml-module-org-kde-kwindowsystem/lion 5.28.0-1 amd64
  provides integration of QML and KDE frameworks - kwindowsystem

wmctrl/lion 1.07-7+b1 amd64
  control an EWMH/NetWM compatible X Window Manager
Reply View the author
avatar
funtoo
deepin
2019-06-27 01:42
#10
https://bbs.deepin.org/post/179825
按照你的指引我完成了cmake ,但是make报错,百度不到
fatal error: kwineffects.h: 没有那个文件或目录
...
fatal error: kwineffects.h: 没有那个文件或目录
提示的那个头文件,很明显是kwin相关的,安装kwin-dev就可以了,如果要玩手动编译,建议走一遍LFS,对各类编译流程有个基本的认知。
Reply View the author
avatar
lyhdzxf
deepin
2019-06-27 01:46
#11
呃,看来,非专业人士折腾介个,确实有些难,我安装了那两个包,cmake这一步也没通过……
等官方升级吧
Reply View the author
avatar
文刀
deepin
2019-06-27 02:23
#12
https://bbs.deepin.org/post/179825
没用过cmake?在源代码目录创建个build目录,然后cd过去运行自己试一下就知道了 ...

make阶段报错,网上查过没找到解决方法知道是什么原因吗?

Reply View the author
avatar
superendermansm
deepin
2019-06-27 17:07
#13
https://bbs.deepin.org/post/179825
提示的那个头文件,很明显是kwin相关的,安装kwin-dev就可以了,如果要玩手动编译,建议走一遍LFS,对各 ...

个人没什么时间折腾,所以选择deepin
我还以为装一个dde-kwin-dev就行了
Reply View the author
avatar
superendermansm
deepin
2019-06-27 17:08
#14
https://bbs.deepin.org/post/179825
提示的那个头文件,很明显是kwin相关的,安装kwin-dev就可以了,如果要玩手动编译,建议走一遍LFS,对各 ...

感谢大佬指导!这些信息根本百度不到,从哪里可以找到教程呢?
Reply View the author
avatar
superendermansm
deepin
2019-06-27 17:09
#15
https://bbs.deepin.org/post/179825
提示的那个头文件,很明显是kwin相关的,安装kwin-dev就可以了,如果要玩手动编译,建议走一遍LFS,对各 ...

-- Generating done
-- Build files have been written to: /media/deepin/0242AF9142AF87CD/dde-kwin-master/dde-kwin-master/build

感谢!
Reply View the author
avatar
yuxue
deepin
2019-07-02 06:40
#16
https://bbs.deepin.org/post/179825
-- Generating done
-- Build files have been written to: /media/deepin/0242AF9142AF87CD/dde-kwin-ma ...

dpkg-buildpackage -b
我用此方法编译通过
前提是编译一堆的依赖 我正在将所有源码编译armhf 版本
Reply View the author