Closed 0x4d6165 closed 5 years ago
Try letting pkg-config
handle it. config.mk
should look like this:
CFLAGS += -std=c99 -Wall -Wextra -O2 $(shell pkgconf --cflags xcb xcb-ewmh xcb-icccm xcb-randr xcb-keysyms)
LDFLAGS += -lm $(shell pkgconf --libs xcb xcb-ewmh xcb-icccm xcb-randr xcb-keysyms)
If there's any complain about pkgconf
not being available, replace it with pkg-config
.
Hmm well it looks like it started working but:
cc -O2 -pipe -std=c99 -Wall -Wextra -O2 -D__NAME__=\"windowchef\" -D__NAME_CLIENT__=\"waitron\" -D__THIS_VERSION__=\"\" -D__CONFIG_NAME__=\"windowchefrc\" -c wm.c
wm.c:4:10: fatal error: 'xcb/randr.h' file not found
#include <xcb/randr.h>
^~~~~~~~~~~~~
1 error generated.
*** Error 1 in /home/gigavinyl/labs/windowchef (<sys.mk>:87 'wm.o')
I'm still having this issue on NetBSD :(. It looks like xcb-randr is installed by default by libxcb or xcb since there's a libxcbrandr file in /usr/pkg/lib
Oop! Never mind got it working :)
It's mentioned in the README that OpenBSD users need to change the search paths in
config.mk
. Going off of what I normally have to do, I added this:This results in the error:
Removing the quotes from LDFLAGS (which I don't think is correct) results in:
What am I doing wrong?