I am a newbie and I found the cppcheck software to be great.
I have a few small questions and hope to get your answers.
How to compile cppcheck source under windows, is there a detailed tutorial?
How to package cppcheck into windows installer?
I want to rewrite the GUI, but there are many questions, I hope to get your answers, thank you very much.
Question one:
Failed to load the selected library' std. cfg'.
File not found.
Question two:
Failed to load the selected library ' windows. cfg'.
File not found.
Question three:
Failed to load std. cfg. Your Cppcheck installation is broken. You can use--
data-dir=<directory> at the command line to specify where this file is located. Please note that--data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured.</directory>
Hope to get your answer.
Do you have a personal contact? I would like to ask you a few questions in private.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to compile cppcheck source under windows, is there a detailed tutorial?
it seems to me you succeeded.
There is not 1 way to do it. You can use qmake or cmake. You can compile with mingw or visual studio. You can use qt creator or compile manually on the visual studio command prompt. etc..
I don't think there will be much problems. Except maybe that I recently added "z3". If you get linking problems you can't solve, let me know.
How to package cppcheck into windows installer?
we use wix.. the files are in win_installer folder.
Failed to load std. cfg. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. </directory>
You should follow that advice.
cppcheck-gui --data-dir=...\cppcheck\cfg
The GUI has to know where the cfg files are and we can't hardcode that info in the GUI because the installer might put the files anywhere.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is not 1 way to do it. You can use qmake or cmake. You can compile with mingw or visual studio. You can use qt creator or compile manually on the visual studio command prompt. etc..
I am using qt creator.
I don't think there will be much problems. Except maybe that I recently added "z3". If you get linking problems you can't solve, let me know.
Where is "z3"? Excuse me
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I suggest that you download the archive and extract it in cppcheck/externals/z3. i.e. ensure that there will be a folder cppcheck/externals/z3/include with headers. And cppcheck/externals/z3/bin that contain dlls and stuff.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you want to install z3 in some alternative way feel free to do it. I don't know much about installing libraries in windows. If the above headers and dlls etc will be available in some system paths then compilation should work!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am a newbie and I found the cppcheck software to be great.
I have a few small questions and hope to get your answers.
How to compile cppcheck source under windows, is there a detailed tutorial?
How to package cppcheck into windows installer?
I want to rewrite the GUI, but there are many questions, I hope to get your answers, thank you very much.
Question one:
Failed to load the selected library' std. cfg'.
File not found.
Question two:
Failed to load the selected library ' windows. cfg'.
File not found.
Question three:
Failed to load std. cfg. Your Cppcheck installation is broken. You can use--
data-dir=<directory> at the command line to specify where this file is located. Please note that--data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured.</directory>
Hope to get your answer.
Do you have a personal contact? I would like to ask you a few questions in private.
it seems to me you succeeded.
There is not 1 way to do it. You can use qmake or cmake. You can compile with mingw or visual studio. You can use qt creator or compile manually on the visual studio command prompt. etc..
I don't think there will be much problems. Except maybe that I recently added "z3". If you get linking problems you can't solve, let me know.
we use wix.. the files are in win_installer folder.
You should follow that advice.
cppcheck-gui --data-dir=...\cppcheck\cfg
The GUI has to know where the cfg files are and we can't hardcode that info in the GUI because the installer might put the files anywhere.
Where is this command added?
On the command prompt. Just open the "Qt command prompt" or something and then run that command once.
I am using qt creator.
Where is "z3"? Excuse me
32-bit:
https://github.com/Z3Prover/z3/releases/download/z3-4.8.7/z3-4.8.7-x86-win.zip
64-bit:
https://github.com/Z3Prover/z3/releases/download/z3-4.8.7/z3-4.8.7-x64-win.zip
I suggest that you download the archive and extract it in
cppcheck/externals/z3
. i.e. ensure that there will be a foldercppcheck/externals/z3/include
with headers. Andcppcheck/externals/z3/bin
that contain dlls and stuff.If you want to install z3 in some alternative way feel free to do it. I don't know much about installing libraries in windows. If the above headers and dlls etc will be available in some system paths then compilation should work!
VS 2015 CRT merge module
Excuse me, where can I download it, I can't find it in the expansion store of vs2019