File: INSTALL

package info (click to toggle)
ftgl 2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,540 kB
  • sloc: cpp: 17,918; sh: 1,073; ansic: 644; makefile: 376
file content (72 lines) | stat: -rw-r--r-- 2,652 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
FTGL Version 2.0.5

This project will build a static library (archive) in the src directory.

The Makefiles need GNU Make in order to work properly.

The easiest way to start is to try autogen.

    $ ./autogen.sh

If this completes successfully, it means that the system was able to
deduce the location of all prerequisites. Next, configure the makefiles

    $ ./configure

This will configure the default build configuration with a target install
directory of /usr/local. This is adequate for most users.

FTGL requires the Freetype2 library (version 2.0.9 or later) and OpenGL
(glu version 1.2 or later). If these libraries cannot be found by autogen,
you can pass flags to the configure script to point it to the place where
these libraries are installed, like this:

    $ ./configure --with-gl-inc=/usr/local/include \
                  --with-gl-lib=/usr/local/lib

Should you need anything more complicated that that, try with:

    $ ./configure --with-gl-inc=/usr/local/include \
                  --with-gl-lib="-L/weird/location -lGL -lX11 -lXi -lXm"

The same thing goes for the GLUT library.  This is optional and is only
needed to build the demo program.  Should any of this fail, please send
an email to mmagallo@debian.org (please include FTGL somewhere in the
subject line) and include a copy of the config.log file that was left
behind.

Once the build is configured, simple run make

    $ make

To install the library, you will probably require superuser permission:

    $ sudo make install

If doxygen is installed, documentation in HTML format will be generated
in the docs subdirectory.

To use FTGL in your own projects you will need to link against this lib
and include the FTGL headers located in the src directory. Your project
will also need Freetype and OpenGL.  For your convinience a pkg-config
metadata file has been included (ftgl.pc) and gets installed in
<libdir>/pkgconfig, where pkg-config should be able to find it.  In
order to take advantage of this, just include something like this in
your makefiles:

    FTGL_CPPFLAGS := $(shell pkg-config --cflags ftgl)
    FTGL_LDFLAGS  := $(shell pkg-config --libs-only-L ftgl)
    FTGL_LIBS     := $(shell pkg-config --libs-only-l ftgl)

The names of these variables should be self-explanatory.  Note that
FTGL_LIBS will include -lGL, you shouldn't specify that flag separately.

For instructions on using Freetype go to http://www.freetype.org/
For instructions on using OpenGL go to http://www.opengl.org/

Please contact me if you have any suggestions, feature requests, or
problems.

Henry Maddocks
henryj@paradise.net.nz
http://homepages.paradise.net.nz/henryj/