0

我试图将 pango-1.4.1 包安装到我的 Linux 机器上(gtk+-2.0 lib 的先决条件)。使用的发行版是:

CentOS release 5.9 (Final)
Linux 2.6.18-274.18.1.el5 #1 SMP Thu Feb 9 12:45:52 EST 2012 i686 i686 i386 GNU/Linux

我在这台机器上没有 root 权限我只是一个简单的用户。我尝试从 tar.gz 安装此软件包,并使用 ./configure --prefix 定义所需的目标文件夹(因此我对该目录具有写权限),在 ./configure 命令之后,我尝试使用 make 构建 pango,但是我收到以下错误和警告:

ftxopen.c:23:10: error: #include expects "FILENAME" or <FILENAME>
ftxopen.c:24:10: error: #include expects "FILENAME" or <FILENAME>
ftxopen.c:25:10: error: #include expects "FILENAME" or <FILENAME>
ftxopen.c: In function 'Load_LangSys':
ftxopen.c:44: warning: implicit declaration of function 'FT_FRAME_ENTER'
ftxopen.c:47: warning: implicit declaration of function 'FT_GET_USHORT'
ftxopen.c:51: warning: implicit declaration of function 'FT_FRAME_EXIT'
ftxopen.c:55: warning: implicit declaration of function 'FT_SET_ERROR'
ftxopen.c:55: warning: implicit declaration of function 'FT_MEM_ALLOC_ARRAY'
ftxopen.c:55: error: expected expression before 'FT_UShort'
ftxopen.c:60: warning: implicit declaration of function 'FT_FREE'
ftxopen.c:39: warning: unused variable 'memory'
ftxopen.c: In function 'Load_Script':
ftxopen.c:95: warning: implicit declaration of function 'FT_STREAM_POS'
ftxopen.c:107: warning: implicit declaration of function 'FT_STREAM_SEEK'
ftxopen.c:141: error: expected expression before 'TTO_LangSysRecord'
ftxopen.c:151: warning: implicit declaration of function 'FT_GET_ULONG'
ftxopen.c: In function 'Load_ScriptList':
ftxopen.c:225: error: expected expression before 'TTO_ScriptRecord'
ftxopen.c: In function 'Load_Feature':
ftxopen.c:322: error: expected expression before 'FT_UShort'
ftxopen.c:305: warning: unused variable 'memory'
ftxopen.c: In function 'Load_FeatureList':
ftxopen.c:374: error: expected expression before 'TTO_FeatureRecord'
ftxopen.c:376: error: expected expression before 'FT_UShort'
ftxopen.c: In function 'Load_Lookup':
ftxopen.c:611: error: expected expression before 'TTO_SubTable'
ftxopen.c: In function 'Load_LookupList':
ftxopen.c:709: error: expected expression before 'TTO_Lookup'
ftxopen.c:711: error: expected expression before 'FT_UShort'
ftxopen.c: In function 'Load_Coverage1':
ftxopen.c:798: error: expected expression before 'FT_UShort'
ftxopen.c:782: warning: unused variable 'memory'
ftxopen.c: In function 'Load_Coverage2':
ftxopen.c:847: error: expected expression before 'TTO_RangeRecord'
ftxopen.c:831: warning: unused variable 'memory'
ftxopen.c: In function 'Load_ClassDef1':
ftxopen.c:1086: error: expected expression before 'FT_UShort'
ftxopen.c:1059: warning: unused variable 'memory'
ftxopen.c: In function 'Load_ClassDef2':
ftxopen.c:1152: error: expected expression before 'TTO_ClassRangeRecord'
ftxopen.c:1131: warning: unused variable 'memory'
ftxopen.c: In function 'Load_ClassDefinition':
ftxopen.c:1206: error: expected expression before 'FT_Bool'
ftxopen.c:1203: warning: unused variable 'memory'
ftxopen.c: In function 'Load_EmptyClassDefinition':
ftxopen.c:1251: error: expected expression before 'FT_Bool'
ftxopen.c:1257: error: expected expression before 'FT_UShort'
ftxopen.c:1248: warning: unused variable 'memory'
ftxopen.c: In function 'Load_Device':
ftxopen.c:1433: error: expected expression before 'FT_UShort'
ftxopen.c:1408: warning: unused variable 'memory'

我想我没有任何依赖项,这里是带有版本号的已安装先决条件:

glib-2.13.3
atk-1.0.3
freetype2-9.16.3 (aka freetype-2.5.3)

能够安装 pango 非常重要。任何人都可以帮忙吗?

4

1 回答 1

0

在我看来,在列出的行中,ftxopen.c 中的#include 格式不正确。修复这些,可能大部分或所有报告的编译错误都会消失。

于 2013-07-23T15:15:10.447 回答