2013-08-24 72 views
0

我已經安裝了X11在Mac上的Bochs:問題時作出的Mac OS X山獅

當我輸入一些代碼在終端:

的./configure --with-X11

使

之後,出現了一些問題:

x.cc:37:22: error: X11/Xlib.h: No such file or directory 
x.cc:38:23: error: X11/Xutil.h: No such file or directory 
x.cc:39:21: error: X11/Xos.h: No such file or directory 
x.cc:40:23: error: X11/Xatom.h: No such file or directory 
x.cc:41:24: error: X11/keysym.h: No such file or directory 
x.cc:42:35: error: X11/extensions/Xrandr.h: No such file or directory 
x.cc:86: error: expected constructor, destructor, or type conversion before ‘*’ token 
x.cc:88: error: expected initializer before ‘*’ token 
x.cc:89: error: ‘Colormap’ does not name a type 
x.cc:104: error: ‘Window’ does not name a type 
x.cc:105: error: ‘GC’ does not name a type 
x.cc:108: error: expected initializer before ‘*’ token 
x.cc:136: error: ‘Pixmap’ does not name a type 
x.cc:140: error: ‘Pixmap’ does not name a type 
x.cc:146: error: ‘Pixmap’ does not name a type 
x.cc:304: error: variable or field ‘xkeypress’ declared void 
x.cc:304: error: ‘KeySym’ was not declared in this scope 
x.cc:304: error: expected primary-expression before ‘int’ 
x.cc:326: error: ‘Colormap’ was not declared in this scope 
x.cc:326: error: expected primary-expression before ‘n_tries’ 
x.cc:326: error: initializer expression list treated as compound expression 
x.cc:326: error: expected ‘,’ or ‘;’ before ‘{’ token 

你能告訴我如何解決問題嗎?

回答

0
  1. 使用.conf.macosx代替configure;
  2. 打開conf.macosx並添加行:「--with-x11」;
  3. 運行:

    SH .conf.macosx

  4. 運行:

    使