- Install OpenGL:
sudo apt install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev mesa-utils
- Install GLFW and GLM:
sudo apt install libglfw3-dev libglm-dev
- Visit Glad Tool to get OpenGL bindings for c++.
- Place
glad.c
in src. - Place the
glad
folder in theinclude
directory.
The project should look like this by now:
fluid_sim
├── build.sh
├── CMakeLists.txt
├── docs
│ └── image.png
├── include
│ ├── fluid_sim.h
│ └── glad
│ └── glad.h
├── README.md
├── run.sh
└── src
|── fluid_sim.cpp
├── glad.c
└── main.cpp
5 directories, 10 files
From the root workspace, run:
./build.sh
./run.sh