File: README

package info (click to toggle)
libcaca 0.9-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,196 kB
  • ctags: 478
  • sloc: ansic: 5,750; sh: 3,544; makefile: 225
file content (43 lines) | stat: -rw-r--r-- 1,298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$Id: README 228 2004-01-09 09:51:53Z sam $

Building libcaca

   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

     --disable-imlib2: remove Imlib2 support in cacaview

   o  Cross-compilation examples:
 
     ./configure --disable-imlib2 --host=i386-pc-msdosdjgpp

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


Using libcaca

   o  Look into the examples/ directory for simple source code examples.

   o  Compiling a libcaca program is fairly simple:

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

   o  If you are writing a shared object that uses libcaca, either a
      dynamically loadable plug-in or a shared library, you should use
      the `--plugin-libs' flag for libcaca:

      gcc -fPIC -c libfoo.c -o libfoo.o `caca-config --cflags`
      gcc -shared libfoo.o -o libfoo.so `caca-config --plugin-libs`


Binary packages

   o  As the API is not stable yet, everyone should statically link libcaca
      with their programs or libraries. DO NOT DISTRIBUTE SHARED VERSIONS
      OF LIBCACA.