User Tools

Site Tools


games:serioussam:compileonlinux

Games - Serious Sam - Compile on Linux

Tested on:

  • 2020-07-25 on Slackware64-current with kernel 5.4.53.
  • 2021-06-19 on Obarun Linux (Arch based) with clang 12 and kernel 5.12.11.
  • 2021-11-27 on PCLinuxOS 2021 with clang 12.0.1.
  1. Create the compile directory:
    mkdir -p ~/compile/games/SeriousSam/
  2. Change to the compile directory:
    cd ~/compile/games/SeriousSam/
  3. Clone the ptitSeb/Serious-Engine repository into ptitSeb_Serious-Engine:
    git clone https://github.com/ptitSeb/Serious-Engine ptitSeb_Serious-Engine
  4. Change to the source directory:
    cd ~/compile/games/SeriousSam/ptitSeb_Serious-Engine/Sources/
  5. Compile:
    1. For Obarun/Arch force use of gcc/g++ 10 (as gcc 11 won't compile):
      pacman -Su gcc10 
      export CC=gcc-10
      export CXX=g++-10
    2. For PCLinuxOS 2021 use clang++ as g++ 11 won´t compile:
      export CXX=clang++
    3. For The Second Encounter:
      ./build-linux64.sh
    4. For The First Encounter:
      ./build-linux64.sh -DTFE=TRUE
  6. Create the directory for the game files:
    1. For The Second Encounter:
      mkdir -p ~/games/SeriousSam/TSE/Bin
    2. For The First Encounter:
      mkdir -p ~/games/SeriousSam/TFE/Bin
  7. Copy the compiled executables, .so files, and .gro file:
    1. For The Second Encounter:
      cp -p cmake-build/ssam ~/games/SeriousSam/TSE/Bin/
      cp -p cmake-build/Ecc/ecc ~/games/SeriousSam/TSE/Bin/
      cp -p cmake-build/Debug/* ~/games/SeriousSam/TSE/Bin/
      cp -p ../SE1_10.gro ~/games/SeriousSam/TSE/
    2. For The First Encounter:
      cp -p cmake-build/ssam-tfe ~/games/SeriousSam/TFE/Bin/
      cp -p cmake-build/Ecc/ecc ~/games/SeriousSam/TFE/Bin/
      cp -p cmake-build/Debug/* ~/games/SeriousSam/TFE/Bin/
      cp -p ../SE1_10.gro ~/games/SeriousSam/TFE/
  8. Copy the game files (in this case from a Windows 64-bit Wine prefix with Steam):
    1. The Second Encounter:
      rsync -av ~/.wine64/drive_c/Program\ Files\ \(x86\)/Steam/steamapps/common/Serious\ Sam\ Classic\ The\ Second\ Encounter/ ~/games/SeriousSam/TSE/
    2. The First Encounter:
      rsync -av ~/.wine64/drive_c/Program\ Files\ \(x86\)/Steam/steamapps/common/Serious\ Sam\ Classic\ The\ First\ Encounter/ ~/games/SeriousSam/TFE/
  9. Start the game:
    1. The Second Encounter:
      cd ~/games/SeriousSam/TSE/Bin/
      ./ssam
    2. The First Encounter:
      cd ~/games/SeriousSam/TFE/Bin/
      ./ssam-tfe
games/serioussam/compileonlinux.txt · Last modified: 2021/11/27 11:55 by bas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki