If i compile 2.5.1 on my computer with gcc 7.3.1, I just need to copy lib folder on my own lib folder and do the same with include folder ?
The standard way is to put your install path into the CMAKE_INSTALL_PREFIX variable at configure time, and then run "make install" after compiling the project. Manually copying files is error prone, and rarely the right way to install a library.
Note that you can install SFML wherever you want and tell the compiler/linker where it is with -I and -L options, if it's not a standard path.
So my advice would be to remove all SFML files from your Linux (including any previous version still hanging around), and then make a fresh (and correct) install.
And yes, if your initial problem is really a
crash, and not just this valgrind output, then please post details about it (run a debugger).