Error compiling 2.1.2: undefined reference to xcb_intern_atom_unchecked
Hello, How can I compile 2.1.2 (openSUSE Tumbleweed)?
[ 50s] /usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: /tmp/ccLn5Iau.ltrans3.ltrans.o: in function WindowBlur::updateBlur()': [ 50s] <artificial>:(.text+0x2497): undefined reference to
xcb_intern_atom_unchecked'
[ 50s] /usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: :(.text+0x24a3): undefined reference to xcb_intern_atom_reply' [ 50s] /usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: <artificial>:(.text+0x27a9): undefined reference to
xcb_change_property'
[ 50s] /usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: :(.text+0x28bb): undefined reference to `xcb_delete_property'
[ 50s] collect2: error: ld returned 1 exit status
This is the spec file:
%define _disable_ld_no_undefined 1 %define lname MauiKit
Name: mauikit-test Version: 2.1.2 Release: 0 License: LGPL-3.0 Summary: Kit for developing MAUI Apps Url: https://mauikit.org Source: %{name}-v%{version}.tar.gz
BuildRequires: cmake BuildRequires: extra-cmake-modules
BuildRequires: cmake(KF5Config) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5Notifications) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(KF5WindowSystem) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt5Qml) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5X11Extras) BuildRequires: cmake(Qt5QuickControls2) BuildRequires: pkgconfig BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xcb-atom) BuildRequires: pkgconfig(xproto) BuildRequires: pkgconfig(xcb-icccm) BuildRequires: glibc BuildRequires: libstdc++6 BuildRequires: kirigami2 BuildRequires: libqt5-qtquickcontrols2 BuildRequires: libxcb-devel BuildRequires: xcb-proto-devel
%description Kit for developing MAUI Apps. MauiKit is a set of utilities and "templated" controls based on Kirigami and QCC2 that follow the ongoing work on the Maui HIG. It let you quickly create a Maui application and access utilities and widgets shared among the other Maui apps.
%package -n %{lname} Summary: Library files for MauiKit Group: System/Libraries Recommends: %{name} = %{version}
%description -n %{lname} Kit for developing MAUI Apps. MauiKit is a set of utilities and "templated" controls based on Kirigami and QCC2 that follow the ongoing work on the Maui HIG. It let you quickly create a Maui application and access utilities and widgets shared among the other Maui apps.
%package devel Summary: Development package for MauiKit Group: Development/Libraries/KDE Requires: %{lname} = %{version} Requires: %{name} = %{version}
%description devel Kit for developing MAUI Apps. MauiKit is a set of utilities and "templated" controls based on Kirigami and QCC2 that follow the ongoing work on the Maui HIG. It let you quickly create a Maui application and access utilities and widgets shared among the other Maui apps.
%prep %setup -q -n mauikit-v%{version}
%build %cmake_kf5 -d build %cmake_build
%install %kf5_makeinstall -C build
%post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig
%files %{_kf5_libdir}/qt5/qml/org/mauikit/* %{_kf5_libdir}/qt5/qml/QtQuick/Controls.2/maui-style %{_datadir}/org.mauikit.controls
%files -n %{lname} %license LICENSES/* %{_kf5_libdir}/libMauiKit.so.*
%files devel %{_kf5_libdir}/libMauiKit.so %{_kf5_libdir}/cmake/MauiKit %{_kf5_includedir}/MauiKit