fabian0141
fabian0141

Reputation: 3

Can't get to run freetype in Qt

I am new to Qt and Ubuntu and I tried to follow the tutorial to install Freetype. But I guess something with missing flags causes the problem. So if it´s that what do I have to do?

When I do

#include <ft2build.h>

i get this error:

ft2build.h: No such file or directory

while when I do

#include <freetype2/ft2build.h>

I get this error:

freetype/config/ftheader.h: No such file or directory

and

-I/usr/include/freetype2

is what I get when I do

freetype-config --cflags

Upvotes: 0

Views: 692

Answers (1)

Marco
Marco

Reputation: 2020

Try to add:

INCLUDEPATH += "/usr/include/freetype2"

In your .pro file

Upvotes: 1

Related Questions