After that make sure to export PKG_CONFIG_PATH=<tree-sitter install dir>/lib/pkgconfig.
Once that is done, emacs should build with tree-sitter smoothly.
--
João Paulo L. de Carvalho Ph.D Computer Science | IC-UNICAMP | Campinas , SP - Brazil Postdoctoral Research Fellow | University of Alberta | Edmonton, AB - Canada