| 1 |
Using FTGL and Visual Studio |
| 2 |
============================ |
| 3 |
|
| 4 |
FTGL on windows can be built a ether a dynamic link library (DLL) with export |
| 5 |
lib (lib) or a static library (lib). All files will be built in the "build" |
| 6 |
subdirectory that will be created in this directory. |
| 7 |
|
| 8 |
FTGL requires the Freetype2 library (version 2.3.9). |
| 9 |
|
| 10 |
Set up FreeType2 |
| 11 |
---------------- |
| 12 |
|
| 13 |
You will need to download the FreeType sources from http://www.freetype.org/, |
| 14 |
or directly from git://git.sv.nongnu.org/freetype/freetype2.git if you have |
| 15 |
installed Git. |
| 16 |
|
| 17 |
Open the Visual Studio solution and build FreeType. |
| 18 |
|
| 19 |
Finally, define the FREETYPE environment variable to the full path to your |
| 20 |
FreeType sources, eg. C:\Users\john\Desktop\freetype |
| 21 |
|
| 22 |
Build FTGL |
| 23 |
---------- |
| 24 |
|
| 25 |
The "vc9" directory contains projects for use with Visual Studio 2008. The |
| 26 |
"vc8" directory contains projects for Visual Studio 2005. These projects can |
| 27 |
build both the dynamic and static libraries. |
| 28 |
|
| 29 |
The "vc71" directory contains projects for use with Visual C++ 2003 and can |
| 30 |
only build a dynamic library. It is no longer supported. |
| 31 |
|
| 32 |
Use FTGL |
| 33 |
-------- |
| 34 |
|
| 35 |
To use FTGL in your own projects you will need to link against either the |
| 36 |
static lib, or the DLL export lib. All builds use the multithreaded runtime. |
| 37 |
If built with the export lib, your project will need to ship with the |
| 38 |
FTGL .dll file in order to be usable. |
| 39 |
|
| 40 |
Your project will also need to include the freetype2 and OpenGL .dll files |
| 41 |
in order to be usable. |
| 42 |
|
| 43 |
For instructions on using Freetype go to www.freetype.org |
| 44 |
For instructions on using OpenGL go to www.opengl.org |