简体   繁体   中英

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

Try to add:

INCLUDEPATH += "/usr/include/freetype2"

In your .pro file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM