Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: I can't use sfml library with Cmake  (Read 930 times)

0 Members and 1 Guest are viewing this topic.

eyad salah

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
I can't use sfml library with Cmake
« 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.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: I can't use sfml library with Cmake
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: I can't use sfml library with Cmake
« Reply #2 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/
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything