linux - 不能在 Linux 上包含自由类型 header

标签 linux ubuntu include freetype linux-mint

#include <ft2build.h>
#include FT_FREETYPE_H
int main() {
    return 0;
}

这是编译器的输出:

In file included from fonttest.cpp:1:
/usr/include/ft2build.h:56:10: fatal error: 'freetype/config/ftheader.h' file not found
#include <freetype/config/ftheader.h>
     ^
1 error generated.

我关注 the official tutorial .

我已经安装了软件包:

i   libfreetype6        - FreeType 2 font engine, shared library files                  
i A libfreetype6:i386   - FreeType 2 font engine, shared library files                  
i   libfreetype6-dev    - FreeType 2 font engine, development files     

文件 /usr/include/freetype2/freetype/config/ftheader.h 在那里。

最佳答案

如果外面有人在挣扎,你可以试试

sudo apt-get install libfreetype6-dev

关于linux - 不能在 Linux 上包含自由类型 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21213380/

相关文章:

linux - 基于唯一 ID 转置数据 - awk

ruby - 如何使用 rbenv 配置 bash 环境?

eclipse 不适用于 ubuntu 16.04

c++ - 设置项目根?

javascript - laravel包含基于语言的js脚本

linux - 这是关于具有一个源和多个目标的 Linux 软链接(soft link) :)

c - 如何在 Linux 中获取本地(区域)日期格式?

linux - 在有限的 shell 中列出文件和文件夹层次结构

ubuntu 16.04.1 LTS 在启动 android 模拟器时崩溃

php - 不同的 php 按日期包含