[英]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. 我是Qt和Ubuntu的新手,所以我尝试按照教程安装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 在您的.pro文件中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.