I would like to use coverity for static analysis, and I needed it for c++. Since my project uses Android NDK, I configured the compiler as:
cov-configure –comptype gcc –compiler ~/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc-4.6
Then I ran cov-build –dir coverity ndk-build –j8 NDK_DEBUG=1
Everything builds, but I have a warning
*[*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.**
So I ignored the warning and ran
cov-analyze –dir coverity –all
**Coverity Static Analysis for C/C++ version 6.6.1 on Linux 2.6.38-8-server x86_64
Internal version numbers: d614fc01a4 p-eureka-push-15003.308
Looking for translation units
Error: no matching translation units.**
So is my compiler configured properly? Has anyone configured a compiler for Android NDK before?