From 1263aaef0b301c821a05548efc1875b5139572cf Mon Sep 17 00:00:00 2001 From: SparklesReal Date: Thu, 18 Jun 2026 12:24:14 +0200 Subject: [PATCH 1/3] Build instructions for linux --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index dee66f29..417f5241 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,24 @@ # ETCS European Train Control System implementation ETCS is a standard European safety system for railway interoperability between countries. This code tries to implement some of its features. Most DMI graphical functions work, as well as speed and distance monitoring. + +The DMI is the graphical interface. The EVC is the computer the DMI connects to. For connecting to ETCS within games like Simrail you should only need the DMI. + +# Building +Please note that you can also get builds from the [release page on github](https://github.com/cesarBLG/ETCS/releases). + +## Linux +1. Install dependencies: + * Ubuntu: `sudo apt install git cmake` + * Arch Linux: `sudo pacman -S git cmake` +2. Download the ETCS repository: + ```bash + git clone https://github.com/cesarBLG/ETCS + cd ETCS + ``` + +3. Compile: + ```bash + cmake -S . -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 + cmake --build build -j$(nproc --all) + ``` \ No newline at end of file From 2c355026c8c5343e70ac9df7887eb398c91397f2 Mon Sep 17 00:00:00 2001 From: SparklesReal Date: Thu, 18 Jun 2026 13:13:49 +0200 Subject: [PATCH 2/3] Add deps, fix submodules, add install command --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 417f5241..1b870aaa 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,23 @@ Please note that you can also get builds from the [release page on github](https ## Linux 1. Install dependencies: - * Ubuntu: `sudo apt install git cmake` - * Arch Linux: `sudo pacman -S git cmake` + * Ubuntu: `sudo apt install git cmake build-essential ninja-build clang git pkg-config libsdl2-dev libsdl2-ttf-dev libc-ares-dev` + * Arch Linux: `sudo pacman -S git cmake base-devel ninja clang pkgconf sdl2 sdl2_ttf c-ares` + 2. Download the ETCS repository: ```bash git clone https://github.com/cesarBLG/ETCS cd ETCS + git submodule update --init --recursive ``` 3. Compile: - ```bash - cmake -S . -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 - cmake --build build -j$(nproc --all) - ``` \ No newline at end of file + ```bash + cmake -S . -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 + cmake --build build -j$(nproc --all) + ``` + +4. Install: + ```bash + sudo cmake --install build + ``` \ No newline at end of file From b7562a25b4be88b446a8a3c3a6da350ac5716809 Mon Sep 17 00:00:00 2001 From: Shiralyn <68858896+ShiralynDev@users.noreply.github.com> Date: Thu, 18 Jun 2026 13:24:54 +0200 Subject: [PATCH 3/3] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: César Benito Lamata --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b870aaa..8e60f09d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Please note that you can also get builds from the [release page on github](https 3. Compile: ```bash - cmake -S . -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 + cmake -S . -B build -DETCS_VENDORED=OFF cmake --build build -j$(nproc --all) ```