LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1338|回复: 0

交叉编译GTK+遇到的问题

[复制链接]
发表于 2008-3-3 23:26:05 | 显示全部楼层 |阅读模式
我刚接触嵌入式,现在想交叉编译GTK+。

我按照那个精华贴一步步编译的

但是编译到DirectFB的时候遇到了问题……





我的编译过程是
  1. export CFLAGS="-I/usr/gtk -I/usr/gtk/include/freetype2 -I/usr/gtk/include/freetype2/freetype $CFLAGS"
  2. export LDFLAGS="-L/usr/gtk/lib -lz $LDFLAGS"
  3. ./configure --prefix=/usr/gtk --host=arm-linux --target=arm --disable-osx --disable-debug-support --disable-mmx --disable-sse --enable-fbdev --disable-sdl --disable-vnc --disable-sysfs --enable-zlib --disable-gif --disable-video4linux --with-gfxdrivers=none
  4. make
复制代码

当make的时候出现了以下错误:
  1. ……
  2. make[3]: Entering directory `/home/GTK/DirectFB-1.1.1/systems/x11'
  3. /bin/bash ../../libtool --tag=CC   --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../lib -I../../lib -I../../src -I/usr/X11R6/include  -D_REENTRANT   -O3 -ffast-math -pipe -I/usr/gtk/include -I/usr/gtk/include/freetype2 -I/usr/gtk/include/freetype2/freetype -I/usr/gtk -I/usr/gtk/include/freetype2 -I/usr/gtk/include/freetype2/freetype  -D_GNU_SOURCE  -Werror-implicit-function-declaration -MT x11input.lo -MD -MP -MF .deps/x11input.Tpo -c -o x11input.lo x11input.c
  4. mkdir .libs
  5. arm-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../lib -I../../lib -I../../src -I/usr/X11R6/include -D_REENTRANT -O3 -ffast-math -pipe -I/usr/gtk/include -I/usr/gtk/include/freetype2 -I/usr/gtk/include/freetype2/freetype -I/usr/gtk -I/usr/gtk/include/freetype2 -I/usr/gtk/include/freetype2/freetype -D_GNU_SOURCE -Werror-implicit-function-declaration -MT x11input.lo -MD -MP -MF .deps/x11input.Tpo -c x11input.c  -fPIC -DPIC -o .libs/x11input.o
  6. x11input.c:39:22: X11/Xlib.h: No such file or directory
  7. x11input.c:40:23: X11/Xutil.h: No such file or directory
  8. x11input.c:41:24: X11/keysym.h: No such file or directory
  9. In file included from x11input.c:52:
  10. xwindow.h:36:33: X11/extensions/XShm.h: No such file or directory
  11. In file included from x11input.c:52:
  12. xwindow.h:44: error: parse error before "Window"
  13. xwindow.h:44: warning: no semicolon at end of struct or union
  14. xwindow.h:45: warning: data definition has no type or storage class
  15. xwindow.h:46: error: parse error before "gc"
  16. xwindow.h:46: warning: data definition has no type or storage class
  17. xwindow.h:47: error: parse error before '*' token
  18. xwindow.h:47: warning: data definition has no type or storage class
  19. xwindow.h:49: error: parse error before "colormap"
  20. xwindow.h:49: warning: data definition has no type or storage class
  21. xwindow.h:51: error: parse error before '*' token
  22. xwindow.h:51: warning: data definition has no type or storage class
  23. xwindow.h:63: error: parse error before "pixmp1"
  24. xwindow.h:63: warning: data definition has no type or storage class
  25. xwindow.h:64: error: parse error before "pixmp2"
  26. xwindow.h:64: warning: data definition has no type or storage class
  27. xwindow.h:65: error: parse error before "NullCursor"
  28. xwindow.h:65: warning: data definition has no type or storage class
  29. xwindow.h:66: warning: data definition has no type or storage class
  30. xwindow.h:68: error: parse error before "dfb_x11_open_window"
  31. xwindow.h:68: error: parse error before '*' token
  32. xwindow.h:68: warning: data definition has no type or storage class
  33. xwindow.h:69: error: parse error before '*' token
  34. In file included from x11.h:39,
  35.                  from x11input.c:54:
  36. x11image.h:50: error: parse error before "Visual"
  37. x11image.h:50: warning: no semicolon at end of struct or union
  38. x11image.h:52: warning: data definition has no type or storage class
  39. x11image.h:53: error: parse error before "seginfo"
  40. x11image.h:53: warning: data definition has no type or storage class
  41. x11image.h:54: warning: data definition has no type or storage class
  42. x11image.h:57: error: parse error before '*' token
  43. x11image.h:62: error: parse error before '*' token
  44. x11image.h:64: error: parse error before '*' token
  45. In file included from x11input.c:54:
  46. x11.h:63: error: parse error before "XWindow"
  47. x11.h:63: warning: no semicolon at end of struct or union
  48. x11.h:64: warning: data definition has no type or storage class
  49. x11.h:65: error: parse error before '*' token
  50. x11.h:65: warning: data definition has no type or storage class
  51. x11.h:68: error: parse error before '*' token
  52. x11.h:68: warning: data definition has no type or storage class
  53. ……
复制代码


源码我一点也没动,为什么会出现这种错误呢,望大家帮帮我~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表