Skip to content

Using XCB-based programs


  1. 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:

    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.

  2. 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`