因搭配的软件需求,必须使用gtk2.0开发,
然后电脑的CPU是ivy bridge i5,
无法安装fedora 18以前的版本
但是fedora默认是使用gtk3.0
用yum找不到gtk+-2.0的package,
直接编译gtk+-2.0.20.1的版本,在make的时候会出现
io-png.c: In function “png_simple_error_callback”:
io-png.c:187:30: 错误:提领参照不完全类型的指标
io-png.c: In function “gdk_pixbuf__png_image_load”:
io-png.c:291:22: 错误:提领参照不完全类型的指标
io-png.c:345:32: 警告:传递参数 5 (属于 “png_get_iCCP”)时在不相容的指标类型
间转换 [enabled by default]
In file included from io-png.c:29:0:
/usr/include/png.h:2248:22: 附注:expected “png_bytepp” but argument is of
type “char **”
io-png.c: In function “gdk_pixbuf__png_image_begin_load”:
io-png.c:463:31: 错误:提领参照不完全类型的指标
io-png.c: In function “gdk_pixbuf__png_image_load_increment”:
io-png.c:535:31: 错误:提领参照不完全类型的指标
io-png.c: In function “png_info_callback”:
io-png.c:658:38: 警告:format “%ld” expects argument of type “long int”,
but argument 5 has type “png_uint_32” [-Wformat]
io-png.c:658:38: 警告:format “%ld” expects argument of type “long int”,
but argument 6 has type “png_uint_32” [-Wformat]
io-png.c:682:32: 警告:传递参数 5 (属于 “png_get_iCCP”)时在不相容的指标类型
间转换 [enabled by default]
In file included from io-png.c:29:0:
/usr/include/png.h:2248:22: 附注:expected “png_bytepp” but argument is of
type “char **”
io-png.c: In function “png_error_callback”:
io-png.c:773:30: 错误:提领参照不完全类型的指标
io-png.c: In function “png_warning_callback”:
io-png.c:780:22: 警告:variable “lc” set but not used
[-Wunused-but-set-variable]
io-png.c: In function “real_save_png”:
io-png.c:982:28: 错误:提领参照不完全类型的指标
io-png.c:1010:31: 警告:传递参数 5 (属于 “png_set_iCCP”) 给指标时目的与指标
有/无号不一致 [-Wpointer-sign]
In file included from io-png.c:29:0:
/usr/include/png.h:2255:15: 附注:expected “png_const_bytep” but argument
is of type “gchar *”
make[4]: *** [io-png.lo] Error 1
make[4]: Leaving directory `/root/下载/gtk+-2.20.1/gdk-pixbuf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/下载/gtk+-2.20.1/gdk-pixbuf'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/下载/gtk+-2.20.1/gdk-pixbuf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/下载/gtk+-2.20.1'
make: *** [all] Error 2
这样的错误讯息
请问有解吗@@