On 23 December 2014 at 06:54, J Decker <[email protected]> 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)

_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to