Menu

I want to rewrite the GUI, but there are many questions.

2020-02-14
2020-02-14
  • LionelTorvalds

    LionelTorvalds - 2020-02-14

    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.

     
  • Daniel Marjamäki

    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.

     
  • LionelTorvalds

    LionelTorvalds - 2020-02-14

    cppcheck-gui --data-dir=...\cppcheck\cfg

    Where is this command added?

     
    • Daniel Marjamäki

      On the command prompt. Just open the "Qt command prompt" or something and then run that command once.

       
  • LionelTorvalds

    LionelTorvalds - 2020-02-14

    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

     
  • Daniel Marjamäki

    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 folder cppcheck/externals/z3/include with headers. And cppcheck/externals/z3/bin that contain dlls and stuff.

     
    • Daniel Marjamäki

      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!

       
  • LionelTorvalds

    LionelTorvalds - 2020-02-14

    VS 2015 CRT merge module
    Excuse me, where can I download it, I can't find it in the expansion store of vs2019

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.