SFML community forums
Help => General => Topic started by: abcnb on October 13, 2022, 07:52:01 am
-
https://www.sfml-dev.org/download/sfml/2.5.1/ ---> Source code ---> CMake (SFML_BUILD_EXAMPLES) ---> MSVC ---> build.
Then \examples\opengl\Debug will not have resource folder with background.jpg, sansation.ttf and sansation.jpg.
Have I lost something?
-
Unlike C# there isn't an easy "copy to output" option for C++.
I suggest to build the install target, which should move the resources and executable into the same directory.
-
But why are there images in this compiled libraries https://www.sfml-dev.org/files/SFML-2.5.1-windows-vc15-64-bit.zip ? Just because someone added them manually?
For example: SFML-2.5.1-windows-vc15-64-bit\SFML-2.5.1\examples\pong\resources, so pong.exe can be run immediately (it is very convenience!).
-
As I said, you'll get that if you build the INSTALL target.
Just building things, will generate the executables, but not copy around any resources
-
I think I understand and my assumption was right. Many thanks.