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.

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 examples:
  10. ./configure --disable-imlib2 --host=i386-pc-msdosdjgpp
  11. ./configure --disable-imlib2 --host=i586-mingw32msvc
  12. Using libcaca
  13. o Look into the examples/ directory for simple source code examples.
  14. o Compiling a libcaca program is fairly simple:
  15. gcc -c foobar.c -o foobar.o `caca-config --cflags`
  16. gcc foobar.o -o foobar `caca-config --libs`
  17. o If you are writing a shared object that uses libcaca, either a
  18. dynamically loadable plug-in or a shared library, you should use
  19. the `--plugin-libs' flag for libcaca:
  20. gcc -fPIC -c libfoo.c -o libfoo.o `caca-config --cflags`
  21. gcc -shared libfoo.o -o libfoo.so `caca-config --plugin-libs`
  22. Binary packages
  23. o As the API is not stable yet, everyone should statically link libcaca
  24. with their programs or libraries. DO NOT DISTRIBUTE SHARED VERSIONS
  25. OF LIBCACA.