Isembart / Boids-Simulation-SFML

Flocking simulation in SFML
Other
2 stars 0 forks source link

Missing dependencies #7

Open yves-chevallier opened 10 months ago

yves-chevallier commented 10 months ago

Your CMakeLists.txt looks incomplete, but eventually it builds...

How to make it work in Ubuntu:

sudo apt install libopenal-dev libflac-dev libvorbis-dev
sudo apt install libxrandr-dev libxcursor-dev
sudo apt install libfreetype-dev libfreetype6 libfreetype6-dev
sudo apt install pkg-config
pkg-config --cflags freetype2
mkdir build
cd build
cmake ..
make
Isembart commented 10 months ago

Thanks for your issue, I made it so CMake copy arrow sprite to build folder. Do you have an idea on how to make CMake automatically install dependencies if it detects you're using linux? I thought SFML handles that

kiner-shah commented 3 months ago

It's better if you just mention SFML as a pre-requisite for building the project. How to install SFML can differ based on the OS. Just use find_package(SFML REQUIRED) in your CMakeLists.txt, if not found, it throws an error.