The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Make error (missing header file)

asked Sep 17 '15

quantim gravatar image

updated Sep 17 '15

Since I am using CentOS 7, I don't believe I can yum install i3 from the repository. So I am trying to build from source. I grabbed the i3-4.10.4 tar ball. However when I run make, I am told there is no such header file even though I can see it.

[fervor@localhost i3-4.10.4]$ pwd
/home/fervor/Downloads/i3-4.10.4

[fervor@localhost i3-4.10.4]$ make

[libi3] CC libi3/get_process_filename.c
In file included from libi3/get_process_filename.c:20:0: 
include/libi3.h:16:21: fatal error: xcb/xcb.h: No such file or directory
#include <xcb/xcb.h>
                 ^
compilation terminated.
make: *** [libi3/get_process_filename.o] Error 1

[fervor@localhost i3-4.10.4]$ ls include/ | grep xcb.h
xcb.h

Any thoughts? Am I just ignorant?

EDIT: Formatting

1 answer

Sort by » oldest newest most voted
0

answered Sep 17 '15

Airblader gravatar image

The xcb.h the compiler is looking for is not the xcb.h shipped by i3 (that's just unfortunate naming), but rather the XCB library. You need to find out what that package is called in your system and install it. You might have to repeat this process for other header files.

Since CentOS seems to be based on Fedora, it may be these:

libxcb-devel xcb-util-keysyms-devel xcb-util-devel xcb-util-wm-devel yajl-devel libXrandr-devel startup-notification-devel libev-devel xcb-util-cursor-devel libXinerama-devel libxkbcommon-devel libxkbcommon-x11-devel pcre-devel pango-devel git gcc

I also googled and found this: https://copr.fedoraproject.org/coprs/...

Comments

Thanks for your timely answer stranger.

quantim gravatar imagequantim (Sep 18 '15)edit

Question Tools

Stats

Asked: Sep 17 '15

Seen: 137 times

Last updated: Sep 17

Related questions