Bug 381653 - Installs with some warnings - but no theme visible in KDE-window- decoration configuration gui
Summary: Installs with some warnings - but no theme visible in KDE-window- decoration ...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: smaragd
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 0.1.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
: 381856 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-06-25 18:48 UTC by desputin
Modified: 2023-10-26 14:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description desputin 2017-06-25 18:48:42 UTC
Smaragd installs fine as described here (after installing many KF5 dev files):
https://kdepepo.wordpress.com/2016/12/23/smaragd-for-plasma-5/

After that I put the emerald data into the folder /home/username/.emerald/theme

Problem: the emerald theme doesn't show in the KDE-gui for window decoration....
Comment 1 Christoph Feck 2017-06-25 23:02:59 UTC
Please provide the output of the following Konsole command:

ls -R ~/.emerald/
Comment 2 desputin 2017-06-26 07:09:28 UTC
desputin@desputin:~$ ls -R ~/.emerald/
/home/desputin/.emerald/:
settings.ini  theme  theme-smaragd.zip

/home/desputin/.emerald/theme:
alt                        pixmaps.active_bottom_left.png   pixmaps.active_top.png             pixmaps.inactive_right.png
buttons.close.png          pixmaps.active_bottom.png        pixmaps.active_top_right.png       pixmaps.inactive_top_left.png
buttons.max.png            pixmaps.active_bottom_right.png  pixmaps.inactive_bottom_left.png   pixmaps.inactive_top.png
buttons.min.png            pixmaps.active_left.png          pixmaps.inactive_bottom.png        pixmaps.inactive_top_right.png
buttons.restore.png        pixmaps.active_right.png         pixmaps.inactive_bottom_right.png  theme.ini
Office 2010 Black.emerald  pixmaps.active_top_left.png      pixmaps.inactive_left.png          theme.screenshot.png

/home/desputin/.emerald/theme/alt:
buttons.close.png  buttons.max.png  buttons.min.png  buttons.restore.png  theme.ini  theme.screenshot.png
Comment 3 Christoph Feck 2017-06-26 08:58:13 UTC
Merci, so the theme files are all in the correct place. Did you restart kwin after the changes?

If no entry for the Emerald theme shows in the decoration selector, then I fear it is not correctly installed.

Check the contents of /usr/lib64/qt5/plugins/org.kde.kdecoration2/

If the "kwin_smaragd.so" is not installed in the same place as "kwin5_aurorae.so", then I need the complete output of all commands from the installation steps mentioned in https://kdepepo.wordpress.com/2016/12/23/smaragd-for-plasma-5/ to check for errors.
Comment 4 desputin 2017-06-26 09:25:11 UTC
Hi, Packages libkdecorations2-5v5 / libkdecorations2-dev / libkdecorations2private5v5
Are installed.

But folder: /usr/lib64/qt5/plugins/org.kde.kdecoration2/
doesn't exist.
Comment 5 desputin 2017-06-26 09:28:18 UTC
Ok, I checked. This folder here is present:
/usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/
The files within this folder are:
kwin5_aurorae.so and breezedecoration.so
Comment 6 desputin 2017-06-26 09:30:44 UTC
Ok this is the output:

desputin@desputin:~/Documents$ git clone git://anongit.kde.org/smaragd.git
Klone nach 'smaragd' ...
remote: Counting objects: 543, done.
remote: Compressing objects: 100% (265/265), done.
remote: Total 543 (delta 393), reused 389 (delta 275)
Empfange Objekte: 100% (543/543), 125.12 KiB | 0 bytes/s, Fertig.
Löse Unterschiede auf: 100% (393/393), Fertig.
desputin@desputin:~/Documents$ cd smaragd
desputin@desputin:~/Documents/smaragd$ git checkout kdecoration2
Branch kdecoration2 konfiguriert zum Folgen von Remote-Branch kdecoration2 von origin.
Zu neuem Branch 'kdecoration2' gewechselt
desputin@desputin:~/Documents/smaragd$ mkdir build && cd build
desputin@desputin:~/Documents/smaragd/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found KF5Config: /usr/lib/x86_64-linux-gnu/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.28.0") 
-- Found KF5CoreAddons: /usr/lib/x86_64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.28.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
-- Found PythonInterp: /usr/bin/python (found version "2.7.13") 
-- Found KF5I18n: /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.28.0") 
-- Found KF5WidgetsAddons: /usr/lib/x86_64-linux-gnu/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake (found version "5.28.0") 
-- Found KF5: success (found version "5.28.0") found components:  Config CoreAddons I18n WidgetsAddons 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- Found GLIB2: /usr/lib/x86_64-linux-gnu/libglib-2.0.so  
-- Checking for module 'cairo'
--   Found cairo, version 1.14.8
-- Found Cairo: /usr/lib/x86_64-linux-gnu/libcairo.so  
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/desputin/Documents/smaragd/build
desputin@desputin:~/Documents/smaragd/build$ make && sudo make install
Scanning dependencies of target kwin_smaragd_automoc
[  6%] Automatic moc for target kwin_smaragd
Generating moc source kwin_smaragd.moc
Generating moc source kwin_smaragd_automoc.dir/moc_kwin_smaragd_LAIGOUPSVJTIA3.cpp
Generating moc compilation kwin_smaragd_automoc.cpp
[  6%] Built target kwin_smaragd_automoc
[ 13%] Generating ui_kwin_smaragd_dialog.h
Scanning dependencies of target kwin_smaragd
[ 20%] Building CXX object src/CMakeFiles/kwin_smaragd.dir/kwin_smaragd.cpp.o
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp: In member function ‘virtual void Smaragd::Decoration::paint(QPainter*, const QRect&)’:
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp:732:16: warning: unused variable ‘horizontalBorders’ [-Wunused-variable]
     const bool horizontalBorders = !client().data()->isMaximizedHorizontally();
                ^~~~~~~~~~~~~~~~~
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp:733:16: warning: unused variable ‘verticalBorders’ [-Wunused-variable]
     const bool verticalBorders = !client().data()->isMaximizedVertically();
                ^~~~~~~~~~~~~~~
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp:735:11: warning: variable ‘decoSize’ set but not used [-Wunused-but-set-variable]
     QSize decoSize = size();
           ^~~~~~~~
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp:748:9: warning: unused variable ‘textHaloXOffset’ [-Wunused-variable]
     int textHaloXOffset = 1;
         ^~~~~~~~~~~~~~~
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp:749:9: warning: unused variable ‘textHaloYOffset’ [-Wunused-variable]
     int textHaloYOffset = 1;
         ^~~~~~~~~~~~~~~
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp:750:9: warning: unused variable ‘textHaloSize’ [-Wunused-variable]
     int textHaloSize = 2;
         ^~~~~~~~~~~~
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp: In member function ‘virtual void Smaragd::DecorationButton::paint(QPainter*, const QRect&)’:
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp:893:62: warning: unused parameter ‘repaintArea’ [-Wunused-parameter]
 void DecorationButton::paint(QPainter *painter, const QRect &repaintArea)
                                                              ^~~~~~~~~~~
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp: In member function ‘void Smaragd::DecorationButton::paintGlow(QPainter*, const QRect&)’:
/home/desputin/Documents/smaragd/src/kwin_smaragd.cpp:935:66: warning: unused parameter ‘repaintArea’ [-Wunused-parameter]
 void DecorationButton::paintGlow(QPainter *painter, const QRect &repaintArea)
                                                                  ^~~~~~~~~~~
[ 26%] Building C object src/CMakeFiles/kwin_smaragd.dir/emerald.c.o
/home/desputin/Documents/smaragd/src/emerald.c: In function ‘load_font_setting’:
/home/desputin/Documents/smaragd/src/emerald.c:126:62: warning: unused parameter ‘fd’ [-Wunused-parameter]
 void load_font_setting(GKeyFile * f, PangoFontDescription ** fd, const gchar * key, const gchar * sect)
                                                              ^~
/home/desputin/Documents/smaragd/src/emerald.c: In function ‘rounded_rectangle’:
/home/desputin/Documents/smaragd/src/emerald.c:156:27: warning: unused parameter ‘ws’ [-Wunused-parameter]
         window_settings * ws,
                           ^~
[ 33%] Building C object src/CMakeFiles/kwin_smaragd.dir/main.c.o
/home/desputin/Documents/smaragd/src/main.c: In function ‘draw_help_button’:
/home/desputin/Documents/smaragd/src/main.c:271:40: warning: unused parameter ‘d’ [-Wunused-parameter]
 static void draw_help_button(decor_t * d, cairo_t * cr, double s)
                                        ^
/home/desputin/Documents/smaragd/src/main.c:271:64: warning: unused parameter ‘s’ [-Wunused-parameter]
 static void draw_help_button(decor_t * d, cairo_t * cr, double s)
                                                                ^
/home/desputin/Documents/smaragd/src/main.c: In function ‘draw_close_button’:
/home/desputin/Documents/smaragd/src/main.c:290:41: warning: unused parameter ‘d’ [-Wunused-parameter]
 static void draw_close_button(decor_t * d, cairo_t * cr, double s)
                                         ^
/home/desputin/Documents/smaragd/src/main.c: In function ‘draw_max_button’:
/home/desputin/Documents/smaragd/src/main.c:311:39: warning: unused parameter ‘d’ [-Wunused-parameter]
 static void draw_max_button(decor_t * d, cairo_t * cr, double s)
                                       ^
/home/desputin/Documents/smaragd/src/main.c: In function ‘draw_unmax_button’:
/home/desputin/Documents/smaragd/src/main.c:330:41: warning: unused parameter ‘d’ [-Wunused-parameter]
 static void draw_unmax_button(decor_t * d, cairo_t * cr, double s)
                                         ^
/home/desputin/Documents/smaragd/src/main.c: In function ‘draw_min_button’:
/home/desputin/Documents/smaragd/src/main.c:351:39: warning: unused parameter ‘d’ [-Wunused-parameter]
 static void draw_min_button(decor_t * d, cairo_t * cr, double s)
                                       ^
/home/desputin/Documents/smaragd/src/main.c: In function ‘draw_pixbuf’:
/home/desputin/Documents/smaragd/src/main.c:421:25: warning: unused parameter ‘pixbuf’ [-Wunused-parameter]
 draw_pixbuf(GdkPixbuf * pixbuf, cairo_t * cr,
                         ^~~~~~
/home/desputin/Documents/smaragd/src/main.c:421:43: warning: unused parameter ‘cr’ [-Wunused-parameter]
 draw_pixbuf(GdkPixbuf * pixbuf, cairo_t * cr,
                                           ^~
/home/desputin/Documents/smaragd/src/main.c:422:21: warning: unused parameter ‘x’ [-Wunused-parameter]
             gdouble x, gdouble y, gdouble x2, gdouble y2, gdouble alpha)
                     ^
/home/desputin/Documents/smaragd/src/main.c:422:32: warning: unused parameter ‘y’ [-Wunused-parameter]
             gdouble x, gdouble y, gdouble x2, gdouble y2, gdouble alpha)
                                ^
/home/desputin/Documents/smaragd/src/main.c:422:43: warning: unused parameter ‘x2’ [-Wunused-parameter]
             gdouble x, gdouble y, gdouble x2, gdouble y2, gdouble alpha)
                                           ^~
/home/desputin/Documents/smaragd/src/main.c:422:55: warning: unused parameter ‘y2’ [-Wunused-parameter]
             gdouble x, gdouble y, gdouble x2, gdouble y2, gdouble alpha)
                                                       ^~
/home/desputin/Documents/smaragd/src/main.c:422:67: warning: unused parameter ‘alpha’ [-Wunused-parameter]
             gdouble x, gdouble y, gdouble x2, gdouble y2, gdouble alpha)
                                                                   ^~~~~
/home/desputin/Documents/smaragd/src/main.c: In function ‘draw_button_with_glow_alpha_bstate’:
/home/desputin/Documents/smaragd/src/main.c:435:41: warning: unused parameter ‘y1’ [-Wunused-parameter]
                                    gint y1, gdouble button_alpha,
                                         ^~
At top level:
/home/desputin/Documents/smaragd/src/main.c:408:12: warning: ‘get_b_state’ defined but not used [-Wunused-function]
 static int get_b_state(decor_t * d, int button)
            ^~~~~~~~~~~
/home/desputin/Documents/smaragd/src/main.c:55:13: warning: ‘get_b_t_offset’ defined but not used [-Wunused-function]
 static gint get_b_t_offset(gint b_t)
             ^~~~~~~~~~~~~~
[ 40%] Building CXX object src/CMakeFiles/kwin_smaragd.dir/shadowengine.cpp.o
[ 46%] Building C object src/CMakeFiles/kwin_smaragd.dir/engines/legacy.c.o
[ 53%] Building C object src/CMakeFiles/kwin_smaragd.dir/engines/line.c.o
[ 60%] Building C object src/CMakeFiles/kwin_smaragd.dir/engines/oxygen.c.o
[ 66%] Building C object src/CMakeFiles/kwin_smaragd.dir/engines/pixmap.c.o
/home/desputin/Documents/smaragd/src/engines/pixmap.c:50:28: warning: ‘names’ defined but not used [-Wunused-const-variable=]
 static const gchar * const names[]={
                            ^~~~~
[ 73%] Building C object src/CMakeFiles/kwin_smaragd.dir/engines/truglass.c.o
[ 80%] Building C object src/CMakeFiles/kwin_smaragd.dir/engines/vrunner.c.o
[ 86%] Building C object src/CMakeFiles/kwin_smaragd.dir/engines/zootreeves.c.o
/home/desputin/Documents/smaragd/src/engines/zootreeves.c: In function ‘rounded_rectangle_independent’:
/home/desputin/Documents/smaragd/src/engines/zootreeves.c:118:27: warning: unused parameter ‘ws’ [-Wunused-parameter]
         window_settings * ws,
                           ^~
/home/desputin/Documents/smaragd/src/engines/zootreeves.c: In function ‘rounded_square’:
/home/desputin/Documents/smaragd/src/engines/zootreeves.c:316:27: warning: unused parameter ‘ws’ [-Wunused-parameter]
         window_settings * ws,
                           ^~
[ 93%] Building CXX object src/CMakeFiles/kwin_smaragd.dir/kwin_smaragd_automoc.cpp.o
[100%] Linking CXX shared module kwin_smaragd.so
[100%] Built target kwin_smaragd
[  6%] Automatic moc for target kwin_smaragd
[  6%] Built target kwin_smaragd_automoc
[100%] Built target kwin_smaragd
Install the project...
-- Install configuration: ""
-- Installing: /usr/lib/x86_64-linux-gnu/plugins/org.kde.kdecoration2/kwin_smaragd.so
-- Installing: /etc/xdg/smaragd.knsrc
Comment 7 Christoph Feck 2017-06-26 10:12:45 UTC
Thanks. The *.so file is installed into the wrong directoy. Manually move /usr/lib/x86_64-linux-gnu/plugins/org.kde.kdecoration2/kwin_smaragd.so to /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/kwin_smaragd.so until this is fixed.
Comment 8 desputin 2017-06-26 10:26:19 UTC
Thanks! That works.
Comment 9 Christoph Feck 2017-06-26 10:54:49 UTC
Could you please verify if it works correctly when you (after git checkout step) move the three 'include' lines above the 'find_package' lines in CMakeLists.txt, and build it again with the subsequent steps?

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5f2ea2..dc8c20a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,16 +10,16 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
     ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
 )
 
+include (KDEInstallDirs)
+include (KDECMakeSettings)
+include (KDECompilerSettings)
+
 find_package (Qt5 REQUIRED CONFIG COMPONENTS Core Gui Widgets)
 find_package (KF5 REQUIRED COMPONENTS Config CoreAddons I18n WidgetsAddons)
 find_package (KDecoration2 REQUIRED)
 find_package (GLIB2 REQUIRED)
 find_package (Cairo REQUIRED)
 
-include (KDEInstallDirs)
-include (KDECMakeSettings)
-include (KDECompilerSettings)
-
 include_directories (
     ${CMAKE_BINARY_DIR}
     ${CAIRO_INCLUDE_DIRS}
Comment 10 Christoph Feck 2017-06-26 10:55:43 UTC
(first remove the plugin from qt5 dir to check if it really ends up there)
Comment 11 desputin 2017-06-26 11:29:56 UTC
If I do that with the three lines added there is an error:

desputin@desputin:/media/Daten/amule$ git clone git://anongit.kde.org/smaragd.git
Klone nach 'smaragd' ...
remote: Counting objects: 543, done.
remote: Compressing objects: 100% (265/265), done.
remote: Total 543 (delta 393), reused 389 (delta 275)
Empfange Objekte: 100% (543/543), 125.12 KiB | 0 bytes/s, Fertig.
Löse Unterschiede auf: 100% (393/393), Fertig.
desputin@desputin:/media/Daten/amule$ cd smaragd
desputin@desputin:/media/Daten/amule/smaragd$ ^C
desputin@desputin:/media/Daten/amule/smaragd$  cd /media/Daten1/Temp/sento
desputin@desputin:/media/Daten1/Temp/sento$ ^C
desputin@desputin:/media/Daten1/Temp/sento$  cd /media/Daten/amule/smaragd
desputin@desputin:/media/Daten/amule/smaragd$ git checkout kdecoration2
M       CMakeLists.txt
Branch kdecoration2 konfiguriert zum Folgen von Remote-Branch kdecoration2 von origin.
Zu neuem Branch 'kdecoration2' gewechselt
desputin@desputin:/media/Daten/amule/smaragd$ mkdir build && cd build
desputin@desputin:/media/Daten/amule/smaragd/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
CMake Error at CMakeLists.txt:13:
  Parse error.  Expected a command name, got unquoted argument with text
  "+include".


-- Configuring incomplete, errors occurred!
desputin@desputin:/media/Daten/amule/smaragd/build$
Comment 12 Christoph Feck 2017-06-26 11:53:34 UTC
The + signs means added lines, and the - signs mean removed lines. Just move the three lines, not change them.
Comment 13 desputin 2017-06-26 12:03:41 UTC
Ok if I do this, the file kwin_smaragd.so is not written to:
/usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/

but to :
/usr/lib/x86_64-linux-gnu/plugins/org.kde.kdecoration2/
Comment 14 Christoph Feck 2017-07-12 14:08:43 UTC
*** Bug 381856 has been marked as a duplicate of this bug. ***