I found that I can compile a wayland client.
The example above requires:
# pkg install ImageMagick7
# pkg install wayland-protocols
The usual edits to the Makefile apply - add "-I/usr/local/include" and "-L/usr/local/lib" to CFLAGS. Throw in a "-lwayland-client" for good measure.
Well - it compiles and links.
When I run it, I get two errors:
error: XDG_RUNTIME_DIR not set in the environment.
failed to create display.
I confess my total ignorance of how wayland works. "apropos wayland" offers no help. How do I get a wayland compositor up and running?
GitHub - emersion/hello-wayland: A hello world Wayland client (mirror)
A hello world Wayland client (mirror). Contribute to emersion/hello-wayland development by creating an account on GitHub.
github.com
The example above requires:
# pkg install ImageMagick7
# pkg install wayland-protocols
The usual edits to the Makefile apply - add "-I/usr/local/include" and "-L/usr/local/lib" to CFLAGS. Throw in a "-lwayland-client" for good measure.
Well - it compiles and links.
When I run it, I get two errors:
error: XDG_RUNTIME_DIR not set in the environment.
failed to create display.
I confess my total ignorance of how wayland works. "apropos wayland" offers no help. How do I get a wayland compositor up and running?