The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
0

Make error (missing header file)

asked 2015-09-17 16:33:34 +0000

quantim gravatar image

updated 2015-09-17 16:42:35 +0000

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-17 16:49:40 +0000

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/...

edit flag offensive delete link more

Comments

Thanks for your timely answer stranger.

quantim gravatar imagequantim ( 2015-09-18 19:31:47 +0000 )edit

Question Tools

Stats

Asked: 2015-09-17 16:33:34 +0000

Seen: 137 times

Last updated: Sep 17

Related questions