maintainer-feedback requested: [Bug 280047] x11/xcb-util-cursor : problem detecting these libraries on FreeBSD 13.2 and 14.1

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-x11 (Nobody)
<[email protected]> for maintainer-feedback:
Bug 280047: x11/xcb-util-cursor : problem detecting these libraries on FreeBSD
13.2 and 14.1
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280047



--- Description ---
Hello.

I wanted to try to run Wayland + KDE 6 plasma on FreeBSD 14.1. I've created the
following tutorial that unfortunately has some errors inside,since the project
does not work.

The steps that I have taken are the following :

1 - added user to the wheel and video groups :

sudo pw groupmod wheel video -m marietto

2 - sysrc :

sudo sysrc -f /etc/rc.conf kld_list+="nvidia-modeset nvidia-drm linux linux64
i915kms"

3 - installed the following packages :

==> pkg install --glob "plasma6-*"
==> pkg install --glob "kf6-*"
==> pkg install plasma-wayland-protocols plasma6-xdg-desktop-portal-kde
kf6-breeze-icons-6 kde6-devel

4- removed these packages :

pkg remove xdg-desktop-portal-wlr wlrobs grim slurp wlr-which-key
wayland-protocols wayfire wf-shell wayfire-plugins-extra

5 - created a startup script called start-kde6 :

#!/usr/local/bin/bash

[ -d $XDG_RUNTIME_DIR ] || mkdir -m 700 -p $XDG_RUNTIME_DIR

export $(dbus-launch)
exec dbus-launch --exit-with-session ck-launch-session startplasma-wayland

6 - made it executable :

chmod +x start-kde6

7 - rebooted the machine and logged in as normal user and ran the startup
script :

./start-kde6

I see the error below and it does not work :

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it
was found.
This application failed to start because no Qt platform plugin could be
initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, vkkhrdisplay, vnc, xcb,
wayland, wayland-egl.

qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the
Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it
was found.
This application failed to start because no Qt platform plugin could be
initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, vkkhrdisplay, vnc, xcb,
wayland, wayland-egl.

I read that this problem can be fixed by installing the package libxcb :

root@marietto:/home/marietto # pkg install libxcb

but in my case it is already installed :

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed

It may be a bug in detecting the library :

marietto@marietto:~ $ pkg info xcb-util-cursor

xcb-util-cursor-0.1.3
Name	       : xcb-util-cursor
Version        : 0.1.3
Installed on   : Wed Jun 26 00:33:59 2024 CEST
Origin	       : x11/xcb-util-cursor
Architecture   : FreeBSD:14:amd64
Prefix	       : /usr/local
Categories     : x11
Licenses       : MIT
Maintainer     : [email protected]
WWW	       : https://xcb.freedesktop.org/
Comment        : XCB cursor library
Shared Libs required:
	libxcb.so.1
	libxcb-shm.so.0
	libxcb-render.so.0
	libxcb-render-util.so.0
	libxcb-image.so.0
Shared Libs provided:
	libxcb-cursor.so.0
Annotations    :
	FreeBSD_version: 1400097
	build_timestamp: 2024-06-20T01:55:16+0000
	built_by       : poudriere-git-3.4.1-30-g79e3edcd
	port_checkout_unclean: no
	port_git_hash  : b3aa1ea86
	ports_top_checkout_unclean: no
	ports_top_git_hash: 57a5f006d
	repo_type      : binary
	repository     : FreeBSD
Flat size      : 53.8KiB

Description    :

The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension libraries.
These libraries provide convenience functions and interfaces which make the
raw X protocol more usable.  Some of the libraries also provide client-side
code which is not strictly part of the X protocol but which have traditionally
been provided by Xlib.
The util-cursor module implements the XCB cursor library, which is th XCB
replacement for libXcursor.

marietto@marietto:~ $ ls -l /usr/local/lib/libxcb-cursor*

-rw-r--r--  1 root wheel 28982 20 giu 03:55 /usr/local/lib/libxcb-cursor.a
lrwxr-xr-x  1 root wheel    22 20 giu 03:55 /usr/local/lib/libxcb-cursor.so ->
libxcb-cursor.so.0.0.0
lrwxr-xr-x  1 root wheel    22 20 giu 03:55 /usr/local/lib/libxcb-cursor.so.0
-> libxcb-cursor.so.0.0.0
-rwxr-xr-x  1 root wheel 19848 20 giu 03:55
/usr/local/lib/libxcb-cursor.so.0.0.0


I'm on FreeBSD 14.1 ; I don't have the exact requested packages. Please give a
look here : 

paste.ubuntu.com/p/7Krdtkvsw9 

There's a recent unanswered post on the FreeBSD forum which claims the library
is installed :

https://forums.freebsd.org/threads/qt6-from-6-5-0-xcb-cursor0-or-libxcb-cursor0
-is-needed.93191/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.