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