Compilation Error "fatal error: json/json.h: No such file or directory"

Trying to compile current OpenWrt SNAPSHOT r13881-bae4204e34 / LuCI Master git-20.200.48516-dcac704 firmware on Raspberry Pi 4 Model B 4GB.
I'm getting this error:

--------------cut
[ 40%] Built target ubox
make[6]: Entering directory '/home/alan/openwrt/pi/openwrt/build_dir/hostpkg/libubox-2020-07-11-f4e9bf73'
make[6]: Leaving directory '/home/alan/openwrt/pi/openwrt/build_dir/hostpkg/libubox-2020-07-11-f4e9bf73'
make[6]: Entering directory '/home/alan/openwrt/pi/openwrt/build_dir/hostpkg/libubox-2020-07-11-f4e9bf73'
[ 42%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o
/home/alan/openwrt/pi/openwrt/build_dir/hostpkg/libubox-2020-07-11-f4e9bf73/blobmsg_json.c:23:11: fatal error: json/json.h: No such file or directory
  #include <json/json.h>
           ^~~~~~~~~~~~~
compilation terminated.
CMakeFiles/blobmsg_json.dir/build.make:79: recipe for target 'CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o' failed
make[6]: *** [CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o] Error 1
make[6]: Leaving directory '/home/alan/openwrt/pi/openwrt/build_dir/hostpkg/libubox-2020-07-11-f4e9bf73'
CMakeFiles/Makefile2:170: recipe for target 'CMakeFiles/blobmsg_json.dir/all' failed
make[5]: *** [CMakeFiles/blobmsg_json.dir/all] Error 2
---------------cut

How can I resolve this?

Sorry for the delay. I re-cloned the project & it resolved the issue by itself.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.