我的项目的构建目录中有 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/