Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add coverity scan to Qt app

Tags:

qt

coverity

I'm trying to add Coverity Scan static analysis to my Qt project but I'm not able to get the result.

I download the coverity scan build tools and use the following command line:

cov-build --dir cov-int make

Which produces the following log:

...
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

How can I go further?

I'm using Qt 5.3.2 under MacOS 10.9.

like image 418
Martin Delille Avatar asked Sep 05 '25 11:09

Martin Delille


1 Answers

I didn't read the docs carefully enough: https://scan.coverity.com/download?tab=cxx I had to configure coverity first by running:

cov-configure --comptype clangcxx --compiler clang++ --template
like image 175
Martin Delille Avatar answered Sep 10 '25 00:09

Martin Delille