a-parhom / LightlyShaders

Rounded window corners and outline effect for KWin.
363 stars 24 forks source link

I can't built this on Manjaro #98

Closed niquedegraaff closed 1 year ago

niquedegraaff commented 1 year ago

I'm using KDE 5.26.5

I've used the arch linux commands to install dependencies (and they were succesfull). Here is the log:

   ~/Downloads  git clone https://github.com/a-parhom/LightlyShaders              1 ✘ 
Cloning into 'LightlyShaders'...
remote: Enumerating objects: 598, done.
remote: Counting objects: 100% (228/228), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 598 (delta 180), reused 212 (delta 172), pack-reused 370
Receiving objects: 100% (598/598), 11.22 MiB | 5.65 MiB/s, done.
Resolving deltas: 100% (371/371), done.
    ~/Downloads  cd LightlyShaders                                                   ✔ 
    ~/Dow/LightlyShaders    master    mkdir qt5build; cd qt5build; cmake ../ -DCMAKE_INSTALL_PREFIX=/usr && make && sudo make install && (kwin_x11 --replace &)

-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Setting build type to 'Debug' as none was specified.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found KF5Config: /usr/lib/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.103.0") 
-- Found KF5ConfigWidgets: /usr/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.103.0") 
-- Found KF5CoreAddons: /usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.103.0") 
-- Found KF5Crash: /usr/lib/cmake/KF5Crash/KF5CrashConfig.cmake (found version "5.103.0") 
-- Found KF5GlobalAccel: /usr/lib/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake (found version "5.103.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.21.1") 
-- Found KF5I18n: /usr/lib/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.103.0") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found KF5KIO: /usr/lib/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.103.0") 
-- Found KF5Service: /usr/lib/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.103.0") 
-- Found KF5Init: /usr/lib/cmake/KF5Init/KF5InitConfig.cmake (found version "5.103.0") 
-- Found KF5Notifications: /usr/lib/cmake/KF5Notifications/KF5NotificationsConfig.cmake (found version "5.103.0") 
-- Found KF5WidgetsAddons: /usr/lib/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake (found version "5.103.0") 
-- Found KF5WindowSystem: /usr/lib/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.103.0") 
-- Found KF5GuiAddons: /usr/lib/cmake/KF5GuiAddons/KF5GuiAddonsConfig.cmake (found version "5.103.0") 
-- Found KF5: success (found suitable version "5.103.0", minimum required is "5.9.0") found components: Config ConfigWidgets CoreAddons Crash GlobalAccel I18n KIO Service Init Notifications Service WidgetsAddons WindowSystem GuiAddons 
-- Found XCB_XCB: /usr/lib/libxcb.so (found version "1.15") 
-- Found XCB_RENDER: /usr/lib/libxcb-render.so (found version "1.15") 
-- Found XCB_SHAPE: /usr/lib/libxcb-shape.so (found version "1.15") 
-- Found XCB_XFIXES: /usr/lib/libxcb-xfixes.so (found version "1.15") 
-- Found XCB_SHM: /usr/lib/libxcb-shm.so (found version "1.15") 
-- Found XCB_ATOM: /usr/lib/libxcb-util.so (found version "0.4.1") 
-- Found XCB_AUX: /usr/lib/libxcb-util.so (found version "0.4.1") 
-- Found XCB_COMPOSITE: /usr/lib/libxcb-composite.so (found version "1.15") 
-- Found XCB_CURSOR: /usr/lib/libxcb-cursor.so (found version "0.1.4") 
-- Found XCB_DAMAGE: /usr/lib/libxcb-damage.so (found version "1.15") 
-- Found XCB_DPMS: /usr/lib/libxcb-dpms.so (found version "1.15") 
-- Found XCB_DRI2: /usr/lib/libxcb-dri2.so (found version "1.15") 
-- Found XCB_DRI3: /usr/lib/libxcb-dri3.so (found version "1.15") 
-- Found XCB_EVENT: /usr/lib/libxcb-util.so (found version "0.4.1") 
-- Found XCB_EWMH: /usr/lib/libxcb-ewmh.so (found version "0.4.2") 
-- Found XCB_GLX: /usr/lib/libxcb-glx.so (found version "1.15") 
-- Found XCB_ICCCM: /usr/lib/libxcb-icccm.so (found version "0.4.2") 
-- Found XCB_IMAGE: /usr/lib/libxcb-image.so (found version "0.4.1") 
-- Found XCB_KEYSYMS: /usr/lib/libxcb-keysyms.so (found version "0.4.1") 
-- Found XCB_PRESENT: /usr/lib/libxcb-present.so (found version "1.15") 
-- Found XCB_RANDR: /usr/lib/libxcb-randr.so (found version "1.15") 
-- Found XCB_RECORD: /usr/lib/libxcb-record.so (found version "1.15") 
-- Found XCB_RENDERUTIL: /usr/lib/libxcb-render-util.so (found version "0.3.10") 
-- Found XCB_RES: /usr/lib/libxcb-res.so (found version "1.15") 
-- Found XCB_SCREENSAVER: /usr/lib/libxcb-screensaver.so (found version "1.15") 
-- Found XCB_SYNC: /usr/lib/libxcb-sync.so (found version "1.15") 
-- Found XCB_UTIL: /usr/lib/libxcb-util.so (found version "0.4.1") 
-- Found XCB_XF86DRI: /usr/lib/libxcb-xf86dri.so (found version "1.15") 
-- Found XCB_XINERAMA: /usr/lib/libxcb-xinerama.so (found version "1.15") 
-- Found XCB_XINPUT: /usr/lib/libxcb-xinput.so (found version "1.15") 
-- Found XCB_XKB: /usr/lib/libxcb-xkb.so (found version "1.15") 
-- Found XCB_XTEST: /usr/lib/libxcb-xtest.so (found version "1.15") 
-- Found XCB_XV: /usr/lib/libxcb-xv.so (found version "1.15") 
-- Found XCB_XVMC: /usr/lib/libxcb-xvmc.so (found version "1.15") 
-- Found XCB: /usr/lib/libxcb.so;/usr/lib/libxcb-render.so;/usr/lib/libxcb-shape.so;/usr/lib/libxcb-xfixes.so;/usr/lib/libxcb-shm.so;/usr/lib/libxcb-util.so;/usr/lib/libxcb-composite.so;/usr/lib/libxcb-cursor.so;/usr/lib/libxcb-damage.so;/usr/lib/libxcb-dpms.so;/usr/lib/libxcb-dri2.so;/usr/lib/libxcb-dri3.so;/usr/lib/libxcb-ewmh.so;/usr/lib/libxcb-glx.so;/usr/lib/libxcb-icccm.so;/usr/lib/libxcb-image.so;/usr/lib/libxcb-keysyms.so;/usr/lib/libxcb-present.so;/usr/lib/libxcb-randr.so;/usr/lib/libxcb-record.so;/usr/lib/libxcb-render-util.so;/usr/lib/libxcb-res.so;/usr/lib/libxcb-screensaver.so;/usr/lib/libxcb-sync.so;/usr/lib/libxcb-xf86dri.so;/usr/lib/libxcb-xinerama.so;/usr/lib/libxcb-xinput.so;/usr/lib/libxcb-xkb.so;/usr/lib/libxcb-xtest.so;/usr/lib/libxcb-xv.so;/usr/lib/libxcb-xvmc.so (found version "1.15")  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nique/Downloads/LightlyShaders/qt5build
[  8%] Automatic MOC for target kwin4_effect_lightlyshaders
AutoMoc warning
---------------
"SRC:/lightlyshaders.cpp"
includes the moc file "lightlyshaders.moc", but does not contain a Q_OBJECT, Q_GADGET, Q_NAMESPACE, Q_NAMESPACE_EXPORT, K_PLUGIN_FACTORY, K_PLUGIN_CLASS, K_PLUGIN_FACTORY_WITH_JSON or K_PLUGIN_CLASS_WITH_JSON macro.

[  8%] Built target kwin4_effect_lightlyshaders_autogen
[ 16%] Building CXX object CMakeFiles/kwin4_effect_lightlyshaders.dir/kwin4_effect_lightlyshaders_autogen/mocs_compilation.cpp.o
[ 25%] Building CXX object CMakeFiles/kwin4_effect_lightlyshaders.dir/lightlyshaders.cpp.o
/home/nique/Downloads/LightlyShaders/lightlyshaders.cpp: In member function ‘void KWin::LightlyShadersEffect::windowAdded(KWin::EffectWindow*)’:
/home/nique/Downloads/LightlyShaders/lightlyshaders.cpp:232:5: error: ‘setShader’ was not declared in this scope; did you mean ‘GLShader’?
  232 |     setShader(w, m_shader.get());
      |     ^~~~~~~~~
      |     GLShader
/home/nique/Downloads/LightlyShaders/lightlyshaders.cpp: In member function ‘virtual void KWin::LightlyShadersEffect::prePaintWindow(KWin::EffectWindow*, KWin::WindowPrePaintData&, std::chrono::milliseconds)’:
/home/nique/Downloads/LightlyShaders/lightlyshaders.cpp:530:41: warning: ‘void KWindowEffects::enableBlurBehind(WId, bool, const QRegion&)’ is deprecated: Since 5.82. Use enableBlurBehind(QWindow) overload [-Wdeprecated-declarations]
  530 |         KWindowEffects::enableBlurBehind(w->windowId(), true, blur_region);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/KF5/KWindowSystem/KWindowEffects:1,
                 from /home/nique/Downloads/LightlyShaders/lightlyshaders.cpp:35:
/usr/include/KF5/KWindowSystem/kwindoweffects.h:162:6: note: declared here
  162 | void enableBlurBehind(WId window, bool enable = true, const QRegion &region = QRegion());
      |      ^~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/kwin4_effect_lightlyshaders.dir/build.make:90: CMakeFiles/kwin4_effect_lightlyshaders.dir/lightlyshaders.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:681: CMakeFiles/kwin4_effect_lightlyshaders.dir/all] Error 2
make: *** [Makefile:146: all] Error 2 
a-parhom commented 1 year ago

You need Plasma 5.27 to build from master branch. Use v2.0 branch for Plasma 5.26.