我正在尝试将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非常重要。有人可以帮忙吗?
最佳答案
在我看来,ftxopen.c中所列行中的#include格式不正确。修复这些错误,可能会报告的大多数或所有其他其余编译错误会消失。