I am using Linux with a version CentOS Linux release 7.9.2009 (Core) in Termius. I was trying to install hydroPSO, but always encountered an error shown below:
proj.cpp: In function ‘Rcpp::NumericMatrix CPL_proj_direct(Rcpp::CharacterVector,
Rcpp::NumericMatrix, bool, bool, bool)’:
proj.cpp:281:14: error: ‘proj_normalize_for_visualization’ was not declared in this scope
PJ *NewP = proj_normalize_for_visualization(PJ_DEFAULT_CTX, P);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The hydroPSO requires a successful installation of the dependency package sf and I think this error came from sf. I loaded the module proj with version 6.0.0.
This error keeps repeating no matter what I tried. May I ask how to solve this in my Linux environment?