Skip to content
Benjamin Hautbois edited this page Jan 17, 2014 · 1 revision

You need (version number may not be up to date, version from 21/02/2012):

In order to set your environment:

  1. Install QtSDK
  2. Install python
  3. Install scons
  4. Install OpenAL
  5. Copy pkg-config.exe from the pkg archive to C:/QtSDK/mingw/bin
  6. Copy libglib-2.0-0.dll from the glib archive to C:/QtSDK/mingw/bin
  7. Copy libintl-8.dll from the glib archive to C:/QtSDK/mingw/bin
  8. Copy libintl-8.dll to intl.dll to the same directory (pkg-config is linked to intl.dll instead of libintl-8.dll)

In order to configure QtCreator to build with SCons:

  1. Open the project S5engine.creator
  2. Go to the projects tab
  3. Select mingw as gcc for your toolsuite
  4. Remove all the build step and add a custom one
    • tick "activate custom steps"
    • command : scons
    • working dir : (not S5engine or demo_game, the parent dir)
    • command arguments : you can set "debug=1" for debug and/or "tools=1" for the tool window (they default to 0)
  5. Do the same for the cleanup steps but add the "-c" argument before (if you forget debug and tool it won't clean the correct folder)
  6. In build environment add the following variables
    • PATH : C:\QtSDK\mingw\bin;C:\QtSDK\Desktop\Qt\4.8.0\mingw\lib;C:\QtSDK\Desktop\Qt\4.8.0\mingw\bin;C:\Python27/Scripts;
    • QTDIR : C:\QtSDK\Desktop\Qt\4.8.0\mingw\

Once compiled the binary goes to /bin// project is either S5engine or demo-game build folder depends of your combinaison with the debug and tool options (debug => debug/release, tool => tool/notool)

Notes:

You need the Qt dll in your path so either run from QtCreator, from the "Qt 4.8 for Desktop (mingw)" command prompt set up by the Qt sdk or deploy the dlls at the right place.

Clone this wiki locally