Coverity和 "Failed to initialize ICU, try using the --prevent-root option"

标签 c build coverity

我的项目的构建目录中有 bin 目录。

当我运行命令 ./bin/cov-build --dir cov-int make 时,出现以下错误 -

[ERROR] Failed to initialize ICU, try using the --prevent-root option.

最佳答案

Coverity 使用 ICU 来处理多字节编码。这需要 Coverity 安装中存在的 ICU 数据文件。该错误表明这些文件丢失或不存在于预期位置,并建议您尝试使用 --prevent-root 告诉它可以在哪里找到这些文件。

您是否将 bin 目录复制到您的项目中?这可能可以解释该问题,并且使用 --prevent-root 指向实际的 Coverity 安装应该可以解决该问题。

关于Coverity和 "Failed to initialize ICU, try using the --prevent-root option",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41463659/

相关文章:

c - 删除双向链表中的第 n 个节点

c - 为什么要为此代码打印 -1,当位域设置为 1 时,我认为它是 1?

macos - 如何在 mac 上安装 build-essential?

delphi - 项目构建配置的上下文菜单中的 "Make"和 "Build"有什么区别?

c++ - MFC : Fix a console on a GUI

c - 带有负秒的奇怪 mktime 逻辑

windows - sublime text 2 控制台仅显示 gruntjs 输出的第一行

c++ - C++ 是否自动将整数初始化为零?

c++ - 由于 gcc -M 选项,Coverity 扫描跳过所有命令并且不扫描任何内容

c - 为什么 coverity 会为此发出警告?