Spydr06/CSpydr

Error on build - json-c/json_object.h: No such file or directory

Its-Kenta opened this issue · 5 comments

Error when building, looks like paths are wrong?

    8 | #include <json-c/json_object.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/compiler/CMakeFiles/libcspc.dir/build.make:104: src/compiler/CMakeFiles/libcspc.dir/ast/ast_json.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1293: src/compiler/CMakeFiles/libcspc.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

have you json-c installed?

That would explain it.
Any chance we can add json-c as a dependency in INSTALL.md?

sure, I probably missed that

also, I should maybe make it optional, since it currently only is needed for a non-working AST-to-json converter

Thanks, will close my issue now