quickshell icon indicating copy to clipboard operation
quickshell copied to clipboard

QML Type Registration Build Error

Open mogro0022 opened this issue 5 months ago • 0 comments

I'm facing a build error where I can only successfully install when I'm not in Hyprland by logging into my user on TTY instead. Something to do with Qt QML type registration.

-- The CXX compiler identification is GNU 14.2.1 -- The C compiler identification is GNU 14.2.1 -- 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 -- 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 -- Quickshell configuration -- Distributor: AUR (package: quickshell) -- Distributor provided debuginfo: NO -- Disable precompild headers (dev): OFF -- Build tests (dev): OFF -- ASAN (dev): OFF -- Keep Frame Pointers (dev): OFF -- Crash Handling: ON -- Use jemalloc: ON -- Unix Sockets: ON -- Wayland: ON -- Wlroots Layer-Shell: ON -- Session Lock: ON -- Foreign Toplevel Management: ON -- Hyprland: ON -- Hyprland IPC: ON -- Hyprland Global Shortcuts: ON -- Hyprland Focus Grabbing: ON -- Hyprland Surface Extensions: ON -- Screencopy: ON -- Image Copy Capture: ON -- Wlroots Screencopy: ON -- Hyprland Toplevel Export: ON -- X11: ON -- I3/Sway: ON -- I3/Sway IPC: ON -- System Tray: ON -- PipeWire: ON -- Mpris: ON -- Pam: ON -- Greetd: ON -- UPower: ON -- Notifications: ON -- QML install dir: /usr/lib/qt6/qml -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found OpenGL: /usr/lib/libOpenGL.so -- Found WrapOpenGL: TRUE -- Found WrapVulkanHeaders: /usr/include -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC - Success -- Found WrapAtomic: TRUE -- Found Wayland_Client: /usr/lib/libwayland-client.so (found version "1.23.1") -- Found Wayland_Server: /usr/lib/libwayland-server.so (found version "1.23.1") -- Found Wayland_Cursor: /usr/lib/libwayland-cursor.so (found version "1.23.1") -- Found Wayland_Egl: /usr/lib/libwayland-egl.so (found version "18.1.0") -- Found Wayland: /usr/lib/libwayland-client.so;/usr/lib/libwayland-server.so;/usr/lib/libwayland-cursor.so;/usr/lib/libwayland-egl.so (found suitable version "1.23.1", minimum required is "1.15") -- Found WaylandScanner: /usr/bin/wayland-scanner -- Found PkgConfig: /usr/bin/pkg-config (found version "2.4.3") -- Checking for module 'breakpad' -- Found breakpad, version 0.1 -- Checking for modules 'wayland-client;wayland-protocols' -- Found wayland-client, version 1.23.1 -- Found wayland-protocols, version 1.44 -- Found wayland-protocols at -- Checking for modules 'libdrm;gbm;egl' -- Found libdrm, version 2.4.124 -- Found gbm, version 25.0.4-cachyos1.2 -- Found egl, version 1.5 -- Found XCB_XCB: /usr/lib/libxcb.so (found version "1.17.0") -- Found XCB: /usr/lib/libxcb.so (found version "1.17.0") found components: XCB -- Checking for module 'libpipewire-0.3' -- Found libpipewire-0.3, version 1.4.2 -- Checking for module 'jemalloc' -- Found jemalloc, version 5.3.0_0 -- Configuring done (2.1s) -- Generating done (0.3s) -- Build files have been written to: /home/akhil/.cache/yay/quickshell/src/quickshell/build [106/905] Automatic QML type registration for target quickshell-hyprland FAILED: src/wayland/hyprland/quickshell-hyprland_qmltyperegistrations.cpp qml_modules/Quickshell/Hyprland/quickshell-hyprland.qmltypes /home/akhil/.cache/yay/quickshell/src/quickshell/build/src/wayland/hyprland/quickshell-hyprland_qmltyperegistrations.cpp /home/akhil/.cache/yay/quickshell/src/quickshell/build/qml_modules/Quickshell/Hyprland/quickshell-hyprland.qmltypes cd /home/akhil/.cache/yay/quickshell/src/quickshell/build/src/wayland/hyprland && /usr/lib/qt6/qmltyperegistrar --generate-qmltypes=/home/akhil/.cache/yay/quickshell/src/quickshell/build/qml_modules/Quickshell/Hyprland/quickshell-hyprland.qmltypes --import-name=Quickshell.Hyprland --major-version=0 --minor-version=1 @/home/akhil/.cache/yay/quickshell/src/quickshell/build/src/wayland/hyprland/qmltypes/quickshell-hyprland_foreign_types.txt -o /home/akhil/.cache/yay/quickshell/src/quickshell/build/src/wayland/hyprland/quickshell-hyprland_qmltyperegistrations.cpp /home/akhil/.cache/yay/quickshell/src/quickshell/build/src/wayland/hyprland/meta_types/qt6quickshell-hyprland_relwithdebinfo_metatypes.json && /usr/bin/cmake -E make_directory /home/akhil/.cache/yay/quickshell/src/quickshell/build/src/wayland/hyprland/.qt/qmltypes && /usr/bin/cmake -E touch /home/akhil/.cache/yay/quickshell/src/quickshell/build/src/wayland/hyprland/.qt/qmltypes/quickshell-hyprland.qmltypes Error: /home/akhil/.cache/yay/quickshell/src/quickshell/build/qml_modules/Quickshell/Hyprland/quickshell-hyprland.qmltypes:: Cannot generate qmltypes file [123/905] Building CXX object src/dbus/CMakeFiles/qs-pchset-dbus.dir/cmake_pch.hxx.gch ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting... -> error making: quickshell-exit status 4 -> Failed to install the following packages. Manual intervention is required: quickshell - exit status 4

mogro0022 avatar Apr 28 '25 12:04 mogro0022