Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


Hi,


slacka wrote
Ideally, the next step would be to extract the "DEFS": and "INCLUDE": from
gbuild-to-ide and pass that to cppcheck. But that's for another time. 


Well, the very name 'gbuild-to-ide' sounds intriguing, but I can't figure
out what it is supposed to do (and how could it help in the cppcheck-report
script context) or how to make it do it's thing (I *really* can't read
python code).

So, my futile attempt was : 

./bin/gbuild-to-ide --ide vim --make make


Which resulted in this:

Traceback (most recent call last):
  File "./bin/gbuild-to-ide", line 1664, in <module>
    gbuildparser = GbuildParser(args.makecmd).parse()
  File "./bin/gbuild-to-ide", line 83, in __init__
    self.binpath = os.path.dirname(os.environ['GPERF']) # woha, this is
quite a hack
  File "/usr/lib64/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'GPERF'


Appearantly, 'gbuild-to-ide' assumes some environment variables are set
(GPERF, SRCDIR, BUILDDIR, INSTDIR, and WORKDIR), but I cannot determine what
would be sane/expected values for these variables. Okay,
SRCDIR/BUILDDIR/INSTDIR seem self-explanatory (but you know what happens
when we assUme), but what are WORKDIR and GPERF ?



- Maarten




--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.