fontconfig/fontconfig.h 在代码块中找不到

fontconfig/fontconfig.h not found in Codeblocks

我正在尝试在 Ubuntu 14 中的 Codeblocks IDE 中构建 Cocos2d-x 项目。我找不到 fontconfig/fontconfig.h编译时出错。我被困在这里了。我该如何解决?

问题是您缺少包 libfontconfig1-dev。从命令行 运行 执行以下命令:

sudo apt-get install libfontconfig1-dev

或者如果您更喜欢图形化方法,请使用软件中心并搜索包。