webkit-gtk 编译错误
我在为 directfb 编译 webkit-gtk 时遇到以下错误,您猜如何解决它?
make[1]: 进入目录 `/home/sunny/svn/iSense-E/trunk/stable/thirdp/src/webkit-1.2.0/WebKitBuild/Release' /bin/mkdir -p ./.deps/DerivedSources CC WebKitTools/GtkBonker/Programs_GtkBonker-GtkBonker.o CXX WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-LayoutTestControllerGtk.o ../../WebKitTools/GtkBonker/GtkBonker.c:87:30:错误:gdk/gdk-directfb.h:没有这样的文件或目录 ../../WebKitTools/GtkBonker/GtkBonker.c:257: 错误: '' 标记之前应有 ')' ../../WebKitTools/GtkBonker/GtkBonker.c:287: 错误: '' 标记之前应有 ')' ../../WebKitTools/GtkBonker/GtkBonker.c:795: 错误: '*' 标记之前应有 ')' ../../WebKitTools/GtkBonker/GtkBonker.c:在函数“sampleGTKApplicationInitialize”中: ../../WebKitTools/GtkBonker/GtkBonker.c:814:错误:'gp_f_gdkDirectFbSetInitializationParameters'未声明(首次在此函数中使用) ../../WebKitTools/GtkBonker/GtkBonker.c:814: error: (每个未声明的标识符仅报告一次 ../../WebKitTools/GtkBonker/GtkBonker.c:814:错误:对于它出现的每个函数。) ../../WebKitTools/GtkBonker/GtkBonker.c:814:错误:'sampleGTKApplicationDirectFbSetInitializationParameters'未声明(首次在此函数中使用) ../../WebKitTools/GtkBonker/GtkBonker.c:815:错误:'gp_f_gdkDirectFBCreateWindow'未声明(首次在此函数中使用) ../../WebKitTools/GtkBonker/GtkBonker.c:815:错误:'al_gtkDirectFBCreateWindowHandler'未声明(首次在此函数中使用) ../../WebKitTools/GtkBonker/GtkBonker.c:816:错误:'gp_f_gdkDirectFBDestroyWindow'未声明(首次在此函数中使用) ../../WebKitTools/GtkBonker/GtkBonker.c:816:错误:'al_gtkDirectFBDestroyWindowHandler'未声明(首次在此函数中使用) ../../WebKitTools/GtkBonker/GtkBonker.c:在函数“sampleGTKApplicationTerminate”中: ../../WebKitTools/GtkBonker/GtkBonker.c:841:错误:'gp_f_gdkDirectFbSetInitializationParameters'未声明(首次在此函数中使用) make[1]: *** [WebKitTools/GtkBonker/Programs_GtkBonker-GtkBonker.o] 错误 1
I am getting following error while compiling webkit-gtk for directfb, any guess how to resolve it?
make[1]: Entering directory `/home/sunny/svn/iSense-E/trunk/stable/thirdp/src/webkit-1.2.0/WebKitBuild/Release'
/bin/mkdir -p ./.deps/DerivedSources
CC WebKitTools/GtkBonker/Programs_GtkBonker-GtkBonker.o
CXX WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-LayoutTestControllerGtk.o
../../WebKitTools/GtkBonker/GtkBonker.c:87:30: error: gdk/gdk-directfb.h: No such file or directory
../../WebKitTools/GtkBonker/GtkBonker.c:257: error: expected ‘)’ before ‘’ token
../../WebKitTools/GtkBonker/GtkBonker.c:287: error: expected ‘)’ before ‘’ token
../../WebKitTools/GtkBonker/GtkBonker.c:795: error: expected ‘)’ before ‘*’ token
../../WebKitTools/GtkBonker/GtkBonker.c: In function ‘sampleGTKApplicationInitialize’:
../../WebKitTools/GtkBonker/GtkBonker.c:814: error: ‘gp_f_gdkDirectFbSetInitializationParameters’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:814: error: (Each undeclared identifier is reported only once
../../WebKitTools/GtkBonker/GtkBonker.c:814: error: for each function it appears in.)
../../WebKitTools/GtkBonker/GtkBonker.c:814: error: ‘sampleGTKApplicationDirectFbSetInitializationParameters’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:815: error: ‘gp_f_gdkDirectFBCreateWindow’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:815: error: ‘al_gtkDirectFBCreateWindowHandler’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:816: error: ‘gp_f_gdkDirectFBDestroyWindow’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:816: error: ‘al_gtkDirectFBDestroyWindowHandler’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c: In function ‘sampleGTKApplicationTerminate’:
../../WebKitTools/GtkBonker/GtkBonker.c:841: error: ‘gp_f_gdkDirectFbSetInitializationParameters’ undeclared (first use in this function)
make[1]: *** [WebKitTools/GtkBonker/Programs_GtkBonker-GtkBonker.o] Error 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
提供给编译器的包含路径没有 gdk/gdk-directfb.h。
要么它没有安装,您需要安装 DirectFB,要么需要通过在 CC 命令中添加 -I/path/to/directory/containing/gdk/gdk-directfb.h 来告诉 makefile 在哪里查找它。
The include path given to your compiler doesn't have gdk/gdk-directfb.h.
Either it's not installed and you need to install DirectFB or the makefile needs to be told where to look for it by adding a -I/path/to/directory/containing/gdk/gdk-directfb.h to the CC command.