avast / yarang

Alternative YARA scanning engine
MIT License
66 stars 6 forks source link

make error: json/json.hpp: No such file or directory #1

Closed yunmengren closed 2 years ago

yunmengren commented 2 years ago
/include/yaramod/utils/json.h:9:10: fatal error: json/json.hpp: No such file or directory Why can't find json.hpp How can i solve this problem
metthal commented 2 years ago

How did you install yaramod? I recommend doing something like this

git clone git@github.com:avast/yaramod.git && cd yaramod
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install ..
cmake --build . --target install -- -j

and then in yarang

mkdir build && cd build
cmake -DYARAMOD_ROOT_DIR=<PATH_TO_YARAMOD>/install ..
cmake --build . -- -j

It should take care of everything and you shouldn't have to install anything additional.

yunmengren commented 2 years ago

Thx, I did install yaramod as recommended, but solved the yarang build problem by upgrading the g++ version (g++ 9.3.0 => 10.3.0)