Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Compilation

Navet56 edited this page Apr 16, 2020 · 72 revisions

Warning: OpMon uses C++17 features. Make sure your compiler is compatible with these. We recommend using GCC version 7 or higher.

Windows

Download and install the SFML library

  • Download SFML here (Take the version matching your compiler. If you don't have one yet, we recommend you to download the build for "GCC 7.3.0 MinGW (DW2) - 32-bit")
  • Note: If there is no download for your compiler version, you'll have to build SFML yourself.
  • Extract in a folder
  • Add bin, lib and include folder of SFML in the Windows path.

Download and install GCC

If you don't already have a compiler (Instructions for GCC 7.3.0 MinGW (DW2) - 32-bit, if you have downloaded the matching SFML build according to our recommendation)

  • Download MinGW here
  • Extract
  • Add the bin folder of MinGW in the Windows path.

Download and install CMake

  • Download and install cmake
  • In the cmake installation, don't forget to check "Add CMake to the system PATH"
    • You can check by typing "path" in CMD and verifying the cmake path is present. If it's not, add it manually.

Compile the game

Instructions for MinGW, you only have to change the generator if you're using another compiler (see cmake --help)

  • Download OpMon source (Develop branch)
  • Extract
  • Go to the OpMon folder
  • Open CMD or Powershell and use cmake :
    • cmake . -G "MinGW Makefiles" (Add -DCMAKE_BUILD_TYPE=Debug if you want to get a debug build)
    • cmake --build .
  • Note: You can also use cmake-gui.
  • Copy the data folder in bin/Release
  • You can now launch the game!

GNU/Linux

All GNU/Linux distributions :

  • Install the dependencies according to your GNU/Linux system, click here to show the dependencies.

  • Download the OpMon repository

  • Extract!

  • Create bin folder (in the OpMon-develop folder) and in the bin folder, create a Release folder

  • Open a terminal in the OpMon-develop folder and type :

  • ./build-and-run.sh
    If it doesn't work, type :

submodule update --init
mkdir build && cd build
cmake .. #If you want to build in Debug, use -DCMAKE_BUILD_TYPE=Debug
make
sudo make install # install the game into your system
make package # generate both .deb package and .tar.gz package
If there is a problem : ####We answer as soon as we can on this discord

openSUSE Installation :

openSUSE users can add games repos and install OpMon like this:

zypper ar -f obs://games games
zypper ref
zypper in opmon

rpms can currently be downloaded here

Here you can see recipe to build the rpm Here (Github) or here (OpenSUSE)

by jubalh

Mac OS

Please fix me ! (suggest us your modifications on the discord)

  • Install SFML (click on SFML 2.x.x then on Download in the mac section) and CMake for macOS.
  • Install OpMon dependancies (gcc, libstdc++, smpeg librairy)
  • Download OpMon here.
  • Generate a Makefile to compile with CMake : cmake
  • Compile OpMon : make
  • Copy the data folder in which opmon executable file is located.
  • Start OpMon! 👍
Clone this wiki locally