免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4731 | 回复: 2
打印 上一主题 下一主题

交叉编译DirectFB的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-03 23:16 |只看该作者 |倒序浏览
我刚接触嵌入式,现在想交叉编译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. ……
复制代码



源码我一点也没动,为什么会出现这种错误呢,望大家帮帮我~FB

[ 本帖最后由 timepie 于 2008-3-4 09:28 编辑 ]
yy12345 该用户已被删除
2 [报告]
发表于 2008-03-10 21:55 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2008-03-12 14:43 |只看该作者

disable-x11

--disable-x11
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP