Using XCB-based programs
Installation of XCB
TODO: These instructions are out of date. Just reference the main XCB page so we don't have to maintain these instructions in more than one place.
To build XCB from source, you need to have installed at least:
- pkgconfig 0.15.0
- automake 1.7
- autoconf 2.50
- check
- xsltproc
- gperf 3.0.1
You have to checkout in the git repository the following modules:
- Xau from xlibs
- xcb-proto
- xcb
Note that xcb-proto exists only to install header files, so typing 'make' or 'make all' will produce the message "Nothing to be done for 'all'". That's normal.
Compiling XCB-based programs
Compiling XCB-based programs requires linking them with the XCB library. This is easily done thanks to pkgconfig:
gcc -Wall prog.c -o prog `pkg-config --cflags --libs xcb`