# optional: cd cobalt && git checkout <branch> && cd ..
source infra/activate_cobalt.sh
cmake -S cobalt -B build
make -C cobalt -j
```
The `configure.sh` file loads all the environment modules that are required to build the COBALT software. It also applies the following workarounds:
1) The libraries of the host compiler (GCC 12) need to be added to the `LIBRARY_PATH`.
This will checkout the COBALT repository in the `cobalt` subdirectory, set up your environment and build the COBALT software in the `build` directory.
## Notes: futher patches needed to run tests
The following patches are needed to get the COBALT tests and code to run on the COBALT cluster:
1) The path to libnvrtc-builtins.so (provided by Spack) needs to be added to LD_LIBRARY_PATH. Not doing so raises the error NVRTC_ERROR_BUILTIN_OPERATION_FAILURE.
2) The casacore measures need to be installed:
To get the COBALT tests and code to run on the COBALT cluster, the casacore measures need to be installed: