|
楼主 |
发表于 2010-2-6 17:46:29
|
显示全部楼层
楼上的。俺就是装的imlib2 .
您是不是装X了?我这系统上没有X。
装了imlib2之后,再编译 w3m,总是出错。无法编译通过。
出错信息如下gcc -I../.. -I../.. -I. -g -O2 -I./libwc -DHAVE_CONFIG_H -c x11_w3mimg.c
x11_w3mimg.c:11:22: 错误:X11/Xlib.h:没有那个文件或目录
x11_w3mimg.c:12:23: 错误:X11/Xutil.h:没有那个文件或目录
In file included from x11_w3mimg.c:13:
/usr/include/Imlib2.h:133: 错误:expected ‘)’ before ‘*’ token
/usr/include/Imlib2.h:134: 错误:expected ‘)’ before ‘*’ token
/usr/include/Imlib2.h:135: 错误:expected ‘)’ before ‘colormap’
/usr/include/Imlib2.h:136: 错误:expected ‘)’ before ‘drawable’
/usr/include/Imlib2.h:137: 错误:expected ‘)’ before ‘mask’
/usr/include/Imlib2.h:163: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/Imlib2.h:164: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/Imlib2.h:165: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘imlib_context_get_colormap’
/usr/include/Imlib2.h:166: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘imlib_context_get_drawable’
/usr/include/Imlib2.h:167: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘imlib_context_get_mask’
/usr/include/Imlib2.h:197: 错误:expected ‘)’ before ‘*’ token
/usr/include/Imlib2.h:198: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/Imlib2.h:236: 错误:expected ‘)’ before ‘*’ token
/usr/include/Imlib2.h:238: 错误:expected ‘)’ before ‘*’ token
/usr/include/Imlib2.h:241: 错误:expected ‘)’ before ‘pixmap’
/usr/include/Imlib2.h:267: 错误:expected ‘)’ before ‘mask’
/usr/include/Imlib2.h:270: 错误:expected ‘)’ before ‘*’ token
/usr/include/Imlib2.h:273: 错误:expected ‘)’ before ‘mask’
/usr/include/Imlib2.h:283: 错误:expected ‘)’ before ‘mask’
x11_w3mimg.c:32: 错误:expected specifier-qualifier-list before ‘Display’
x11_w3mimg.c: 在函数 ‘x11_init’ 中:
x11_w3mimg.c:141: 错误:‘struct x11_info’ 没有名为 ‘imageGC’ 的成员
x11_w3mimg.c:142: 错误:‘struct x11_info’ 没有名为 ‘imageGC’ 的成员
x11_w3mimg.c:142: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:142: 错误:‘struct x11_info’ 没有名为 ‘parent’ 的成员
x11_w3mimg.c:143: 错误:‘struct x11_info’ 没有名为 ‘imageGC’ 的成员
x11_w3mimg.c: 在函数 ‘x11_finish’ 中:
x11_w3mimg.c:158: 错误:‘struct x11_info’ 没有名为 ‘imageGC’ 的成员
x11_w3mimg.c:159: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:159: 错误:‘struct x11_info’ 没有名为 ‘imageGC’ 的成员
x11_w3mimg.c:160: 错误:‘struct x11_info’ 没有名为 ‘imageGC’ 的成员
x11_w3mimg.c: 在函数 ‘x11_clear’ 中:
x11_w3mimg.c:180: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:180: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:180: 错误:‘False’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:180: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
x11_w3mimg.c:180: 错误:所在的函数内只报告一次。)
x11_w3mimg.c: 在函数 ‘x11_active’ 中:
x11_w3mimg.c:193: 错误:‘struct x11_info’ 没有名为 ‘imageGC’ 的成员
x11_w3mimg.c: 在函数 ‘x11_set_background’ 中:
x11_w3mimg.c:201: 错误:‘XColor’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:201: 错误:expected ‘;’ before ‘screen_def’
x11_w3mimg.c:210: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:210: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:211: 错误:‘screen_def’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:211: 错误:‘exact_def’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:212: 错误:‘struct x11_info’ 没有名为 ‘background_pixel’ 的成员
x11_w3mimg.c:214: 错误:‘Pixmap’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:214: 错误:expected ‘;’ before ‘p’
x11_w3mimg.c:215: 错误:‘GC’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:215: 错误:expected ‘;’ before ‘gc’
x11_w3mimg.c:216: 错误:‘XImage’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:216: 错误:‘i’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:218: 错误:‘p’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:218: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:218: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:219: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:220: 错误:‘gc’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:220: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:220: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:223: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:223: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:227: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:227: 错误:‘ZPixmap’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:230: 错误:‘struct x11_info’ 没有名为 ‘background_pixel’ 的成员
x11_w3mimg.c:232: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:233: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c: 在函数 ‘x11_sync’ 中:
x11_w3mimg.c:246: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:246: 错误:‘False’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c: 在函数 ‘x11_load_image’ 中:
x11_w3mimg.c:377: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:377: 错误:‘struct x11_info’ 没有名为 ‘parent’ 的成员
x11_w3mimg.c:378: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:381: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:381: 错误:‘struct x11_info’ 没有名为 ‘imageGC’ 的成员
x11_w3mimg.c:381: 错误:‘struct x11_info’ 没有名为 ‘background_pixel’ 的成员
x11_w3mimg.c:382: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:382: 错误:‘Pixmap’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:382: 错误:expected ‘)’ before ‘img’
x11_w3mimg.c:383: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:384: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:385: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:386: 错误:‘Drawable’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:386: 错误:expected ‘)’ before ‘img’
x11_w3mimg.c: 在函数 ‘x11_show_image’ 中:
x11_w3mimg.c:577: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:577: 错误:‘Pixmap’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:577: 错误:expected ‘)’ before ‘img’
x11_w3mimg.c: 在函数 ‘x11_free_image’ 中:
x11_w3mimg.c:616: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:616: 错误:‘Pixmap’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:616: 错误:expected ‘)’ before ‘img’
x11_w3mimg.c: 在函数 ‘w3mimg_x11open’ 中:
x11_w3mimg.c:750: 错误:‘XWindowAttributes’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:750: 错误:expected ‘;’ before ‘attr’
x11_w3mimg.c:751: 错误:‘Window’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:751: 错误:expected ‘;’ before ‘root’
x11_w3mimg.c:763: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:764: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:768: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:768: 错误:expected ‘;’ before ‘atoi’
x11_w3mimg.c:770: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:770: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:771: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:774: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:774: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:774: 错误:‘attr’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:779: 错误:expected ‘;’ before ‘p_window’
x11_w3mimg.c:781: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:781: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:781: 错误:‘root’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:781: 错误:‘struct x11_info’ 没有名为 ‘parent’ 的成员
x11_w3mimg.c:782: 错误:‘children’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:783: 错误:‘p_window’ 未声明 (在此函数内第一次使用)
x11_w3mimg.c:783: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:785: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
x11_w3mimg.c:791: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:794: 错误:‘struct x11_info’ 没有名为 ‘window’ 的成员
x11_w3mimg.c:799: 错误:‘struct x11_info’ 没有名为 ‘display’ 的成员
make[2]: *** [x11_w3mimg.o] 错误 1
make[2]: Leaving directory `/home/prife/pic/w3m-0.5.2/w3mimg/x11'
make[1]: *** [x11] 错误 2
make[1]: Leaving directory `/home/prife/pic/w3m-0.5.2/w3mimg'
make: *** [w3mimg] 错误 2
-bash-3.2$
但要是不装Imlib2的话,是可以正常编译通过w3m的。。 |
|