Skip to content

Compiling CarGame from source

SITSGameDev edited this page Jul 12, 2019 · 3 revisions

If your binary is not working on your system, you can compile it yourself.

The language is C++. Your compiler must be compatible with C++11 to compile game.

Dependencies

Dependencies for CarGame (v0.1 beta) are:

  • SFML (2.4.2 or later, download from this page)
  • HackerMan Util (1.0 or later, included)

In Beta 0.2 another dependence will be CarGameUI (included). It also has SFML as dependence.

Creating project

  1. First download source code from Github (in "Releases" or by git clone https://github.com/sppmacd/CarGame)
  2. Download dependency archive from "Releases" (file cargame-deps-.zip)
  3. Create new project in your IDE.
  4. Configure SFML - https://www.sfml-dev.org/tutorials/2.5/#getting-started
  5. Add hmUtil library directories (headers in deps/hmUtil/include, binaries in deps/hmUtil/lib). You can compile hmUtil from source (also included), the libraries are compiled with:
    • GCC x86_64-7.2.0-release-win32-seh-rt_v5-rev0 (MINGW64) - 64 bit
    • GCC i686-8.1.0-win32-dwarf-rt_v6-rev0 (MINGW32) - 32 bit (like official compilation of CG)

Linking libraries in IDEs:

Clone this wiki locally