Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $Id$
  2. Building libcaca
  3. o Run configure then make. Useful configure flags are:
  4. --enable-ncurses: support for the ncurses library
  5. --enable-slang: support for the SLang library
  6. --enable-conio: support for MS-DOS conio.h
  7. --enable-x11: support for native X11 rendering
  8. --disable-imlib2: remove Imlib2 support in cacaview
  9. o Cross-compilation example:
  10. ./configure --disable-imlib2 --host=i386-pc-msdosdjgpp
  11. Using libcaca
  12. o Look into the examples/ directory for simple source code examples.
  13. o Compiling a libcaca program is fairly simple:
  14. gcc -c foobar.c -o foobar.o `caca-config --cflags`
  15. gcc foobar.o -o foobar `caca-config --libs`
  16. o If you are writing a shared object that uses libcaca, either a
  17. dynamically loadable plug-in or a shared library, you should use
  18. the `--plugin-libs' flag for libcaca:
  19. gcc -fPIC -c libfoo.c -o libfoo.o `caca-config --cflags`
  20. gcc -shared libfoo.o -o libfoo.so `caca-config --plugin-libs`
  21. Binary packages
  22. o As the API is not stable yet, everyone should statically link libcaca
  23. with their programs or libraries. DO NOT DISTRIBUTE SHARED VERSIONS
  24. OF LIBCACA.