title: Building SFML on Fedora 24 linking error: error while loading shared libraries: libsfml-graphics.so.2.4: cannot open shared object file
body: <p>I have been trying to get SFML working on Fedora 24 for a few days now and I can't seem to get it to work. The program compiles and links fine, but when I try to run the compiled program I get this error:</p>
  
  <pre><code>./sfml-app: error while loading shared libraries: libsfml-graphics.so.2.4: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I know that the files are there since they are all located in the /usr/lib directory: </p>
  
  <pre><code>ls /usr/lib | grep sfml
  libsfml-audio-d.so
  libsfml-audio-d.so.2.4
  libsfml-audio-d.so.2.4.0
  libsfml-graphics-d.so
  libsfml-graphics-d.so.2.4
  libsfml-graphics-d.so.2.4.0
  libsfml-network-d.so
  libsfml-network-d.so.2.4
  libsfml-network-d.so.2.4.0
  libsfml-system-d.so
  libsfml-system-d.so.2.4
  libsfml-system-d.so.2.4.0
  libsfml-window-d.so
  libsfml-window-d.so.2.4
  libsfml-window-d.so.2.4.0
  </code></pre>
  
  <p>I think the problem is that it is looking for libsfml-graphics.so.2.4 but the file is actually named libsfml-graphics<strong>-d</strong>.so.2.4. The -d is in the actual file name for some reason. I tried making a link to the file without the -d but it still did not work. </p>
  
  <p>I built SFML myself with CMake and <code>make</code> then installed it using <code>make install</code>.</p>
  
  <p>When I run ldconfig -p | grep sfml I get this:</p>
  
  <pre><code>libsfml-window-d.so.2.4 (libc6,x86-64) =&gt; /lib/libsfml-window-d.so.2.4
  libsfml-window-d.so (libc6,x86-64) =&gt; /lib/libsfml-window-d.so
  libsfml-system-d.so.2.4 (libc6,x86-64) =&gt; /lib/libsfml-system-d.so.2.4
  libsfml-system-d.so (libc6,x86-64) =&gt; /lib/libsfml-system-d.so
  libsfml-network-d.so.2.4 (libc6,x86-64) =&gt; /lib/libsfml-network-d.so.2.4
  libsfml-network-d.so (libc6,x86-64) =&gt; /lib/libsfml-network-d.so
  libsfml-graphics-d.so.2.4 (libc6,x86-64) =&gt; /lib/libsfml-graphics-d.so.2.4
  libsfml-graphics-d.so (libc6,x86-64) =&gt; /lib/libsfml-graphics-d.so
  libsfml-audio-d.so.2.4 (libc6,x86-64) =&gt; /lib/libsfml-audio-d.so.2.4
  libsfml-audio-d.so (libc6,x86-64) =&gt; /lib/libsfml-audio-d.so
  </code></pre>
  
  <p>Any help with getting this working will be much appreciated. :)</p>
  
  <p>Edit:<br>
  I got it working downloading the official fedora SFML package. I guess the first time I installed it I forgot to also install the SFML-devel package.</p>