Homebrew is a package manager for Mac OS X. It uses formulae scripts to compile the software on your system. If you already have Homebrew installed, you can skip this step.
Install cryptopp manually (it is no longer available via brew). Make sure to use latest version, in case it is 8.5.0, you can try this:
wget https://github.com/weidai11/cryptopp/archive/refs/tags/CRYPTOPP_8_5_0.zip
unzip CRYPTOPP_8_5_0.zip && cd cryptopp-CRYPTOPP_8_5_0
make shared all
make install