我正在尝试将Coverity Scan static analysis添加到我的Qt项目中,但我无法获得结果。
我下载了封面扫描构建工具并使用以下命令行:
cov-build --dir cov-int make
产生以下日志:
...
my build log
...
[WARNING] No files were emitted. This may be due to a problem with your configuration
or because no files were actually compiled by your build command.
Please make sure you have configured the compilers actually used in the compilation.
For more details, please look at:
/Users/martin/dev/builds/ConsoleTest01-Desktop_Qt_5_3_clang_64bit-Debug/cov-int/build-log.txt
我怎样才能更进一步?
我在MacOS 10.9下使用Qt 5.3.2。
答案 0 :(得分:5)
我没有仔细阅读文档:https://scan.coverity.com/download?tab=cxx 我必须首先运行:
来配置覆盖率cov-configure --comptype clangcxx --compiler clang++ --template
答案 1 :(得分:0)
您需要先运行qmake,然后才能使用make。
运行cov-int命令我发现在Qt-Creator创建的build-folder中运行cov-int最简单。