Sorry for wall of text. I want to run pong example project from SFML .sln project.
Please, I really tried many times, but cannot understand what is wrong with
https://www.sfml-dev.org/files/SFML-2.5.1-sources.zip.
My staff:
win10, CMake 3.2.2.1, MSVC 17.35 (2022), SFML 2.5.1.
My steps:
Downloaded sources.
Fed them to the CMake.
CMAKE_BUILD_TYPE: Release (ignored it due to
https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php).
SFML_BUILD_EXAMPLES: yes.
Other options left by default.
Configure, generate.
Opened MSVC.
Left all project settings by default.
Built ALL_BUILD Debug and Release.
Went to Common properties, set startup project, Current selection, select pong project.
I tried to RUN pong debug version and got "missed sfml-window-d-2.dll" and audio, graphics, system.
I tried to run pong release version and got the same, but sfml-window-2.dll.
What is wrong? All settings in project look correctly! C/C++ and Linker nodes look correctly! They lead to sfmlb\lib\Debug and sfmlb\lib\Release respectively to Debug and Release configuration (
https://www.sfml-dev.org/tutorials/2.5/start-vc.php#top)
Of course, if I manually add these .dll in pong/debug and pong/release (and supplied with correspond resource folder) - it works! But indeed - it is bad manually solution.