您的位置:首页 > 其它

Chrome编译出错@不建议使用‘ppd_attr_t* ppdFindAttr声明于 /usr/include/cups/ppd.h:407

2013-03-22 17:32 579 查看
编译Chrome时出现如下错误:

printing/backend/cups_helper.cc: 在函数‘bool {anonymous}::GetColorModelSettings(ppd_file_t*, int*, int*, bool*)’中:

printing/backend/cups_helper.cc:285:22: 错误: 不建议使用‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’(声明于 /usr/include/cups/ppd.h:407) [-Werror=deprecated-declarations]

printing/backend/cups_helper.cc:285:57: 错误: 不建议使用‘ppd_attr_t* ppdFindAttr(ppd_file_t*, const char*, const char*)’(声明于 /usr/include/cups/ppd.h:407) [-Werror=deprecated-declarations]

解决方法:

配置工程时加上参数-Dwerror=

./build/gyp_chromium -Dwerror=

然后编译没问题了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐