It turns out that for the compilation of the code one additional package is needed, namely fop. So download the the binary from Apache fop (https://xmlgraphics.apache.org/fop/).
cd ~ mkdir fop tar -xvzf fop*.tar.gz
Next add it in your path so that it can be found. Also it turned out that doxygen must be added into the path to compile the code, so remove the alias made in the previous post. In your bashrc add
and source your bashrc again.
Now you should be good to go to compile ReFRESCO!