a-parhom / LightlyShaders

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

lightly doesn't install on kubuntu 22.10? #97

Closed lunlune closed 1 year ago

lunlune commented 1 year ago

distro - kubuntu 22.10 kde version - 5.27.2

i'm trying to build lightly, but i can't seem to get it installed?

` mkdir qt5build; cd qt5build; cmake ../ -DCMAKE_INSTALL_PREFIX=/usr && make && sudo make install && (kwin_x11 --replace &) -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- 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/x86_64-linux-gnu/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.103.0") -- Found KF5ConfigWidgets: /usr/lib/x86_64-linux-gnu/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.103.0") -- Found KF5CoreAddons: /usr/lib/x86_64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.103.0") -- Found KF5Crash: /usr/lib/x86_64-linux-gnu/cmake/KF5Crash/KF5CrashConfig.cmake (found version "5.103.0") -- Found KF5GlobalAccel: /usr/lib/x86_64-linux-gnu/cmake/KF5GlobalAccel/KF5GlobalAccelConfig.cmake (found version "5.103.0") -- Found Gettext: /usr/bin/msgmerge (found version "0.21") -- Found KF5I18n: /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.103.0") -- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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 -- Found KF5KIO: /usr/lib/x86_64-linux-gnu/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.103.0") -- Found KF5Service: /usr/lib/x86_64-linux-gnu/cmake/KF5Service/KF5ServiceConfig.cmake (found version "5.103.0") -- Found KF5Init: /usr/lib/x86_64-linux-gnu/cmake/KF5Init/KF5InitConfig.cmake (found version "5.103.0") -- Found KF5Notifications: /usr/lib/x86_64-linux-gnu/cmake/KF5Notifications/KF5NotificationsConfig.cmake (found version "5.103.0") -- Found KF5WidgetsAddons: /usr/lib/x86_64-linux-gnu/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake (found version "5.103.0") -- Found KF5WindowSystem: /usr/lib/x86_64-linux-gnu/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.103.0") -- Found KF5GuiAddons: /usr/lib/x86_64-linux-gnu/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/x86_64-linux-gnu/libxcb.so (found version "1.15") -- Found XCB_RENDER: /usr/lib/x86_64-linux-gnu/libxcb-render.so (found version "1.15") -- Found XCB_SHAPE: /usr/lib/x86_64-linux-gnu/libxcb-shape.so (found version "1.15") -- Found XCB_XFIXES: /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so (found version "1.15") -- Found XCB_SHM: /usr/lib/x86_64-linux-gnu/libxcb-shm.so (found version "1.15") -- Found XCB_ATOM: /usr/lib/x86_64-linux-gnu/libxcb-util.so (found version "0.4.0") -- Found XCB_AUX: /usr/lib/x86_64-linux-gnu/libxcb-util.so (found version "0.4.0") -- Found XCB_COMPOSITE: /usr/lib/x86_64-linux-gnu/libxcb-composite.so (found version "1.15") -- Found XCB_CURSOR: /usr/lib/x86_64-linux-gnu/libxcb-cursor.so (found version "0.1.1") -- Found XCB_DAMAGE: /usr/lib/x86_64-linux-gnu/libxcb-damage.so (found version "1.15") -- Found XCB_DPMS: /usr/lib/x86_64-linux-gnu/libxcb-dpms.so (found version "1.15") -- Found XCB_DRI2: /usr/lib/x86_64-linux-gnu/libxcb-dri2.so (found version "1.15") -- Found XCB_DRI3: /usr/lib/x86_64-linux-gnu/libxcb-dri3.so (found version "1.15") -- Found XCB_EVENT: /usr/lib/x86_64-linux-gnu/libxcb-util.so (found version "0.4.0") -- Found XCB_EWMH: /usr/lib/x86_64-linux-gnu/libxcb-ewmh.so (found version "0.4.1") -- Found XCB_GLX: /usr/lib/x86_64-linux-gnu/libxcb-glx.so (found version "1.15") -- Found XCB_ICCCM: /usr/lib/x86_64-linux-gnu/libxcb-icccm.so (found version "0.4.1") -- Found XCB_IMAGE: /usr/lib/x86_64-linux-gnu/libxcb-image.so (found version "0.4.0") -- Found XCB_KEYSYMS: /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so (found version "0.4.0") -- Found XCB_PRESENT: /usr/lib/x86_64-linux-gnu/libxcb-present.so (found version "1.15") -- Found XCB_RANDR: /usr/lib/x86_64-linux-gnu/libxcb-randr.so (found version "1.15") -- Found XCB_RECORD: /usr/lib/x86_64-linux-gnu/libxcb-record.so (found version "1.15") -- Found XCB_RENDERUTIL: /usr/lib/x86_64-linux-gnu/libxcb-render-util.so (found version "0.3.9") -- Found XCB_RES: /usr/lib/x86_64-linux-gnu/libxcb-res.so (found version "1.15") -- Found XCB_SCREENSAVER: /usr/lib/x86_64-linux-gnu/libxcb-screensaver.so (found version "1.15") -- Found XCB_SYNC: /usr/lib/x86_64-linux-gnu/libxcb-sync.so (found version "1.15") -- Found XCB_UTIL: /usr/lib/x86_64-linux-gnu/libxcb-util.so (found version "0.4.0") -- Found XCB_XF86DRI: /usr/lib/x86_64-linux-gnu/libxcb-xf86dri.so (found version "1.15") -- Found XCB_XINERAMA: /usr/lib/x86_64-linux-gnu/libxcb-xinerama.so (found version "1.15") -- Found XCB_XINPUT: /usr/lib/x86_64-linux-gnu/libxcb-xinput.so (found version "1.15") -- Found XCB_XKB: /usr/lib/x86_64-linux-gnu/libxcb-xkb.so (found version "1.15") -- Found XCB_XTEST: /usr/lib/x86_64-linux-gnu/libxcb-xtest.so (found version "1.15") -- Found XCB_XV: /usr/lib/x86_64-linux-gnu/libxcb-xv.so (found version "1.15") -- Found XCB_XVMC: /usr/lib/x86_64-linux-gnu/libxcb-xvmc.so (found version "1.15") -- Found XCB: /usr/lib/x86_64-linux-gnu/libxcb.so;/usr/lib/x86_64-linux-gnu/libxcb-render.so;/usr/lib/x86_64-linux-gnu/libxcb-shape.so;/usr/lib/x86_64-linux-gnu/libxcb-xfixes.so;/usr/lib/x86_64-linux-gnu/libxcb-shm.so;/usr/lib/x86_64-linux-gnu/libxcb-util.so;/usr/lib/x86_64-linux-gnu/libxcb-composite.so;/usr/lib/x86_64-linux-gnu/libxcb-cursor.so;/usr/lib/x86_64-linux-gnu/libxcb-damage.so;/usr/lib/x86_64-linux-gnu/libxcb-dpms.so;/usr/lib/x86_64-linux-gnu/libxcb-dri2.so;/usr/lib/x86_64-linux-gnu/libxcb-dri3.so;/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so;/usr/lib/x86_64-linux-gnu/libxcb-glx.so;/usr/lib/x86_64-linux-gnu/libxcb-icccm.so;/usr/lib/x86_64-linux-gnu/libxcb-image.so;/usr/lib/x86_64-linux-gnu/libxcb-keysyms.so;/usr/lib/x86_64-linux-gnu/libxcb-present.so;/usr/lib/x86_64-linux-gnu/libxcb-randr.so;/usr/lib/x86_64-linux-gnu/libxcb-record.so;/usr/lib/x86_64-linux-gnu/libxcb-render-util.so;/usr/lib/x86_64-linux-gnu/libxcb-res.so;/usr/lib/x86_64-linux-gnu/libxcb-screensaver.so;/usr/lib/x86_64-linux-gnu/libxcb-sync.so;/usr/lib/x86_64-linux-gnu/libxcb-xf86dri.so;/usr/lib/x86_64-linux-gnu/libxcb-xinerama.so;/usr/lib/x86_64-linux-gnu/libxcb-xinput.so;/usr/lib/x86_64-linux-gnu/libxcb-xkb.so;/usr/lib/x86_64-linux-gnu/libxcb-xtest.so;/usr/lib/x86_64-linux-gnu/libxcb-xv.so;/usr/lib/x86_64-linux-gnu/libxcb-xvmc.so (found version "1.15")
-- Configuring done -- Generating done -- Build files have been written to: /home/giuls/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/giuls/LightlyShaders/lightlyshaders.cpp: In member function ‘virtual void KWin::LightlyShadersEffect::prePaintWindow(KWin::EffectWindow*, KWin::WindowPrePaintData&, std::chrono::milliseconds)’: /home/giuls/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/giuls/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()); | ^~~~ /home/giuls/LightlyShaders/lightlyshaders.cpp:479:10: warning: variable ‘valid’ set but not used [-Wunused-but-set-variable] 479 | bool valid = false; | ^~~~~ [ 33%] Linking CXX shared module kwin4_effect_lightlyshaders.so [ 33%] Built target kwin4_effect_lightlyshaders [ 41%] Automatic MOC for target kwin4_lightlyshaders_config [ 41%] Built target kwin4_lightlyshaders_config_autogen [ 50%] Generating ui_lightlyshaders_config.h [ 58%] Generating kwineffects_interface.cpp, kwineffects_interface.h [ 66%] Generating kwineffects_interface.moc [ 75%] Building CXX object CMakeFiles/kwin4_lightlyshaders_config.dir/kwin4_lightlyshaders_config_autogen/mocs_compilation.cpp.o [ 83%] Building CXX object CMakeFiles/kwin4_lightlyshaders_config.dir/lightlyshaders_config.cpp.o [ 91%] Building CXX object CMakeFiles/kwin4_lightlyshaders_config.dir/kwineffects_interface.cpp.o [100%] Linking CXX shared module kwin4_lightlyshaders_config.so [100%] Built target kwin4_lightlyshaders_config [sudo] password di giuls: [ 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 Consolidate compiler generated dependencies of target kwin4_effect_lightlyshaders [ 33%] Built target kwin4_effect_lightlyshaders [ 41%] Automatic MOC for target kwin4_lightlyshaders_config [ 41%] Built target kwin4_lightlyshaders_config_autogen Consolidate compiler generated dependencies of target kwin4_lightlyshaders_config [100%] Built target kwin4_lightlyshaders_config Install the project... -- Install configuration: "Debug" -- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kwin/effects/plugins/kwin4_effect_lightlyshaders.so -- Installing: /usr/share/kwin/shaders/1.10/lightlyshaders.frag -- Installing: /usr/share/kwin/shaders/1.40/lightlyshaders.frag -- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/kwin/effects/configs/kwin4_lightlyshaders_config.so`

after doing this, it enters into a debug mode, and if i click anything, i get a qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4220, resource id: 29360325, major code: 18 (ChangeProperty), minor code: 0 or qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 40493, resource id: 92275051, major code: 20 (GetProperty), minor code: 0 spawned in the console. (this also happens with roundedsbe too)

lunlune commented 1 year ago

nevermind, i had messed up some stuff, it does work