Provided you have all the necessary system libs installed on a clean Debian 10.5 install, the compilation of janus should be going smooth and without errors.

apt-get install git cmake libssl-dev autoconf gtk-doc-tools libtool libglib2.0-dev python3-pip libconfig9 libcrypto++6 libjansson4 libjansson-dev libconfig++9v5 libconfig-dev libconfig-doc libconfig++-dev gengetopt