- 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-rev0
namedmingw64
into your WindowsProgram Files
folder. - Rename the folder inside
SFML-2.5.1-windows-gcc-7.3.0-mingw-64-bit
fromSFML-2.5.1
toSFML
and also copy this folder to your WindowsProgram Files
folder. - Open the
Windows Control Panel
and navigate toSystem Security
->System
->Advanced System Settings
-> Tab:Advanced
->Environment Variables...
. - Go to
System variables
and search for thePath
variable. - Mark the line and click
Edit...
. - Use
Browse...
and search for yourProgram Files
folder. Mark theSFML
directory and clickOk
. - Also search for the
mingw64
folder, mark the subdirectorybin
and clickOk
. - Close all unnecessary windows.
- Install the standard
gcc
compiler with the general debuggergdb
and alsocmake
. - Search in your repositories for the
SFML
package 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.1
in/usr
with 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
MinGW
environment (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