======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.
- Create the compile directory: mkdir -p ~/compile/games/SeriousSam/
- Change to the compile directory: cd ~/compile/games/SeriousSam/
- Clone the [[https://github.com/ptitSeb/Serious-Engine|ptitSeb/Serious-Engine]] repository into ptitSeb_Serious-Engine:git clone https://github.com/ptitSeb/Serious-Engine ptitSeb_Serious-Engine
- Change to the source directory: cd ~/compile/games/SeriousSam/ptitSeb_Serious-Engine/Sources/
- Compile:
- For Obarun/Arch force use of gcc/g++ 10 (as [[https://github.com/ptitSeb/Serious-Engine/issues/36|gcc 11 won't compile]]):pacman -Su gcc10
export CC=gcc-10
export CXX=g++-10
- For PCLinuxOS 2021 use clang++ as g++ 11 won´t compile:export CXX=clang++
- For The Second Encounter:./build-linux64.sh
- For The First Encounter:./build-linux64.sh -DTFE=TRUE
- Create the directory for the game files:
- For The Second Encounter:mkdir -p ~/games/SeriousSam/TSE/Bin
- For The First Encounter:mkdir -p ~/games/SeriousSam/TFE/Bin
- Copy the compiled executables, .so files, and .gro file:
- 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/
- 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/
- Copy the game files (in this case from a Windows 64-bit Wine prefix with Steam):
- The Second Encounter: rsync -av ~/.wine64/drive_c/Program\ Files\ \(x86\)/Steam/steamapps/common/Serious\ Sam\ Classic\ The\ Second\ Encounter/ ~/games/SeriousSam/TSE/
- The First Encounter: rsync -av ~/.wine64/drive_c/Program\ Files\ \(x86\)/Steam/steamapps/common/Serious\ Sam\ Classic\ The\ First\ Encounter/ ~/games/SeriousSam/TFE/
- Start the game:
- The Second Encounter:
cd ~/games/SeriousSam/TSE/Bin/
./ssam
- The First Encounter:
cd ~/games/SeriousSam/TFE/Bin/
./ssam-tfe