source: libcaca/trunk/README @ 223

Last change on this file since 223 was 223, checked in by Sam Hocevar, 16 years ago
  • NOTES: added information about colour support.
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1$Id: README 223 2003-11-27 09:38:16Z sam $
2
3Building libcaca
4
5   o  Run configure then make. Useful configure flags are:
6
7     --enable-slang: use the SLang library (default)
8     --enable-ncurses: use the ncurses library
9     --enable-conio: use MS-DOS conio.h
10
11   o  Cross-compilation example:
12 
13     ./configure --enable-conio --host=i386-pc-msdosdjgpp
14
15
16Using libcaca
17
18   o  Look into the examples/ directory for simple source code examples.
19
20   o  Compiling a libcaca program is fairly simple:
21
22      gcc -c foobar.c -o foobar.o `caca-config --cflags`
23      gcc foobar.o -o foobar `caca-config --libs`
24
25   o  If you are writing a shared object that uses libcaca, either a
26      dynamically loadable plug-in or a shared library, you should use
27      the `--plugin-libs' flag for libcaca:
28
29      gcc -fPIC -c libfoo.c -o libfoo.o `caca-config --cflags`
30      gcc -shared libfoo.o -o libfoo.so `caca-config --plugin-libs`
31
32
33Binary packages
34
35   o  As the API is not stable yet, everyone should statically link libcaca
36      with their programs or libraries. DO NOT DISTRIBUTE SHARED VERSIONS
37      OF LIBCACA.
38
Note: See TracBrowser for help on using the repository browser.