Cppcheck Compilation and Installation Guide
contributed by < jasperlin1996
>
This page describes steps for compiling the Cppcheck from the source. Currently, Cppcheck 2.7 is the latest version.
Note
If you're using Manjaro (or any other Arch Linux distribution), the latest version of Cppcheck is available on pacman
.
Steps
- (Optional) Uninstall Cppcheck if you have an old version in your system
- Install
cmake
.
- Clone the source code from Github.
- Follow the compilation guide from Cppcheck. This process may take some time, depending on your hardware.
- The Cppcheck is now ready at
bin/cppcheck
, you can use it with the following command.
- (Optional) You can also copy the
cppcheck
and it's config file to the right place by this command.
- (Optional) Setup the
PATH
environment variable.
- (Optional) If you want to specify the config directory of Cppcheck, you can modify step 3 & 5.
Uninstall