18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-05 16:55:32 +01:00
jerrrrycho bc7a23873f docs: system requirements after the OpenGL 4.6 renderer (GE#554)
README: the requirements section becomes "System requirements", with the
minimum and the recommended configuration, the OpenGL 4.6 and Vulkan 1.4
generations of NVIDIA, AMD and Intel, the AVX2 processors and the build
without AVX2, and the Linux runtime of the CI builds. The RAM, VRAM,
disk and processor figures are carried over from the release readme and
marked as not measured again. The build prerequisites now name CMake
3.26 (cmake_minimum_required) and the optional Vulkan 1.4, the badge
C++20.

docs/opengl46-renderer.md: what the renderer needs beyond the core of
OpenGL 4.6 (S3TC, sRGB, 16 storage buffer binding points) and that a
build without AVX2 exists.
2026-12-03 15:25:26 +01:00
2017-10-28 19:21:37 +02:00
2025-09-19 17:53:46 +02:00
2015-04-03 21:58:35 +08:00
2026-04-01 20:10:33 +02:00
2026-05-11 18:21:12 +02:00
2025-09-09 16:46:12 +02:00
2026-02-25 08:30:20 +01:00
2025-03-09 15:36:11 +01:00
2021-02-13 18:32:19 +01:00
2019-07-09 22:09:37 +02:00

Repo banner

MaSzyna - Railway vehicle simulator

Website · Report an issue · Community Discord · MaSzyna on Steam · MaSzyna on Epic Games Store

Discord Github Actions Quality gate Sonar cloud violations License: MPL 2.0 Last commit Open issues Pull requests GitHub stars GitHub forks C++ Windows Linux OpenGL

MaSzyna executable source code is licensed under the MPL 2.0 and comes with a large pack of free assets under a custom license.

Table of Contents

Getting Started

MaSzyna compiles and runs natively on Linux and Windows. Other platforms are not tested.

Heads-up
Our dev team is small; we keep improving the build process, but issues may still occur. If you get stuck, please ask on the official Discord server.

Prerequisites

For runtime requirements see System requirements.

1) Software (oldest tested in parentheses)

  • CMake (3.26)

  • make

  • A C++ compiler with C++20 support:

    • Windows: Visual Studio 2022

    • Linux: GCC (12.3.1)

Note: MinGW is currently not supported.

2) Libraries (oldest tested in parentheses)

3) Graphics API

  • OpenGL 4.6 (core profile), required by the default renderer; see docs/opengl46-renderer.md

  • Vulkan 1.4, optional, for the Vulkan renderer (-DWITH_VULKAN=ON, the default; the headers come from the ref/Vulkan-Headers submodule, the loader is loaded when the program runs)

CMake flags

Flag Meaning
-DCMAKE_BUILD_TYPE=Debug Debug build
-DCMAKE_BUILD_TYPE=Release Release build
-DCMAKE_BUILD_TYPE=RelWithDebInfo Release build with debug symbols
-DUSE_SYSTEM_JSON=ON/OFF Use an installed nlohmann_json 3.9 or newer (e.g. nlohmann-json3-dev, vcpkg nlohmann-json) instead of the ref/json submodule (default OFF)
-DPython3_ROOT_DIR=<path> Root of the Python 3.14 install on Windows (python.exe, Lib, DLLs) for embed/copy steps; on Linux, optional if CMake picks the wrong interpreter

macOS note: macOS provides OpenGL only up to 4.1, so the OpenGL 4.6 renderer does not run there.

Windows

Install Python 3.14 x64 from python.org and include the optional Python native development feature (headers and .lib for embedding). Pass -DPython3_ROOT_DIR="C:\Path\To\Python314" on the cmake line when you want the layout under that directory used for embedding and for copying Lib / DLLs next to the executable. The cab screens are drawn with Pillow: install it into that Python (python -m pip install Pillow) before building, so it is copied along with Lib.

AppVeyor CI builds with the worker image’s preinstalled Python at C:/Python314-x64 (see appveyor.yml: -DPython3_ROOT_DIR=...).

# Clone repository with submodules
git clone --recursive https://github.com/MaSzyna-EU07/maszyna.git

cd maszyna

# Init vcpkg
call setup.bat

# Create directory for CMake build files
mkdir build
cd build

# Generate CMake project (replace %CONFIG% with Debug/Release/RelWithDebInfo)
cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=%CONFIG%

# Build (replace %CONFIG% accordingly)
cmake --build . --config %CONFIG% --parallel

Linux

# Install dependencies (Fedora/RHEL family)
sudo dnf install -y \
  @development-tools \
  cmake \
  mesa-libGL-devel \
  glew-devel \
  glfw-devel \
  python3.14-devel \
  libpng-devel \
  openal-soft-devel \
  luajit-devel \
  libserialport-devel \
  libsndfile-devel \
  gcc \
  g++ \
  wayland-devel \
  wayland-protocols-devel \
  libxkbcommon-devel

# Clone repository with submodules
git clone --recursive https://github.com/MaSzyna-EU07/maszyna.git

cd maszyna

# Create directory for CMake build files
mkdir build
cd build

# Generate Makefiles
cmake ..

# Compile using all cores
make -j"$(nproc)"

Tip (Ubuntu/Debian): Package names differ; install equivalent build-essential, libgl1-mesa-dev, libglew-dev, libglfw3-dev, python3.14-dev, libpng-dev, libopenal-dev, libluajit-5.1-dev, libserialport-dev, libsndfile1-dev, and Wayland/X11 dev packages as needed.

Installing

There is no make install yet. Copy the built executable to your MaSzyna installation manually.

  • Output directory: ./bin

  • File name format: eu07_YYYY-MM-DD_<commit>[_d]

    • YYYY-MM-DD – build date

    • <commit> – short commit hash

    • _d – present in Debug builds

If you already have the MaSzyna assets, copy the executable to the install dir. Assets can be downloaded from eu07.pl.

Rainsted on Linux

If Rainsted (a third‑party starter) fails to detect the executable under Linux, you can create a small wrapper script named eu07.exe:

#!/bin/sh
./eu07 "$1" "$2" "$3" "$4" "$5"

If detection still fails, padding the file (with comments) up to ~1 MB may help.

Known Issues

  • GLFW linking – On some systems you must provide the GLFW library path explicitly with -DGLFW3_LIBRARIES.

  • X11/Wayland linking order – Linking order of X11 and related libs can matter.

Support

System requirements

MaSzyna needs a 64-bit x86 processor (x86-64) and a 64-bit system: Windows or Linux. macOS is not supported: it provides OpenGL only up to 4.1.

Minimum Recommended
OS Windows 10 64-bit; Linux x86-64 (the CI builds need glibc 2.39 and the C++ library of GCC 13 or newer, as in Ubuntu 24.04) Windows 10/11 64-bit; Linux as in the minimum
Processor 4 cores with AVX2 (e.g. Intel Core i5-4430 / AMD Ryzen 3 1200) 4 cores with AVX2 at 3 GHz or more (e.g. Intel Core i5-6600 / AMD Ryzen 5 1600); more cores help
RAM 6 GB 16 GB
Graphics card OpenGL 4.6 (core profile), at least 1 GB VRAM OpenGL 4.6, at least 6 GB VRAM; Vulkan 1.4 for the optional Vulkan renderer
Disk 150 GB of free space 250 GB of free space on an SSD
Sound Stereo sound card supported by OpenAL (OpenAL Soft is included)
Other Optional COM ports for custom control panel setups

The RAM, VRAM, disk and processor figures are those of the previous release and have not been measured again with the OpenGL 4.6 renderer.

Graphics card. The default renderer needs an OpenGL 4.6 core profile context and has no fallback: without one, the simulator writes the OpenGL version the driver offers to log.txt (on Windows also in a message box) and ends. See docs/opengl46-renderer.md. OpenGL 4.6 drivers exist for:

  • NVIDIA: GeForce 400 (Fermi) and newer on Windows, GeForce 600 (Kepler) and newer on Linux; current drivers support newer generations only.
  • AMD: Radeon HD 7700 and newer (GCN) on Windows (Adrenalin 18.4.1 or newer) and on Linux (Mesa, radeonsi). The older TeraScale cards (HD 5000/6000, HD 7350–7670) stop at OpenGL 4.5 on Windows.
  • Intel: HD Graphics 500 series (6th generation Core, Skylake) and newer on Windows. Haswell and Broadwell graphics (HD 4x00, HD 5x00, HD 6000) stop at OpenGL 4.3/4.4 on Windows.

On Linux, glxinfo -B should report an OpenGL core profile version string of 4.6 or newer.

Vulkan renderer (optional, gfxrenderer vulkan in eu07.ini): needs a Vulkan 1.4 driver. When there is none, the simulator logs the reason and uses OpenGL 4.6. Vulkan 1.4 drivers exist for NVIDIA GeForce GTX 750 Ti (Maxwell) and newer, AMD Radeon RX 5000 (RDNA) and newer on Windows (on Linux Radeon RX 400 / Polaris and newer with Mesa 25.0 or newer), and Intel Iris Xe / UHD 700 series (11th generation Core) and Arc on Windows (on Linux HD Graphics 500 / 6th generation Core and newer, Mesa). DLSS needs an NVIDIA GeForce RTX card.

Processor. The builds are made for processors with AVX2: Intel Core of the 4th generation (Haswell, 2013) or newer, AMD Ryzen, or AMD of the Excavator generation (2015) or newer. Many Intel Pentium and Celeron processors don't have AVX2. On a processor without it, the simulator says so and ends. For such processors, the CI also builds a variant without AVX2 (-DENABLE_AVX2=OFF, its file name ends with _noavx2), for master only. The simulator spreads its work over all the logical cores of the processor.

License

Languages
C++ 71%
C 26.5%
HLSL 1.1%
Python 0.6%
GLSL 0.5%
Other 0.3%