Install these before building:
Ubuntu/Debian:
sudo apt update
sudo apt install -y libopencv-dev libhdf5-devmacOS (Homebrew):
brew install opencv hdf5If CMake can't find HDF5 automatically, you may need to specify the paths:
# Find HDF5 paths
brew --prefix hdf5
# Example output: /opt/homebrew/opt/hdf5
# Find the cmake config directory
ls /opt/homebrew/opt/hdf5/lib/cmake/
# Example output: hdf5-1.14.6Then configure with:
mkdir build && cd build
cmake .. -DHDF5_DIR=/opt/homebrew/opt/hdf5/lib/cmake/hdf5-1.14.6
cmake --build . -j4# Create build directory
mkdir build && cd build
# Configure (uses FetchContent for most dependencies)
cmake ..
# Build
cmake --build . -j4OpenMP is auto-detected. On Linux with GCC, it will be enabled automatically.
macOS: OpenMP requires GCC (not Clang). To enable:
brew install gcc
export CC=/opt/homebrew/bin/gcc-15
export CXX=/opt/homebrew/bin/g++-15
cmake ..Linux: Install GCC if not present:
sudo apt install build-essential# After building
./build/examples/run_model_metrics <config_file># Run tests
cd build && ctestsrc/dynein_cell_model/- Main cell model libraryexamples/- Example executablesscripts/- Python analysis scriptscmake/- CMake configuration files