Easy on Linux/Ubuntu:
git clone https://github.com/yves-chevallier/boids-tests.git
cd boids-tests
sudo apt install -y libsfml-dev libtgui-dev libglew-dev libgl1-mesa-dev libglu1-mesa-dev
sudo apt install -y make cmake build-essential
mkdir build && cd build
cmake ..
make
On WSL, the geometry shader is not available unfortunately. I did not find a solution to run it. However it is possible to build on Windows.
This project can be built on Windows using Visual Studio 2022 and vcpkg for dependency management. You need to install the 20GB Visual Studio Community before...
-
Clone the Repository
git clone https://github.com/yves-chevallier/boids-tests.git cd boids-tests
-
Install Dependencies with vcpkg
- Install vcpkg following these instructions.
- Install required libraries:
.\vcpkg\vcpkg install sfml tgui glew
-
Configure Visual Studio with vcpkg
-
Integrate vcpkg with Visual Studio:
.\vcpkg\vcpkg integrate install
-
Open the project in Visual Studio.
-
Set the vcpkg toolchain in CMake settings (Project > CMake Settings for [your project]) to
[path to vcpkg]/scripts/buildsystems/vcpkg.cmake
.
-
-
Build and Run the Project
- In Visual Studio, right-click on
CMakeLists.txt
and select Build All. - Run the application by setting it as the startup item and pressing
F5
.
- In Visual Studio, right-click on
- If you encounter any issues, first ensure all dependencies are correctly installed and accessible to Visual Studio.
- Clearing the CMake cache (CMake Cache > delete) can resolve many configuration issues.
The different solutions are:
- Quadtree/Octree
- Grid-Based Spatial Hashing
- Bin Lattice Spatial Subdivision