Dear sfml community,
I am trying to build SFML from sources on windows, using cmake and mingw32 and mingw32-make all. I followed the tutorial on the sfml website that explains this (
https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php and
https://github.com/SFML/SFML/wiki/Tutorial%3A-Build-SFML-with-a-MinGW-Compiler).
I have the impression that during compiling all goes well (both for static and shared libraries). However, from the example directory, apart from the one called "window" (rotating cube) none of the examples actually work (island, joystick, opengl, ....) in the sfml-build/examples folder.
For each one the window opens and then quickly closes again.
I have tried looking online what could be wrong, but since I have no error message to search for, I don't know where to look.
My best guess is that maybe some dll file is missing, or perhaps it is compiled with the wrong compiler and then crashes upon loading. But, as explained above, I have compiled from sources with mingw , so I should have the correction versions of the dll's.
Behavior with static or shared compiling is exactly the same: Only the example called "window" works. (Except, in the shared case the examples first complain that they need the dll's, which after copying into the example folder no longer complain)
My compiler version is 11.1.0 (output of gcc -v; target: x86_64-w64-mingw32)
Any ideas on what could be wrong are greatly appreciated!