Skip to content
Sayan Sil edited this page Oct 23, 2022 · 10 revisions

Requirements

  • For visualization,
pip install -r visualization/requirements.txt

Setup

  • Navigate to the root directory of the project and set the environment variable ECOSYSTEM_ROOT
cd Ecosystem
export ECOSYSTEM_ROOT=`pwd`
  • List all available build presets. Any of the listed presets can be used to build the project.
cd simulation
cmake --list-presets
cmake --preset <preset-name>
cmake --build --preset <preset-name>
OS Recommended Preset
Linux lin-gcc-rel
OSX osx-clang-rel
Windows win-msvc-rel
  • Create folders with the name of the required species in the directory of their kingdom.
mkdir ../../data/json/animal/<animal-species>
mkdir ../../data/json/plant/<plant-species>

For example,

mkdir ../../data/json/animal/deer
mkdir ../../data/json/plant/bamboo
mkdir ../../data/json/animal/lion
  • Run the setup file generated in the build directory to create/populate required files and databases
./setup/setup
  • Open and edit the pre-populated base.json and modify.json files for the species which were defined earlier. The files will be found inside the directories data/json/<kingdom>/<species>
Clone this wiki locally