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