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

编译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=

然后编译没问题了!

你可能感兴趣的:(Chrome编译出错@不建议使用‘ppd_attr_t* ppdFindAttr声明于 /usr/include/cups/ppd.h:407)