Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Latest commit

 

History

History
80 lines (49 loc) · 2.54 KB

install_windows.md

File metadata and controls

80 lines (49 loc) · 2.54 KB

Install on Windows

  1. Get the right version
  2. Download and install Qt Creator (once)
  3. Download and install SFML (once)
  4. Let Qt Creator find SFML library (once per project file)

0. Get the right version

The hardest part about the installation is to realize that using the correct version really matters, in all three cases. Here is a zoom-in off all three cases.

The SFML version:

The Qt version:

The Qt tool version:

Look how nice they match :-)

1. Download and install Qt Creator (here)

Use all defaults, up until the Qt Maintenance tool is started. Here, you will need to check two boxes:

    1. Now Qt 5.14.2 belongs to Archive because it is an old version, before you can see it in the installer, we need to first show all the archived packages, following the steps on the screenshot. image
    1. Now we can see Qt 5.14.2, we tick it and expand it so that we could also see the correct version of MinGw (7.3.0). image

2. Download and install SFML

  • Unpack the zip, it will create a folder called SFML-2.X.Y (where X and Y are version numbers)
  • Rename that folder to sfml
  • Move that folder to within C:/Qt. Its new path will be C:/Qt/sfml

3. Let Qt Creator find SFML library

If you run the Qt Creator project now, you will get a During Startup program exited with code 0xc0000135 error. This means it cannot find the path.

  • In Qt Creator, click 'Projects' (at the left vertical menu bar), go to 'Build', go to 'Build Environment', add to the Path variable: ;C:\Qt\sfml\bin

4. Clone the game and magic_enum library

Also do

git clone https://github.com/Neargye/magic_enum.git

in a folder besides the game folder, e.g.

git clone https://github.com/tresinformal/game.git
git clone https://github.com/Neargye/magic_enum.git