freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Included header files location


From: Dave Coventry
Subject: Re: [ft] Included header files location
Date: Tue, 23 Dec 2014 07:45:46 +0200

On 23 December 2014 at 06:54, J Decker <address@hidden> wrote:
> g++   -Ifreetype2  main.cpp  -lglut -lGLEW -lGL -o main

$ g++   -Ifreetype2  main.cpp  -lglut -lGLEW -lGL -o main
In file included from text.h:8:0,
                 from main.cpp:8:
/usr/include/freetype2/ft2build.h:37:29: fatal error:
config/ftheader.h: No such file or directory
 #include <config/ftheader.h>
                             ^
compilation terminated.

The ft2build.h is found, but it has "#include <config/ftheader.h>" and
the compiler cannot find this file because the "config" directory is
inside the "freetype2" directory.

If I show the compiler where the "config" directory is by linking to it

$ sudo  ln -s /usr/include/freetype2/config/ /usr/include/config

Then I get a slightly different error:

$ g++   -Ifreetype2  main.cpp  -lglut -lGLEW -lGL -o main
In file included from main.cpp:8:0:
text.h:9:23: fatal error: freetype.h: No such file or directory
 #include FT_FREETYPE_H
                       ^
compilation terminated.

(I included your suggestion of the "-Ifreetype2" parameter, but this
actually makes no difference)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]