2013-02-22 160 views
1

編譯GTK + -3.7.10中的Mac OSX 10.7.5,總是收到錯誤:'CAIRO_GOBJECT_TYPE_SURFACE' 未申報

In file included from gdkwindow.c:28: 
/usr/local/include/cairo/cairo-gobject.h:183:3: error: #error Cairo was not compiled with support for GObject 
gdkwindow.c: In function 'gdk_window_class_init': 
gdkwindow.c:511: error: 'CAIRO_GOBJECT_TYPE_SURFACE' undeclared (first use in this function) 
gdkwindow.c:511: error: (Each undeclared identifier is reported only once 
gdkwindow.c:511: error: for each function it appears in.) 
make[4]: *** [gdkwindow.lo] Error 1 
make[3]: *** [all-recursive] Error 1 
make[2]: *** [all] Error 2 
make[1]: *** [all-recursive] Error 1 
make: *** [all] Error 2 

我編譯開羅1.10:

的./configure --prefix =/usr/local --enable-gobject = yes

但總是得到相同的錯誤。 也編譯了glib-2.35.8。

任何想法?

回答

1

你忽略了(重要)的第一個錯誤:

/usr/local/include/cairo/cairo-gobject.h:183:3: error: #error Cairo was not compiled with support for GObject 

你說你已經編譯開羅啓用GObject的,但無論開羅GTK +正在編制針對沒有啓用它。檢查以確保你安裝了開羅,並且開羅的其他版本不會干擾。