Setting Up SFML 2.4.2 with CodeBlocks 16.01 - Get started making games in C++
У вашего броузера проблема в совместимости с HTML5
This is a quick video on how to install SFML to use with Codeblocks. I have tested this with SFML 2.4.2 and Codeblocks 16.01 on a Windows 10 machine. I believe the setup for a Linux-based machine will be the same. I use Xcode with SFML on Mac so I haven't tested it there yet.
Some important links and info from video:
Direct link to the correct version of SFML for Codeblocks -
https://www.sfml-dev.org/files/SFML-2.4.2-windows-gcc-4.9.2-tdm-32-bit.zip
Here is the link order for libraries (3:30 in the video):
sfml-graphics-s-d
sfml-window-s-d
sfml-audio-s-d
sfml-network-s-d
sfml-system-s-d
freetype
opengl32
jpeg
gdi32
winmm
ws2_32
openal32
flac
vorbisenc
vorbisfile
vorbis
ogg
Common Errors:
1. If you see a confusing error message that makes no sense (the error has a ton of random seeming letters in it) - that is most likely caused by having the link libraries in the wrong order, double check that they match what I have in the video.
2. Error: No such file as sfml-xxxxxxx-s-d. This is usually a spelling error...in particular make sure you didn't accidently add an "s" on the the end of the sfml-window line.
If this was helpful consider supporting our Patreon! https://www.patreon.com/problemsonpurpose
Thanks!