Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile on FreeBSD #30

Closed
rodyaj opened this issue Dec 28, 2015 · 2 comments
Closed

How to compile on FreeBSD #30

rodyaj opened this issue Dec 28, 2015 · 2 comments

Comments

@rodyaj
Copy link

rodyaj commented Dec 28, 2015

I installed GNU make and run gmake, but compilation fails with:

CC util.c
util.c:4:10: fatal error: 'xcb/xcb.h' file not found
#include <xcb/xcb.h>
         ^
1 error generated.
Makefile:37: recipe for target 'util.o' failed
gmake: *** [util.o] Error 1

So I tried to export INCLUDEDIR as /usr/local/include. Also ran gmake -I /usr/local/include. And tried PREFIX=/usr/local.

I have xcb and libxcb packages installed. xcb.h exists in /usr/local/include/xcb

@dcat
Copy link
Member

dcat commented Dec 28, 2015

Edit config.mk
And add
-I/usr/local/include to CFLAGS
And -L/usr/local/lib to LDFLAGS

@rodyaj
Copy link
Author

rodyaj commented Dec 28, 2015

Thanks. Fixed.

@rodyaj rodyaj closed this as completed Dec 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants