Contents of ft2build.h doesn't seem correct

Asked by BradDaBug

According to the FreeType 2 docs, the proper way to include the FreeType headers looks like this:

#include <ft2build.h>
#include FT_FREETYPE_H

Yet whenever I include ft2build.h I get an error that says "freetype/config/ftheader.h" could not be found. That file exists in "/usr/include/freetype2/config," and the command "freetype-config --cflags" returns "-I/usr/include/freetype2".

It seems like the path inside ft2build.h is incorrect. ft2build.h currently includes "freetype/config/ftheader.h", but it seems like it should be "freetype2/config/ftheader.h".

Is this a bug, or am I doing something stupid?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu freetype Edit question
Assignee:
No assignee Edit question
Solved by:
BradDaBug
Solved:
Last query:
Last reply:
Revision history for this message
BradDaBug (braddabug) said :
#1

Never mind. Everything works when you actually give g++ the output of pkg-config...