O'Reilly logo

D Web Development by Kai Nacke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an X11 GUI application

The X11 application draws rectangles and ellipses as well. The structure of the application is basically the same but the details vary. Xlib, the implementation library of X11, is not multithread-safe. The use of fibers here is a big win. The X11 GUI application that you will create now looks as follows:

Creating an X11 GUI application

Coding for X11 requires the development libraries. Depending on your operating system, you have to install them as follows:

  • On Ubuntu/Debian, you can install the required library with the following command:
    $ sudo apt-get install libx11-dev
    
  • On Fedora, you can type the following:
    $ sudo yum install –y libX11-dev
    

With ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required