1
2Building libcaca
3
4   o  If you are using a Git or SVN checkout, you need to run the
5      bootstrap script in order to generate configure. This is not
6      necessary for official tarballs.
7
8   o  Run configure then make. Useful configure flags are:
9
10     --enable-ncurses: support for the ncurses library
11     --enable-slang: support for the SLang library
12     --enable-conio: support for MS-DOS conio.h
13     --enable-x11: support for native X11 rendering
14     --enable-gl: support for OpenGL rendering
15     --enable-win32: support for the Windows console
16     --enable-network: support for the network server
17
18     --disable-imlib2: remove Imlib2 support in cacaview
19
20     --disable-doc: do not build documentation
21
22   o  Cross-compilation examples:
23
24     ./configure --disable-imlib2 --host=i386-pc-msdosdjgpp
25
26     ./configure --disable-imlib2 --host=i586-mingw32msvc
27
28
29Using libcaca
30
31   o  Look into the src/ and test/ directories for source code examples.
32
33   o  Compiling a libcaca program is fairly simple:
34
35      gcc -c foobar.c -o foobar.o `pkg-config --cflags caca`
36      gcc foobar.o -o foobar `pkg-config --libs caca`
37
38