MrGlockenspiel / activate-linux

The "Activate Windows" watermark ported to Linux
GNU General Public License v3.0
4.25k stars 91 forks source link

Ubuntu 20.04 #148

Closed eddelbuettel closed 1 year ago

eddelbuettel commented 1 year ago

I just updated the PPA builds, and 22.04 ("jammy") built fine. For 20.04 ("focal") I got this error. Any idea?

LINK     log.o draw.o i18n.o color.o activate_linux.o wayland/wayland.o x11/x11.o wayland/wlr-layer-shell-unstable-v1.o wayland/xdg-shell.o x11/XEventTypes.o
/usr/bin/ld: obj/wayland/wayland.o: in function `anonymous_shm_open':
wayland.c:(.text+0x219): undefined reference to `shm_open'
/usr/bin/ld: wayland.c:(.text+0x23c): undefined reference to `shm_unlink'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:78: activate-linux] Error 1

Seems like it is missing a -lrt instruction. Is that biting anyone else and/or other build instructions?

eddelbuettel commented 1 year ago

Adding -lrt to LDFLAGS fixed it.

jcontoso commented 1 year ago

We should close this.