CFLAGS LDFLAGS pixman_CFLAGS pixman_LIBS CPPFLAGS PKG_CONFIG_PATH 我全部都设置了的
./configure也没报错
make 的时候就一大堆错误:
[dongsong@localhost cairo-1.7.6]$ make
make all-recursive
make[1]: Entering directory `/home/dongsong/soft/cairo-1.7.6'
Making all in src
make[2]: Entering directory `/home/dongsong/soft/cairo-1.7.6/src'
make all-am
make[3]: Entering directory `/home/dongsong/soft/cairo-1.7.6/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libpng12 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -I/usr/local/include -L/usr/local/include -MT cairo-analysis-surface.lo -MD -MP -MF .deps/cairo-analysis-surface.Tpo -c -o cairo-analysis-surface.lo cairo-analysis-surface.c
gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libpng12 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -I/usr/local/include -L/usr/local/include -MT cairo-analysis-surface.lo -MD -MP -MF .deps/cairo-analysis-surface.Tpo -c cairo-analysis-surface.c -fPIC -DPIC -o .libs/cairo-analysis-surface.o
在包含自 cairo-analysis-surface.c:37 的文件中:
cairoint.h:67:20: 错误:pixman.h:没有那个文件或目录
In file included from cairo-analysis-surface.c:37:
cairoint.h:173: 错误:expected ‘)’ before ‘mask’
cairoint.h:202: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpu_to_be16’
cairoint.h:208: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘be16_to_cpu’
cairoint.h:214: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpu_to_be32’
cairoint.h:220: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘be32_to_cpu’
In file included from cairo-analysis-surface.c:37:
cairoint.h:797: 错误:expected specifier-qualifier-list before ‘pixman_format_code_t’
cairoint.h:1972: 错误:expected ‘)’ before ‘*’ token
cairoint.h:1977: 错误:expected declaration specifiers or ‘...’ before ‘pixman_format_code_t’
cairoint.h:1980: 错误:expected ‘)’ before ‘pixman_format’
cairoint.h:1985: 错误:expected declaration specifiers or ‘...’ before ‘pixman_format_code_t’
cairoint.h:2157: 错误:expected declaration specifiers or ‘...’ before ‘pixman_transform_t’
In file included from cairoint.h:2325,
from cairo-analysis-surface.c:37:
cairo-region-private.h:48: 错误:expected specifier-qualifier-list before ‘pixman_region32_t’
cairo-region-private.h:109: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_cairo_region_contains_rectangle’
cairo-analysis-surface.c: In function ‘_cairo_analysis_surface_add_operation’:
cairo-analysis-surface.c:186: 错误:隐式声明函数 ‘_cairo_region_contains_rectangle’
cairo-analysis-surface.c:186: 警告:对 ‘_cairo_region_contains_rectangle’ 的嵌套的外部声明
cairo-analysis-surface.c:186: 错误:‘PIXMAN_REGION_IN’ 未声明 (在此函数内第一次使用)
cairo-analysis-surface.c:186: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
cairo-analysis-surface.c:186: 错误:所在的函数内只报告一次。)
cairo-analysis-surface.c:197: 错误:‘PIXMAN_REGION_OUT’ 未声明 (在此函数内第一次使用)
make[3]: *** [cairo-analysis-surface.lo] 错误 1
make[3]: Leaving directory `/home/dongsong/soft/cairo-1.7.6/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/home/dongsong/soft/cairo-1.7.6/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/dongsong/soft/cairo-1.7.6'
make: *** [all] 错误 2
11 个解决方案
#1
这种一般是需要安装开发用的那个包吧,装cairo-devel再试试
#2
说错了,是装pixman-devel
#3
pixman-devel我的确没有装 不过应该不会是这个问题吧 是我就冤死了 整个下午都在设置环境变量什么的 开始的时候./configure报错 说找不到pixman 我设了环境变量就过去了 但是make时又出错 我明天把pixman-devel装上看有没有效果
#4
我也认为是缺少pixman-devel这个包 从源码安装的时候 经常会遇到依赖包的问题 特别是通过rpm包的时候更容易出现
#5
刚才用rpm安装pixman-devel 又有几个包没找到 不过我重新安装过pixman后 再安装cairo居然莫名其妙的过了 只是./configure出了几个警告 make install有一个错误被系统自动忽略了
#6
怎么没人应啊?我的gtk还没装上呢,昨天装那些包都是装gtk要依赖的
现在装gtk+又有麻烦了 ./configure --prefix=/usr/gtk --exec-prefix=/usr/gtk 过了
make的时候出错:
...
ES -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -I/usr/local/include -Wall -MT gdkpango.lo -MD -MP -MF .deps/gdkpango.Tpo -c gdkpango.c -fPIC -DPIC -o .libs/gdkpango.o
gdkpango.c: In function ‘gdk_pango_renderer_draw_shape’:
gdkpango.c:324: 错误:‘PangoCairoShapeRendererFunc’ 未声明 (在此函数内第一次使用)
gdkpango.c:324: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
gdkpango.c:324: 错误:所在的函数内只报告一次。)
gdkpango.c:324: 错误:expected ‘;’ before ‘shape_renderer’
gdkpango.c:334: 错误:‘shape_renderer’ 未声明 (在此函数内第一次使用)
gdkpango.c:334: 警告:隐式声明函数 ‘pango_cairo_context_get_shape_renderer’
gdkpango.c:350: 警告:隐式声明函数 ‘shape_renderer’
make[4]: *** [gdkpango.lo] 错误 1
make[4]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2'
make: *** [all] 错误 2
现在装gtk+又有麻烦了 ./configure --prefix=/usr/gtk --exec-prefix=/usr/gtk 过了
make的时候出错:
...
ES -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -I/usr/local/include -Wall -MT gdkpango.lo -MD -MP -MF .deps/gdkpango.Tpo -c gdkpango.c -fPIC -DPIC -o .libs/gdkpango.o
gdkpango.c: In function ‘gdk_pango_renderer_draw_shape’:
gdkpango.c:324: 错误:‘PangoCairoShapeRendererFunc’ 未声明 (在此函数内第一次使用)
gdkpango.c:324: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
gdkpango.c:324: 错误:所在的函数内只报告一次。)
gdkpango.c:324: 错误:expected ‘;’ before ‘shape_renderer’
gdkpango.c:334: 错误:‘shape_renderer’ 未声明 (在此函数内第一次使用)
gdkpango.c:334: 警告:隐式声明函数 ‘pango_cairo_context_get_shape_renderer’
gdkpango.c:350: 警告:隐式声明函数 ‘shape_renderer’
make[4]: *** [gdkpango.lo] 错误 1
make[4]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2'
make: *** [all] 错误 2
#7
请路过的高手相助一把啊!!
#8
Just pass by!
#9
唉 以为不发帖问这种罕见的问题了 还是自己解决算了
结贴~~
#10
您好,这个在哪里下载?
#11
不记得了,google “XX download”就出来了吧。。。
#1
这种一般是需要安装开发用的那个包吧,装cairo-devel再试试
#2
说错了,是装pixman-devel
#3
pixman-devel我的确没有装 不过应该不会是这个问题吧 是我就冤死了 整个下午都在设置环境变量什么的 开始的时候./configure报错 说找不到pixman 我设了环境变量就过去了 但是make时又出错 我明天把pixman-devel装上看有没有效果
#4
我也认为是缺少pixman-devel这个包 从源码安装的时候 经常会遇到依赖包的问题 特别是通过rpm包的时候更容易出现
#5
刚才用rpm安装pixman-devel 又有几个包没找到 不过我重新安装过pixman后 再安装cairo居然莫名其妙的过了 只是./configure出了几个警告 make install有一个错误被系统自动忽略了
#6
怎么没人应啊?我的gtk还没装上呢,昨天装那些包都是装gtk要依赖的
现在装gtk+又有麻烦了 ./configure --prefix=/usr/gtk --exec-prefix=/usr/gtk 过了
make的时候出错:
...
ES -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -I/usr/local/include -Wall -MT gdkpango.lo -MD -MP -MF .deps/gdkpango.Tpo -c gdkpango.c -fPIC -DPIC -o .libs/gdkpango.o
gdkpango.c: In function ‘gdk_pango_renderer_draw_shape’:
gdkpango.c:324: 错误:‘PangoCairoShapeRendererFunc’ 未声明 (在此函数内第一次使用)
gdkpango.c:324: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
gdkpango.c:324: 错误:所在的函数内只报告一次。)
gdkpango.c:324: 错误:expected ‘;’ before ‘shape_renderer’
gdkpango.c:334: 错误:‘shape_renderer’ 未声明 (在此函数内第一次使用)
gdkpango.c:334: 警告:隐式声明函数 ‘pango_cairo_context_get_shape_renderer’
gdkpango.c:350: 警告:隐式声明函数 ‘shape_renderer’
make[4]: *** [gdkpango.lo] 错误 1
make[4]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2'
make: *** [all] 错误 2
现在装gtk+又有麻烦了 ./configure --prefix=/usr/gtk --exec-prefix=/usr/gtk 过了
make的时候出错:
...
ES -DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -I/usr/local/include -Wall -MT gdkpango.lo -MD -MP -MF .deps/gdkpango.Tpo -c gdkpango.c -fPIC -DPIC -o .libs/gdkpango.o
gdkpango.c: In function ‘gdk_pango_renderer_draw_shape’:
gdkpango.c:324: 错误:‘PangoCairoShapeRendererFunc’ 未声明 (在此函数内第一次使用)
gdkpango.c:324: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
gdkpango.c:324: 错误:所在的函数内只报告一次。)
gdkpango.c:324: 错误:expected ‘;’ before ‘shape_renderer’
gdkpango.c:334: 错误:‘shape_renderer’ 未声明 (在此函数内第一次使用)
gdkpango.c:334: 警告:隐式声明函数 ‘pango_cairo_context_get_shape_renderer’
gdkpango.c:350: 警告:隐式声明函数 ‘shape_renderer’
make[4]: *** [gdkpango.lo] 错误 1
make[4]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2/gdk'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/dongsong/soft/gtk+-2.18.2'
make: *** [all] 错误 2
#7
请路过的高手相助一把啊!!
#8
Just pass by!
#9
唉 以为不发帖问这种罕见的问题了 还是自己解决算了
结贴~~
#10
您好,这个在哪里下载?
#11
不记得了,google “XX download”就出来了吧。。。