SFML community forums

Help => General => Topic started by: eyad salah on January 02, 2024, 06:51:20 am

Title: I can't use sfml library with Cmake
Post by: eyad salah on January 02, 2024, 06:51:20 am
I cannot use "SFML" library and I do not understand what is meant by the cmake template. They treat me as if I have been studying programming for 20 years.

Title: Re: I can't use sfml library with Cmake
Post by: eXpl0it3r on January 02, 2024, 10:55:12 am
You haven't followed up on your previous posts that I answered on, nor asked what you're stuck with.
I linked the tutorial for the SFML CMake Template multiple times, that explains what it is, not sure why you can't "understand what is meant by" it...

We don't expect people to be experienced, even though we also will point out that C++ and linking/building libraries isn't really what the SFML community has to teach to people. What we do expect is for people to have the ability to understand how to use a basic forum software, to not spam people or the forum (if they want to engage with the community), and to be able to write good questions, communicate clearly and follow up on open discussions, instead of just creating new, disconnected ones.
Title: Re: I can't use sfml library with Cmake
Post by: Hapax on January 02, 2024, 07:31:19 pm
If you want to avoid using CMake, you'll need to prepare it for yourself and there are tutorials here for that too.

You've mentioned your OS is Windows 10 (in one of your other separate posts) so, presuming you're using Visual Studio, you can follow this tutorial:
https://www.sfml-dev.org/tutorials/2.6/start-vc.php

The SFML download you'll need is "Visual C++ 17 (2022) - 64-bit" from here:
https://www.sfml-dev.org/download/sfml/2.6.1/