Skip to content

cacalabs/libcaca

Building libcaca

   o  If you are using a Git or SVN checkout, you need to run the
      bootstrap script in order to generate configure. This is not
      necessary for official tarballs.

   o  Run configure then make. Useful configure flags are:

     --enable-ncurses: support for the ncurses library
     --enable-slang: support for the SLang library
     --enable-conio: support for MS-DOS conio.h
     --enable-x11: support for native X11 rendering
     --enable-gl: support for OpenGL rendering
     --enable-win32: support for the Windows console
     --enable-network: support for the network server

     --disable-imlib2: remove Imlib2 support in cacaview

     --disable-doc: do not build documentation

   o  Cross-compilation examples:

     ./configure --disable-imlib2 --host=i386-pc-msdosdjgpp

     ./configure --disable-imlib2 --host=i586-mingw32msvc


Using libcaca

   o  Look into the src/ and test/ directories for source code examples.

   o  Compiling a libcaca program is fairly simple:

      gcc -c foobar.c -o foobar.o `pkg-config --cflags caca`
      gcc foobar.o -o foobar `pkg-config --libs caca`