Chrome编译出错@不建议使用‘ppd_attr_t* ppdFindAttr声明于 /usr/include/cups/ppd.h:407
来源:互联网 发布:大连育知同创面试 编辑:程序博客网 时间:2024/05/21 09:12
编译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
- Qt4.8.4编译X86出错:/usr/include/linux/futex.h:96: 错误:‘u32’ 在此作用域中尚未声明
- QT4.8.1和Qt4.8.4编译X86出错:/usr/include/linux/futex.h:96: 错误:‘u32’ 在此作用域中尚未声明
- Qt4.8.Xlinux编译出现 :/usr/include/linux/futex.h:96: 错误:‘u32’ 在此作用域中尚未声明
- /usr/include/pthread.h
- 《转》/usr/include/regex.h
- /usr/include/asm/errno.h
- #include <gdiplus.h>出错
- /usr/local/include/libavutil/common.h:170:47: 错误: ‘UINT64_C’在此作用域中尚未声明
- signal.h /usr/include/asm/signal.h
- /usr/include/linux/netfilter.h: 错误:‘in’的类型不完全,netfilter_ipv4.h:53: ‘INT_MIN’‘INT_MAX’未声明解决方法
- 编译内核出错 make: *** [include/linux/version.h] Error 2 编译内核出错
- 程序声明-include.h
- usr/include/i386/asm/unistd_32.h
- /usr/include/bits/dirent.h学习
- IOS-usr/include-dispatch-queue.h
- IOS-usr/include-objc-runtime.h
- /usr/include/asm-generic/errno-base.h
- C/C++常见面试题
- Ubuntu 10.04 下 C 连接mysql数据库
- cadence 16.6
- ActivityGroup
- 使用Putty 连接RHEL5
- Chrome编译出错@不建议使用‘ppd_attr_t* ppdFindAttr声明于 /usr/include/cups/ppd.h:407
- 软件项目中应该遵循的20个法则
- 【Tool】我的Gvim配置
- xcopy命令怎么用
- 远程答题的稳定与速度同样重要
- webview hook
- iphone实现弹出框视图
- jQuery 1.6 .attr() 和 .prop()
- 常见错误:Apple Mach-O Linker Error