/Code/Angel/Libraries/FTGL/unix/README.txt

http://angel-engine.googlecode.com/ · Plain Text · 51 lines · 37 code · 14 blank · 0 comment · 0 complexity · 3f3d2415dff3a321dabf46cec36cd69e MD5 · raw file

  1. FTGL Version 2.0.5
  2. This project will build a static library (archive) in the src directory.
  3. The Makefiles need GNU Make in order to work properly.
  4. FTGL requires the Freetype2 library (version 2.0.9 or later) and OpenGL
  5. (glu version 1.2 or later). You can pass flags to the configure script
  6. to point it to the place where these libraries are installed, like this:
  7. $ ./configure --with-gl-inc=/usr/local/include \
  8. --with-gl-lib=/usr/local/lib
  9. Should you need anything more complicated that that, try with:
  10. $ ./configure --with-gl-inc=/usr/local/include \
  11. --with-gl-lib="-L/weird/location -lGL -lX11 -lXi -lXm"
  12. The same thing goes for the GLUT library. This is optional and is only
  13. needed to build the demo program. Should any of this fail, please send
  14. an email to mmagallo@debian.org (please include FTGL somewhere in the
  15. subject line) and include a copy of the config.log file that was left
  16. behind.
  17. If doxygen is installed, documentation in HTML format will be generated
  18. in the docs subdirectory.
  19. To use FTGL in your own projects you will need to link against this lib
  20. and include the FTGL headers located in the src directory. Your project
  21. will also need Freetype and OpenGL. For your convinience a pkg-config
  22. metadata file has been included (ftgl.pc) and gets installed in
  23. <libdir>/pkgconfig, where pkg-config should be able to find it. In
  24. order to take advantage of this, just include something like this in
  25. your makefiles:
  26. FTGL_CPPFLAGS := $(shell pkg-config --cflags ftgl)
  27. FTGL_LDFLAGS := $(shell pkg-config --libs-only-L ftgl)
  28. FTGL_LIBS := $(shell pkg-config --libs-only-l ftgl)
  29. The names of these variables should be self-explanatory. Note that
  30. FTGL_LIBS will include -lGL, you shouldn't specify that flag separately.
  31. For instructions on using Freetype go to http://www.freetype.org/
  32. For instructions on using OpenGL go to http://www.opengl.org/
  33. Please contact me if you have any suggestions, feature requests, or
  34. problems.
  35. Henry Maddocks
  36. henryj@paradise.net.nz
  37. http://homepages.paradise.net.nz/henryj/