FS#59920 - [cppcheck] Failed to load 'std.cfg'

Attached to Project: Community Packages
Opened by t27049215 (t27049215) - Tuesday, 04 September 2018, 06:03 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 04 September 2018, 14:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Similar symptom as described in  FS#57739 .
(Seems not possible to add comments in a closed report, so here is a new one)


Select menu Analyze -> Directory, select some directory and the following pops up:
```
Failed to load the selected library 'std.cfg'.
File not found
```
```
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.
```

Additional info:
* package version: cppcheck 1.84-1

The reason is CFGDIR doesn't properly propagates to gui/Makefile.
The following will do it correctly:
```
qmake HAVE_RULES=yes HAVE_QCHART=yes DEFINES+=CFGDIR='\\\"/usr/share/cppcheck/cfg\\\"'
make SRCDIR=build
```
This task depends upon

Closed by  Doug Newgard (Scimmia)
Tuesday, 04 September 2018, 14:34 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#57739 

Don't do that
Comment by t27049215 (t27049215) - Tuesday, 04 September 2018, 06:04 GMT
Oops, accidentally included `HAVE_QCHART=yes` in it, please either omit it or add 'qt5-charts' as dependency.

Loading...