安装soclib时make出错,新手哦

编译打包和其他
回复
ckf110
帖子: 7
注册时间: 2009-11-07 1:16

安装soclib时make出错,新手哦

#1

帖子 ckf110 » 2009-11-07 8:40

安装soclib时,设置完环境变量,然后make,出现错误,什么原因呢?
ckf@ckf-desktop:~/software/soclib/soclib/utils/src$ make
make -C xtty install
make[1]: Entering directory `/home/ckf/software/soclib/soclib/utils/src/xtty'
gcc -c -o xtty.o xtty.c -Wall -O2
xtty.c:55:22: error: X11/Xlib.h: No such file or directory
In file included from xtty.c:57:
xtty.h:40:23: error: X11/Xutil.h: No such file or directory
xtty.h:41:24: error: X11/keysym.h: No such file or directory
In file included from xtty.c:57:
xtty.h:56: error: expected specifier-qualifier-list before ‘Display’
xtty.c:61:21: error: X11/Xos.h: No such file or directory
xtty.c:65: error: expected ‘)’ before ‘cmap’
xtty.c: In function ‘RefreshXtty’:
xtty.c:126: warning: implicit declaration of function ‘XDrawImageString’
xtty.c:126: error: ‘xtty’ has no member named ‘display’
xtty.c:127: error: ‘xtty’ has no member named ‘window’
xtty.c:128: error: ‘xtty’ has no member named ‘gc’
xtty.c:130: error: ‘xtty’ has no member named ‘font_height’
xtty.c:131: error: ‘xtty’ has no member named ‘video’
xtty.c: In function ‘UpdateXtty’:
xtty.c:146: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:148: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:150: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:151: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:156: error: ‘xtty’ has no member named ‘display’
xtty.c:157: error: ‘xtty’ has no member named ‘window’
xtty.c:158: error: ‘xtty’ has no member named ‘gc’
xtty.c:159: error: ‘xtty’ has no member named ‘font_width’
xtty.c:160: error: ‘xtty’ has no member named ‘font_height’
xtty.c:161: error: ‘xtty’ has no member named ‘video’
xtty.c: In function ‘ManageXtty’:
xtty.c:179: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:180: error: ‘xtty’ has no member named ‘video’
xtty.c:180: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:180: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:183: warning: implicit declaration of function ‘XBell’
xtty.c:183: error: ‘xtty’ has no member named ‘display’
xtty.c:188: error: ‘xtty’ has no member named ‘video’
xtty.c:188: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:188: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:189: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:190: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:191: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:192: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:194: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:196: error: ‘xtty’ has no member named ‘video’
xtty.c:196: error: ‘xtty’ has no member named ‘video’
xtty.c:197: error: ‘xtty’ has no member named ‘video’
xtty.c:198: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:206: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:207: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:211: error: ‘xtty’ has no member named ‘video’
xtty.c:211: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:211: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:212: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:214: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:215: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:216: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:218: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:220: error: ‘xtty’ has no member named ‘video’
xtty.c:220: error: ‘xtty’ has no member named ‘video’
xtty.c:221: error: ‘xtty’ has no member named ‘video’
xtty.c:222: error: ‘xtty’ has no member named ‘ycurse’
xtty.c: At top level:
xtty.c:229: error: expected declaration specifiers or ‘...’ before ‘XEvent’
xtty.c: In function ‘EventXtty’:
xtty.c:236: error: ‘KeySym’ undeclared (first use in this function)
xtty.c:236: error: (Each undeclared identifier is reported only once
xtty.c:236: error: for each function it appears in.)
xtty.c:236: error: expected ‘;’ before ‘key’
xtty.c:239: error: ‘event’ undeclared (first use in this function)
xtty.c:240: error: ‘Expose’ undeclared (first use in this function)
xtty.c:244: error: ‘KeyPress’ undeclared (first use in this function)
xtty.c:245: warning: implicit declaration of function ‘XLookupString’
xtty.c:245: error: ‘key’ undeclared (first use in this function)
xtty.c:248: error: ‘XK_BackSpace’ undeclared (first use in this function)
xtty.c:250: error: ‘XK_Tab’ undeclared (first use in this function)
xtty.c:251: error: ‘XK_Linefeed’ undeclared (first use in this function)
xtty.c:252: error: ‘XK_Return’ undeclared (first use in this function)
xtty.c:253: error: ‘XK_Escape’ undeclared (first use in this function)
xtty.c:254: error: ‘XK_Delete’ undeclared (first use in this function)
xtty.c:258: error: ‘xtty’ has no member named ‘wptr’
xtty.c:258: error: ‘xtty’ has no member named ‘rptr’
xtty.c:258: error: ‘xtty’ has no member named ‘keybuf’
xtty.c:258: error: ‘xtty’ has no member named ‘wptr’
xtty.c:259: error: ‘xtty’ has no member named ‘display’
xtty.c:264: error: ‘xtty’ has no member named ‘keybuf’
xtty.c:264: error: ‘xtty’ has no member named ‘wptr’
xtty.c:265: error: ‘xtty’ has no member named ‘wptr’
xtty.c: At top level:
xtty.c:276: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
xtty.c: In function ‘main’:
xtty.c:298: error: ‘XSizeHints’ undeclared (first use in this function)
xtty.c:298: error: expected ‘;’ before ‘shint’
xtty.c:299: error: ‘XEvent’ undeclared (first use in this function)
xtty.c:299: error: expected ‘;’ before ‘event’
xtty.c:300: error: ‘Colormap’ undeclared (first use in this function)
xtty.c:300: error: expected ‘;’ before ‘Cmap’
xtty.c:313: error: ‘xtty’ has no member named ‘video’
xtty.c:315: error: ‘xtty’ has no member named ‘xcurse’
xtty.c:316: error: ‘xtty’ has no member named ‘ycurse’
xtty.c:317: error: ‘xtty’ has no member named ‘keybuf’
xtty.c:318: error: ‘xtty’ has no member named ‘rptr’
xtty.c:319: error: ‘xtty’ has no member named ‘wptr’
xtty.c:321: error: ‘xtty’ has no member named ‘display’
xtty.c:321: warning: implicit declaration of function ‘connect’
xtty.c:321: error: ‘Cmap’ undeclared (first use in this function)
xtty.c:322: warning: implicit declaration of function ‘ttySetGraphics’
xtty.c:324: error: ‘shint’ undeclared (first use in this function)
xtty.c:326: error: ‘xtty’ has no member named ‘font_width’
xtty.c:328: error: ‘xtty’ has no member named ‘font_height’
xtty.c:330: error: ‘PSize’ undeclared (first use in this function)
xtty.c:330: error: ‘PMinSize’ undeclared (first use in this function)
xtty.c:330: error: ‘PMaxSize’ undeclared (first use in this function)
xtty.c:332: error: ‘xtty’ has no member named ‘window’
xtty.c:332: warning: implicit declaration of function ‘XCreateSimpleWindow’
xtty.c:333: error: ‘xtty’ has no member named ‘display’
xtty.c:334: warning: implicit declaration of function ‘DefaultRootWindow’
xtty.c:334: error: ‘xtty’ has no member named ‘display’
xtty.c:336: warning: implicit declaration of function ‘WhitePixelOfScreen’
xtty.c:336: warning: implicit declaration of function ‘DefaultScreenOfDisplay’
xtty.c:336: error: ‘xtty’ has no member named ‘display’
xtty.c:337: warning: implicit declaration of function ‘BlackPixelOfScreen’
xtty.c:337: error: ‘xtty’ has no member named ‘display’
xtty.c:339: warning: implicit declaration of function ‘XSetStandardProperties’
xtty.c:339: error: ‘xtty’ has no member named ‘display’
xtty.c:339: error: ‘xtty’ has no member named ‘window’
xtty.c:341: error: ‘None’ undeclared (first use in this function)
xtty.c:343: warning: implicit declaration of function ‘XSelectInput’
xtty.c:343: error: ‘xtty’ has no member named ‘display’
xtty.c:343: error: ‘xtty’ has no member named ‘window’
xtty.c:345: error: ‘KeyPressMask’ undeclared (first use in this function)
xtty.c:345: error: ‘ExposureMask’ undeclared (first use in this function)
xtty.c:347: warning: implicit declaration of function ‘XMapRaised’
xtty.c:347: error: ‘xtty’ has no member named ‘display’
xtty.c:347: error: ‘xtty’ has no member named ‘window’
xtty.c:350: warning: implicit declaration of function ‘ConnectionNumber’
xtty.c:350: error: ‘xtty’ has no member named ‘display’
xtty.c:352: warning: implicit declaration of function ‘XFlush’
xtty.c:352: error: ‘xtty’ has no member named ‘display’
xtty.c:357: error: ‘xtty’ has no member named ‘display’
xtty.c:376: warning: implicit declaration of function ‘XNextEvent’
xtty.c:376: error: ‘xtty’ has no member named ‘display’
xtty.c:376: error: ‘event’ undeclared (first use in this function)
xtty.c:377: error: too many arguments to function ‘EventXtty’
make[1]: *** [xtty.o] Error 1
make[1]: Leaving directory `/home/ckf/software/soclib/soclib/utils/src/xtty'
make: *** [xtty/install] Error 2
enthumelon
帖子: 86
注册时间: 2006-11-29 10:18
来自: USTC
联系:

Re: 安装soclib时make出错,新手哦

#2

帖子 enthumelon » 2009-11-07 16:35

代码: 全选

sudo apt-get install xlibs-dev
ckf110
帖子: 7
注册时间: 2009-11-07 1:16

Re: 安装soclib时make出错,新手哦

#3

帖子 ckf110 » 2009-11-07 16:42

enthumelon 写了:

代码: 全选

sudo apt-get install xlibs-dev
谢谢啊
enthumelon
帖子: 86
注册时间: 2006-11-29 10:18
来自: USTC
联系:

Re: 安装soclib时make出错,新手哦

#4

帖子 enthumelon » 2009-11-07 18:24

你configure的时候应该没有也注意到java的包也不能用吧...那样出来是没有GUI的...
回复