Fedora 18 安裝gtk 2.0建議 - Linux

By Harry
at 2014-10-06T21:57
at 2014-10-06T21:57
Table of Contents
因搭配的軟體需求,必須使用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
這樣的錯誤訊息
請問有解嗎@@
--
然後電腦的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
這樣的錯誤訊息
請問有解嗎@@
--
Tags:
Linux
All Comments

By Andy
at 2014-10-11T09:34
at 2014-10-11T09:34

By Oscar
at 2014-10-15T05:41
at 2014-10-15T05:41

By Rachel
at 2014-10-18T09:34
at 2014-10-18T09:34

By Zanna
at 2014-10-21T06:18
at 2014-10-21T06:18

By Victoria
at 2014-10-24T15:37
at 2014-10-24T15:37

By Irma
at 2014-10-26T00:02
at 2014-10-26T00:02

By Victoria
at 2014-10-28T05:17
at 2014-10-28T05:17

By Skylar DavisLinda
at 2014-10-31T22:19
at 2014-10-31T22:19

By Sandy
at 2014-11-05T01:06
at 2014-11-05T01:06

By Catherine
at 2014-11-07T03:00
at 2014-11-07T03:00

By Dora
at 2014-11-08T07:44
at 2014-11-08T07:44

By Ula
at 2014-11-12T12:30
at 2014-11-12T12:30

By Steve
at 2014-11-15T14:15
at 2014-11-15T14:15

By Adele
at 2014-11-19T15:17
at 2014-11-19T15:17

By David
at 2014-11-20T08:19
at 2014-11-20T08:19

By Annie
at 2014-11-23T10:31
at 2014-11-23T10:31
Related Posts
Compulab的Utilite

By Jacob
at 2014-10-06T11:58
at 2014-10-06T11:58
如何在這三種狀況下知道密碼???

By Kyle
at 2014-10-06T09:04
at 2014-10-06T09:04
請問在不同版本寫出來的程式可共用嗎?

By Audriana
at 2014-10-06T08:10
at 2014-10-06T08:10
Cross compile要燒錄的問題

By Caroline
at 2014-10-05T23:21
at 2014-10-05T23:21
squid通透代理瀏覽aspx網頁出了問題

By Lydia
at 2014-10-05T14:33
at 2014-10-05T14:33