I want to use Cppcheck for my C++ based program.
If yes, how do I install it? I can't seem to find any instruction for that anywhere.
Thanks
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityYou have to build it from source for 14.04. There are pre-built packages for latest ubuntu versions though Link
Compiling the GUI on 14.04 is currently not working (no idea if it is fixable) - see https://github.com/danmar/cppcheck/pull/3596#issuecomment-987938175.
On 16.04 you need to use the qmake
build since CMake won't work - see https://github.com/danmar/cppcheck/pull/3596#issuecomment-987967027.
Starting with 18.04 the GUI build works and is checked by our CI. It is also available via the cppcheck-gui
package so you no longer need to compile it from source.