The "C++ Source Code Analyzer" example does not build a program. It provides an xquery script that will take the output of the gcc source code analysis XML file and transform it into XML for display in a browser. The dialog box you see is displayed by Qt Creator when it can't find an executable for the project you are trying to run.
Read all of the "C++ Source Code Analyzer Example" help page you linked to. You need to get the GCC-XML tool from Kitware that is linked to in the help text. After you install it, you need to run it on your source file:
gccxml [options] <input-file> -fxml=<output-file>
gccxml [options] <input-file> -fxml=<output-file>
To copy to clipboard, switch view to plain text mode
as explained on the GCC-XML page.
Next, you need to run the xmlpatterns program (part of the Qt distribution) on the output XML file:
xmlpatterns reportGlobals.xq -param fileToOpen=<output-file>.gccxml -output <html-file>.html
xmlpatterns reportGlobals.xq -param fileToOpen=<output-file>.gccxml -output <html-file>.html
To copy to clipboard, switch view to plain text mode
The xquery in this case is "reportglobals.xq", which will generate a report of all the global declarations in your source code file. This xquery script is in the "globalvariables" subdirectory of the xquery example project.
If you want any other type of report, you will have to write your own XQuery script to generate it. That's why this is an example, not a complete source code analyzer.
If you want a real source code analyzer, then you will have to use Google to find one.
Bookmarks