Hi,
It seems "make clean" might be the trigger here. The target for the
libeval grammar is done with CMake add_custom_command with an OUTPUT.
This means the output file will be cleaned on "make clean", but as the
grammar.c is not then regenerated by default, it will be missing until
checked out from Git.
Here's a patch to use add_custom_target instead. Any CMake wizards are
invited to criticise if I have misunderstood. At least from my tests,
"make clean" no longer removes grammar.c and the target can still be
used to (re)generate it.
Here's a bug report so we can tie back with the Fixes: line and find
this issue in future: https://bugs.launchpad.net/kicad/+bug/1809610
Cheers,
John
On Sun, Dec 23, 2018 at 1:27 AM Nick Østergaard <oe.nick@xxxxxxxxx>
wrote:
Hi Lachlan,
Are you sure that your workspace is clean? I don't see any issues on
any platform.
Nick
On Sat, 22 Dec 2018 at 06:53, Lachlan Audas <laudas1@xxxxxxxxx> wrote:
>
> Hi, just pull the lest-est developer build from git-hub for KiCad
> and tried compiling it. But but get this Error, missing file "grammar.c"
> >kicad-source-mirror/common/libeval/numeric_evaluator.cpp:36:21: fatal error: grammar.c: No such file or directory
> #include "grammar.c"
>
> the 5.0.2 version has the file, but not the developers version
> Any one else seen this ?
>
> Lachlan
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp