Wayland on Ubuntu 22.04 (FLTK1.4)

451 views
Skip to first unread message

Gonzalo Garramuño

unread,
Dec 2, 2022, 9:18:40 AM12/2/22
to fltkg...@googlegroups.com
I installed what I presumed were the wayland packages:

$ sudo apt install waylandpp-dev

Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes adicionales:
  libpugixml1v5 libwayland-client++0 libwayland-client-extra++0
  libwayland-cursor++0 libwayland-egl++0 wayland-scanner++
Se instalarán los siguientes paquetes NUEVOS:
  libpugixml1v5 libwayland-client++0 libwayland-client-extra++0
  libwayland-cursor++0 libwayland-egl++0 wayland-scanner++ waylandpp-dev

However, when configuring FLTK with OPTION_USE_WAYLAND=ON, I get:

-- 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'
--   No package 'wayland-protocols' found
-- Checking for module 'xkbcommon'
--   No package 'xkbcommon' found
-- Checking for module 'dbus-1'
--   No package 'dbus-1' found
-- Not all software modules 'wayland-client wayland-cursor
wayland-protocols xkbcommon dbus-1' are present.


imm

unread,
Dec 2, 2022, 10:13:14 AM12/2/22
to fltkg...@googlegroups.com
On Fri, 2 Dec 2022 at 14:18, Gonzalo Garramuño wrote:
>
> I installed what I presumed were the wayland packages:
>
> $ sudo apt install waylandpp-dev

Hmm, I don't think that's it...

On this WSL2/WSLg setup running Ubuntu (effectively 22.04 AFAIK) I have...

$ apt search wayland | grep wayland | grep install

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libwayland-bin/jammy-updates,jammy-security,now 1.20.0-1ubuntu0.1
amd64 [installed,automatic]
libwayland-client0/jammy-updates,jammy-security,now 1.20.0-1ubuntu0.1
amd64 [installed]
libwayland-cursor0/jammy-updates,jammy-security,now 1.20.0-1ubuntu0.1
amd64 [installed]
libwayland-dev/jammy-updates,jammy-security,now 1.20.0-1ubuntu0.1
amd64 [installed]
libwayland-egl1/jammy-updates,jammy-security,now 1.20.0-1ubuntu0.1
amd64 [installed,automatic]
libwayland-server0/jammy-updates,jammy-security,now 1.20.0-1ubuntu0.1
amd64 [installed,automatic]
wayland-protocols/jammy,now 1.25-1 all [installed]

Plus I had to add some dbus-1 dev stuff to appease cmake, and also
xinerama-dev, though cmake told me what to add so that was easy!

Not sure what else is needed, but I think that was all that was needed
beyond what the "normal" X11 build wanted...

Albrecht Schlosser

unread,
Dec 2, 2022, 10:45:20 AM12/2/22
to fltkg...@googlegroups.com
On 12/2/22 15:18 Gonzalo Garramuño wrote:
> I installed what I presumed were the wayland packages:
>
> $ sudo apt install waylandpp-dev

No, that's not correct, please see README.Wayland.txt, or ...

> However, when configuring FLTK with OPTION_USE_WAYLAND=ON, I get:
>
> -- 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'
> --   No package 'wayland-protocols' found
> -- Checking for module 'xkbcommon'
> --   No package 'xkbcommon' found
> -- Checking for module 'dbus-1'
> --   No package 'dbus-1' found
> -- Not all software modules 'wayland-client wayland-cursor
> wayland-protocols xkbcommon dbus-1' are present.

See the last line above which packages you need. Just install these and
try again. If this doesn't work, please report here again so we can
update the CMake files and/or the documentation.


Gonzalo Garramuño

unread,
Dec 2, 2022, 10:51:12 AM12/2/22
to fltkg...@googlegroups.com

El 2/12/22 a las 12:45, Albrecht Schlosser escribió:
> On 12/2/22 15:18 Gonzalo Garramuño wrote:
>> I installed what I presumed were the wayland packages:
>>
>> $ sudo apt install waylandpp-dev
>
> No, that's not correct, please see README.Wayland.txt, or ...

Doh!  Read the docs, dumb***!

Reply all
Reply to author
Forward
0 new messages