- Download and extract MinGW Builds 7.3.0 (64-bit) and the MinGW GCC 7.3.0 (SEH) version of SFML.
- Copy the content inside
x86_64-7.3.0-release-posix-seh-rt_v5-rev0namedmingw64into your WindowsProgram Filesfolder. - Rename the folder inside
SFML-2.5.1-windows-gcc-7.3.0-mingw-64-bitfromSFML-2.5.1toSFMLand also copy this folder to your WindowsProgram Filesfolder. - Open the
Windows Control Paneland navigate toSystem Security->System->Advanced System Settings-> Tab:Advanced->Environment Variables.... - Go to
System variablesand search for thePathvariable. - Mark the line and click
Edit.... - Use
Browse...and search for yourProgram Filesfolder. Mark theSFMLdirectory and clickOk. - Also search for the
mingw64folder, mark the subdirectorybinand clickOk. - Close all unnecessary windows.
- Install the standard
gcccompiler with the general debuggergdband alsocmake. - Search in your repositories for the
SFMLpackage and install it. If there is no package for you, download the SFML package directly from the official website. - Insert the files inside the folder
SFML-2.5.1in/usrwith root privileges. (like so:/usr/include/SFML/...,/usr/lib/libsfml-audio.so,/usr/lib/...,/usr/share/SFML/...)
[...]
- Start the CLion IDE and look for the Toolchains under
File->Settings->Build, Execution, Deployment->Toolchains.- For Windows use the
MinGWenvironment (default option). - For Linux let CLion search for the tools (default option).
- For Windows use the
- Select the current project.
- Wait for CMake to generate the CMakeCache. If this does not happen go to the CMake tab and click the Refresh button.
- Wait for CLion to index all Header files.
- Click the play button and enjoy!
Responsible team member: @lrichter