From d4118653947b42d2fde07cfad27f303252ae59a0 Mon Sep 17 00:00:00 2001 From: Paul Nehlich Date: Fri, 20 Jun 2025 14:29:52 +0200 Subject: [PATCH 1/2] Quickstart with current compiler version --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 26100c0..cfda73a 100644 --- a/README.md +++ b/README.md @@ -58,11 +58,37 @@ After cloning, make sure to clone and initialize the submodules git submodule update --init ``` + + +## Quickstart + +With a fresh activated Windows Subsystem for Linux (WSL), using `wsl --install archlinux` the following steps are sufficient to build the flight software with cmake or just: + +´´´sh +pacman –Syu +pacman -S base-devel zsh git sudo cmake wget curl rustup +rustup default nightly # Only for just +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # Only for better git integration in shell + +cd ~ +git clone https://egit.irs.uni-stuttgart.de/fsfw/fsfw-example-hosted --recursive +cd fsfw-example-hosted +mkdir build # Create Build Folder +cd build +cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFSFW_OSAL=linux .. # Create Makefiles +cmake --build . -j # Build Flight Softwaer +./fsfw-example-hosted # execute Flight software +code .. # Open source code in Windows Visual Studio Code +´´´ + + ## Prerequisites If you need to set up these prerequisites, you can find some more information in the dedicated [chapter](#prereqsetup). +Caution: Some assertions block the build with gcc 15 when building the `host` version. Please use `linux` as target or install gcc14. + 1. Makefile build: make installed (bundled with MSYS2 on Windows or via [xPacks Windows Build Tools](https://xpack.github.io/windows-build-tools/install/)). Natively installed on Linux. 2. Recommended for application code development: [Eclipse for C/C++](https://www.eclipse.org/downloads/packages/) . Project files and launch configuration are provided for Eclipse to ease development. -- 2.43.0 From c9ccae25a971504400d117187aa0ff51d53c2d95 Mon Sep 17 00:00:00 2001 From: Paul Nehlich Date: Fri, 20 Jun 2025 15:17:27 +0200 Subject: [PATCH 2/2] README.md aktualisiert --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cfda73a..7c8c333 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ With a fresh activated Windows Subsystem for Linux (WSL), using `wsl --install a pacman –Syu pacman -S base-devel zsh git sudo cmake wget curl rustup rustup default nightly # Only for just +cargo install just # Only for just sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # Only for better git integration in shell cd ~ @@ -76,7 +77,7 @@ cd fsfw-example-hosted mkdir build # Create Build Folder cd build cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFSFW_OSAL=linux .. # Create Makefiles -cmake --build . -j # Build Flight Softwaer +cmake --build . -j # Build Flight Software ./fsfw-example-hosted # execute Flight software code .. # Open source code in Windows Visual Studio Code ´´´ -- 2.43.0