--
You received this message because you are subscribed to a topic in the Google Groups "fltk.coredev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fltkcoredev/wZe2imZrBPk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fltkcoredev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/9840aa6f-ee66-4503-97b3-273b6327b206n%40googlegroups.com.
I should probably have also noted that the Pi is running the default Pi OS which is debian, basically.
My other Wayland testing has been on Ubuntu (also debian) and has worked OK, so I'm not clear why this is different.
On Sun, 11 Dec 2022, 17:53 imacarthur wrote:
This is maybe a long shot, and quite possibly no one knows, but...So I was testing Wayland on one of my Pi4 units, and it pretty much works.
But my attempts to build fltk with Wayland have not gone well - cmake always says:
-- Checking for module 'wayland-client'
-- No package 'wayland-client' found
-- Checking for module 'wayland-cursor'
-- No package 'wayland-cursor' found
-- Checking for module 'wayland-protocols'
-- Found wayland-protocols, version 1.20
-- Checking for module 'xkbcommon'
-- Found xkbcommon, version 1.0.3
-- Checking for module 'dbus-1'
-- Found dbus-1, version 1.12.24
-- Not all software modules 'wayland-client wayland-cursor wayland-protocols xkbcommon dbus-1' are present
-- Consequently, OPTION_USE_WAYLAND is set to OFF.
-- Found X11: /usr/include
I had a look with "apt search" and as best I can make out, these packages are installed, but the fltk cmake seems not to find them...Is there something else I need to add, or...?e.g.
$ apt search libdbus-1
$ apt list | egrep 'wayland-cursor|wayland-client' WARNING: apt does not have a stable CLI interface. Use with caution in scripts. libwayland-client++0/focal 0.2.5-2build1 amd64 libwayland-client-extra++0/focal 0.2.5-2build1 amd64 libwayland-client0/focal-updates,focal-security,now 1.18.0-1ubuntu0.1 amd64 [installed] libwayland-client0/focal-updates,focal-security,now 1.18.0-1ubuntu0.1 i386 [installed,automatic] libwayland-cursor++0/focal 0.2.5-2build1 amd64 libwayland-cursor0/focal-updates,focal-security,now 1.18.0-1ubuntu0.1 amd64 [installed] libwayland-cursor0/focal-updates,focal-security,now 1.18.0-1ubuntu0.1 i386 [installed,automatic]Did you look at README.Wayland.txt, and did you try to install all packages listed there?
[...] - libpango1.0-dev - libwayland-dev - wayland-protocols - libdbus-1-dev - libxkbcommon-dev - libgtk-3-dev <== highly recommended, gives windows a GTK-style titlebar - libglew-dev <== necessary to use OpenGL version 3 or above [...]
On 12/11/22 19:06 imm wrote:
libdbus-1 is probably a bad example because it /is/ found according to your log.
You should look for 'wayland-client' and 'wayland-cursor' which are /not/ found.
In such cases I use `apt list` which lists installed packages rather than `apt search`. I don't know if this helps but following is the search I would do with output from my normal Linux system. My raspi hasn't been updated for a while and I didn't try to build fltk/wayland on it yet.
Did you look at README.Wayland.txt, and did you try to install all packages listed there?(Sorry, just to be sure, I assume you did!)
OK, here's what "apt list" reports...
$ apt list | egrep 'wayland-cursor|wayland-client'
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libwayland-client++0/stable 0.2.8-1 armhf
libwayland-client-extra++0/stable 0.2.8-1 armhf
libwayland-client0/stable,now 1.18.0-2~exp1.1 armhf [installed]
libwayland-cursor++0/stable 0.2.8-1 armhf
libwayland-cursor0/stable,now 1.18.0-2~exp1.1 armhf [installed]
qml-module-qtwayland-client-texturesharing/stable 5.15.2-3 armhf
So I think that means they are installed?
Wayland is not enabled by default even in recent Pi images, so if you want to test it you need to enable some "advanced" settings in raspi-config.
That said, it seems to work OK so far.
This is maybe a long shot, and quite possibly no one knows, but...So I was testing Wayland on one of my Pi4 units, and it pretty much works.But my attempts to build fltk with Wayland have not gone well - cmake always says:-- Checking for module 'wayland-client'
-- No package 'wayland-client' found
-- Checking for module 'wayland-cursor'
-- No package 'wayland-cursor' found
-- Checking for module 'wayland-protocols'
-- Found wayland-protocols, version 1.20
-- Checking for module 'xkbcommon'
-- Found xkbcommon, version 1.0.3
-- Checking for module 'dbus-1'
-- Found dbus-1, version 1.12.24
-- Not all software modules 'wayland-client wayland-cursor wayland-protocols xkbcommon dbus-1' are present
-- Consequently, OPTION_USE_WAYLAND is set to OFF.
-- Found X11: /usr/include
What do you get when you run these commandspkg-config --list | grep waylandandpkg-config --list | grep cursoron your Pi4 ?
For that, edit CMake/options.cmake, and add after lines 201-202 which arepkg_check_modules(WLDCLIENT wayland-client)
pkg_check_modules(WLDCURSOR wayland-cursor)thisset(WLDCLIENT_FOUND 1)set(WLDCURSOR_FOUND 1)and then use CMake again.
I'd say: we're progressing.
Very good progress indeed.Do you confirm that package libwayland-bin is not installed after libwayland-dev has been installed ?
Could you run the test/shape app with gdb and report the traceback at the point of crash, after having built FLTK with -g ?
Would it help to distill the findings of this thread into a README.rpi-wayland.txt
file?
This would probably help future users find what they're looking
for, so they don't
have to pick through threads for final results.
I suppose a lot of the details might be specific to particular
raspbian releases/dates,
in which case separate sections in the readme, most recent at the
top? e.g.
Raspbian
x.x / Winter
2023 - How To Configure
---------------------------------------------
..new stuff..
Raspbian y.y / Fall 2022 - How To
Configure
-------------------------------------------
..older stuff..
We probably do have "too many README" files, which might be a
reason not to do this,
but not sure how else to collect stuff like this, other than
perhaps an article on fltk.org.
Anyway, just a thought.
--
Greg Ercolano, er...@seriss.com Seriss Corporation Tel: +1 626-576-0010 ext.8 Fax: +1 626-576-0020 Cel: +1 310-266-8906 Skype: ercolano77 Rush Render Queue: http://seriss.com/rush/ 1A2 KSU Phone Systems: http://seriss.com/1a2-ksu/ Optical Printer Control: http://seriss.com/opcs/
Would it help to distill the findings of this thread into a README.rpi-wayland.txt file?
Le lundi 12 décembre 2022 à 19:17:13 UTC+1, erco a écrit :Would it help to distill the findings of this thread into a README.rpi-wayland.txt file?
I believe no, because this thread boils down to "Follow README.Wayland.txt and you're goodfor the RasPi too".