Menu

Failed to load std.cfg even when compiled with CFGDIR=/home/#####/cppcheck-1.83/cfg/

2018-04-09
2018-04-10
  • Manuel Malagon

    Manuel Malagon - 2018-04-09

    This is really frustrating, I have followed the instructions as stated on https://github.com/danmar/cppcheck as well as here https://stackoverflow.com/questions/22486573/cppcheck-std-cfg-not-found-error-when-std-cfg-file-is-available/26650139 but nothing is working. I keep getting the

    cppcheck: Failed to load library configuration file 'std.cfg'. File not found
    (information) Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled with CFGDIR set to "/home/#####/cppcheck-1.83/cfg" and will therefore search for std.cfg in that path.
    

    And the std.cfg is found in that file.

    What is going on?

     
  • versat

    versat - 2018-04-10

    I just tested it the following way:
    On Windows 7 with an up to date Cygwin i extracted cppcheck-1.83 to /home/user/cppcheck-1.83
    Then ran these commands in /home/user/cppcheck-1.83:
    make SRCDIR=build CFGDIR=/home/user/cppcheck-1.83/cfg
    make install CFGDIR=/home/user/cppcheck-1.83/cfg
    After that i can use cppcheck from everywhere without problems.

    Can you maybe provide more details about your system and the exact commands that you used?

     

    Last edit: versat 2018-04-10

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.