can you pls make a sfml totorial i really need one im stuggeling with installing it the only ones i found are with 2019 i have 2022 pls just help
Visual Studio 2022 also supports 2019 projects so you can follow the tutorials you found. Also you can check SFML installation page.
You can find repo with VS2022 project files in ataberkaslan / VerletSimulation.
@OnionOnGithub You could give vcpkg a try!
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
vcpkg install sfml:x86-windows sfml:x64-windows
vcpkg integrate install
@xorz57 sorry to borther you again i made the things you sayed with vcpk and i tryed to run the ant simulation thing and i got this error CMake Error at CMakeLists.txt:9 (find_package): By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SFML", but CMake did not find one.
Could not find a package configuration file provided by "SFML" (requested version 2) with any of the following names:
SFMLConfig.cmake
sfml-config.cmake
Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set "SFML_DIR" to a directory containing one of the above files. If "SFML" provides a separate development package or SDK, be sure it has been installed. also there are 3 red lines i have no idear what to do anymore i watch like 15 videos about that stuff but i dont get it
@OnionOnGithub You forgot to pass the CMake Toolchain File as an argument when configuring the CMake Cache.
For me that parameter is -DCMAKE_TOOLCHAIN_FILE=C:/Users/xorz57/vcpkg/scripts/buildsystems/vcpkg.cmake
thank you so much it works now
Nevermind i got cmake do smake stuff and are able to open it in visual studio and i try to run it but it does not work im really new to cmake and smfl so idk what the problem is if i try to run it in visual studio it cant find a file im so lost and im really sorry for that
I opened pull request #9 to fix this. I had trouble getting this project to run on windows but after what I did it now works on windows and linux whether you use a package manager like conan/vcpkg or not!