作者snowangel (燕子)
看板PCman
標題[問題] 有關PCManX在FreeBSD 5-current上的編譯
時間Sun Oct 31 19:45:19 2004
作業系統:FreeBSD 5-current (大約是四月多的source)
XFree86 4.3.0
gtk-1.2.10_12
wxgtk-2.4.2_7 (build using gtk1)
以上都由port安裝,約七月份的port tree
PCMAN 版本:PCManX 0.1.7.8
使用的輸入法:嘸蝦米 on xcin 2.5
問題描述:
在編譯的時候出現Error訊息
# make
Making all in src
Making all in gtk
c++ -DPACKAGE=\"PCManX-src\" -DVERSION=\"0.1.7.8\" -DSTDC_HEADERS=1 -DSTDC_HEADERS=1 -I. -I. -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/wx/gtk2-2.4 -I/usr/X11R6/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -O2 -c patch.cpp
In file included from /usr/X11R6/include/gtk12/gdk/gdkprivate.h:33,
from patch.cpp:19:
/usr/X11R6/include/gtk12/gdk/gdktypes.h:52: error: conflicting types for `
typedef gulong GdkAtom'
/usr/X11R6/include/wx/defs.h:2058: error: previous declaration as `typedef
struct _GdkAtom*GdkAtom'
/usr/X11R6/include/gtk12/gdk/gdktypes.h:57: error: conflicting types for `
typedef struct _GdkWindow GdkWindow'
/usr/X11R6/include/wx/defs.h:2059: error: previous declaration as `typedef
struct _GdkDrawable GdkWindow'
/usr/X11R6/include/gtk12/gdk/gdktypes.h:58: error: conflicting types for `
typedef struct _GdkWindow GdkPixmap'
/usr/X11R6/include/wx/defs.h:2061: error: previous declaration as `typedef
struct _GdkDrawable GdkPixmap'
/usr/X11R6/include/gtk12/gdk/gdktypes.h:59: error: conflicting types for `
typedef struct _GdkWindow GdkBitmap'
/usr/X11R6/include/wx/defs.h:2060: error: previous declaration as `typedef
struct _GdkDrawable GdkBitmap'
patch.cpp: In function `gint gtk_window_key_press_callback(GtkWidget*,
GdkEventKey*, wxWindow*)':
patch.cpp:474: error: `GtkIMContext' undeclared (first use this function)
patch.cpp:474: error: (Each undeclared identifier is reported only once for
each function it appears in.)
patch.cpp:474: error: syntax error before `)' token
patch.cpp: At global scope:
patch.cpp:602: error: `context' was not declared in this scope
patch.cpp:603: error: syntax error before `*' token
patch.cpp:605: error: variable or field `gtk_wxwindow_commit_cb' declared void
patch.cpp:605: error: initializer list being treated as compound expression
patch.cpp:605: error: syntax error before `{' token
patch.cpp:613: error: `str' was not declared in this scope
patch.cpp:617: error: syntax error before `if'
patch.cpp:601:1: unterminated #ifdef
*** Error code 1
Stop in /home/snowangel/PCManX-src-0.1.7.8/src/gtk.
*** Error code 1
Stop in /home/snowangel/PCManX-src-0.1.7.8/src.
*** Error code 1
Stop in /home/snowangel/PCManX-src-0.1.7.8.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.166.55.91