VerletSFML icon indicating copy to clipboard operation
VerletSFML copied to clipboard

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

Open OnionOnGithub opened this issue 3 years ago • 7 comments

OnionOnGithub avatar Feb 13 '23 16:02 OnionOnGithub

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.

ataberkaslan avatar Feb 15 '23 12:02 ataberkaslan

@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 avatar Feb 18 '23 23:02 xorz57

@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 avatar Feb 19 '23 13:02 OnionOnGithub

@OnionOnGithub You forgot to pass the CMake Toolchain File as an argument when configuring the CMake Cache. image For me that parameter is -DCMAKE_TOOLCHAIN_FILE=C:/Users/xorz57/vcpkg/scripts/buildsystems/vcpkg.cmake

xorz57 avatar Feb 19 '23 17:02 xorz57

thank you so much it works now

OnionOnGithub avatar Feb 19 '23 18:02 OnionOnGithub

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

OnionOnGithub avatar Feb 19 '23 18:02 OnionOnGithub

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!

xorz57 avatar May 30 '23 07:05 xorz57