if you are building from git cloned source and are getting missing library errors,
you may have to search for them using
sudo apt update
then do
sudo apt-cache search X
where "X" is a meaningful search phrase. For example,
sudo apt-cache search libindi