2 Commits

Author SHA1 Message Date
c9ccae25a9 README.md aktualisiert 2025-06-20 15:17:27 +02:00
d411865394 Quickstart with current compiler version 2025-06-20 14:29:52 +02:00

View File

@ -58,11 +58,38 @@ After cloning, make sure to clone and initialize the submodules
git submodule update --init 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
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 ~
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 Software
./fsfw-example-hosted # execute Flight software
code .. # Open source code in Windows Visual Studio Code
´´´
## Prerequisites ## Prerequisites
If you need to set up these prerequisites, you can find some more information in the dedicated If you need to set up these prerequisites, you can find some more information in the dedicated
[chapter](#prereqsetup). [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. 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/) . 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. Project files and launch configuration are provided for Eclipse to ease development.