我在为 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
最佳答案
提供给编译器的包含路径没有 gdk/gdk-directfb.h。
要么它没有安装,你需要安装 DirectFB,要么需要通过在 CC 命令中添加 -I/path/to/directory/containing/gdk/gdk-directfb.h 来告诉 makefile 在哪里查找它。
关于linux - webkit-gtk 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3647443/