Installing CASToR _v3.1.1

I am a new user of CASToR and am installing it but I got an error message. How to manage it
CASToR/castor_v3.1.1/src/management/sOutputManager.cc:125:23: error: ‘CASTOR_CONFIG’ was not declared in this scope
string tmp_path = CASTOR_CONFIG;

Can you share the command line that you used to compile CASToR? One needs to properly set the CASTOR_CONFIG variable to the path of the config folder of CASToR, which is typically located in CASToR source folder (in case of doubt, the content of the folder config should be a set of various folders: algorithms, convolver, dynamic…). If you are using CMake, you can set the variable using something like cmake -DCASTOR_CONFIG path/to/your/castor/config ….

You can also try to set the variable after compilation and see if it helps (export CASTOR_CONFIG=path/to/your/castor/config).

Good luck!