Cppcheck Linux #229
Answered
by
AAsyunkin-se
AAsyunkin-se
asked this question in
Q&A
-
Hi all, Is there a Wiki or a doc that shows how to setup Cppcheck (Debian Linux)? I installed cppcheck via apt, modified eide config to point to cppcheck at /usr/bin/cppcheck, but when trying to run cppcheck via Ctrl-Alt-C I get:
This happens with both 'Multi' and simple projects.. What am I missing? |
Beta Was this translation helpful? Give feedback.
Answered by
AAsyunkin-se
May 15, 2023
Replies: 1 comment 4 replies
-
Sorry I'm late Before call the cppcheck executable, the plug-in will genrate a configuration for cppcheck: All of your project informations will be in this file, you can check it. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, I think I got to the bottom of this.
Ubuntu repos install ridiculously old cppcheck versions. On 1804 it installed 1.84, dating many years back. So features like --project were not even supported. That's the reason I saw 'No C or C++ source files found'.
On 2004 it installs 1.96 or something...where the latest is 2.10. Also not great.
You are probably on Windows - the only target that cppcheck creators maintain. :)
Solution for non-Win - download latest package, build it and install via 'sudo make install'. Installation is mandatory as otherwise cppcheck won't find files it needs to run the check (in my case it complained that platform arm32-w2t doesn't exists).
Thank you for the hint…