FTGL 2.1.2

 

Windows

1. Open the ftgl-2.1.2\win32_vcpp\ftgl.dsw project in the corresponding version of VS and convert the latter.

2. Select Release MT solution configuration.

3. In Solution Explorer set ftgl_dll as the StartUp project.

4. Select Properties->General->Configuration Type->DynamicLibrary (.dll)

 

 

5. Select Properties->С/C++->General->Additional Include Directories.

…and a path to ftgl and freetype products include files.

 

You should define the includes strictly in the following order.

..\include

..\...\include

freetype-2.3.7\include

freetype-2.3.7\include\freetype

 

 

6. Select Properties->Linker->General->Additional Library Directories.

7. Include the path to the FreeType static library freetype237MT.lib (\freetype-2.3.7-source\objs) built earlier.

 

 

8. Select Project-> Properties ->Linker->Input-> Additional Dependencies.

9. Include the FreeType static library freetype237MT.lib to the list of additional libraries.

 

 

10. Select Properties->Linker->Advanced->Import Library.

11. Define the name of the ftgl library as ftgl_dynamic_MTD.lib

 

 

12. Select Project->Linker->General->OutputFile.

13. Please check that the name of the ftgl dynamic library is ftgl_dynamic_MTD.dll. It is important because this name is defined in Open CASCADE Technology projects.

 

 

14. Select Project->Properties->C/C++ ->Code Generation->Runtime Library-> Multi-threaded DLL (/MD).

 

 

15. Start the compilation.

You have built ftgl_dynamic_MTD and ftgl_dynamic_MTD.lib libraries located in the ftgl-2.1.2-source\win32_vcpp\build folder.

 

Compilation in 64 bit mode

Using the Configuration manager add the x64 solution platform to Release MT Active solution configuration by copying the settings from Win32.

 

 

Select Project->Properties->C/C++->->Advanced->Calling Convention-> __fastcall(/Gr)

 

 

Attention:

During the compilation on VS 2005 please make sure that VS directories are defined to 64 bit configuration.

 

Linux

cd <FTGL_SRC_DIR>/unix

./configure --enable-shared=yes

            --with-freetype-prefix=<FREETYPE_INSTALL_DIR>

            --prefix=<FTGL_INSTALL_DIR>

make

make install

 

Remarks:

--with-freetype-prefix – path where freetype was installed

--enable-shared – building of shared libraries

 

Attention:

The FTGL manual gives the key “with-ft-prefix”. It is wrong, You must use the key “--with-freetype-prefix”.