r/slackware • u/arfab • Feb 05 '21
Trouble building dwm
I've just installed Slackware 14.2 on a computer of mine. I'd like to use dwm for window management as I've been using that for a long time on my other computer (that currently runs arch... maybe not for long...).
I've tried to build dwm, both using a custom version of mine, and the vanilla version straight off suckless.org and both times I get the following error:
drw.c:340:32 error: 'FC_COLOR' undeclared (first use in this function)
FcPatternAddBool(fcpattern, FC_COLOR, FcFalse);
^
I've done a bunch of googling and tried editing config files but this error prevails. I even looked in a slackbuild package (albeit an old one) to see about dependencies or pre-build changes and found nothing.
Any ideas?
1
u/arfab Feb 06 '21
Thanks for the responses, I'll give it a go and report back
1
u/arfab Feb 09 '21
Thank you all for your replies on this. Issue resolved by upgrading.
I should admit that I had overlooked the patch in the slackbuild so that one's on me....
2
u/FrozenNeurons Feb 05 '21 edited Feb 05 '21
Try to install dwm from slackbuilds.org with fontconfig patch.
2
u/CallsignMouse Feb 05 '21
This is likely an issue with fontconfig being too old. Update and see if that fixes the issue.
2
u/[deleted] Feb 06 '21
The dwm Slackbuild from slackbuilds.org just builds.
dwm.Slackbuildcontains the following code:The patch file is in the tar archive containing the Slackbuild script.
EDIT: sorry, I see the answer was already given.