Clone
10
Home
G_Admin edited this page 2026-03-30 21:25:07 +02:00

Willkommen im Wiki.

Quick info

on the very beginning of developing the control-algrorithm

Prerequisites

Basic toolkit setup is not (yet?) described here - it is identical to the SOM-setup.

For testing purposes googletest is chosen as one of the favourite testing frameworks - an extra installation needs to be done:

Install Google Test on Linux

Just copy the commands between brackets [] below

1_ Clone the repository

// Take/create any temporary folder
[
git clone https://github.com/google/googletest.git
cd googletest
mkdir build
cd build
]

2_Configure and build

// Install system-wide (requires sudo)
[
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON
]

3_ Compile and install
[
make -j$(nproc)
sudo make install
]

Now the repository can be applied.

1. Checkout from repo:

 On your local machine create a fresh folder and execute following commands, e.g.
 [
 mkdir fresh && cd fresh
 git clone https://gitlab.2030net.de/G_Admin/BinderBeispielRegler.git
 ]

2. localbuild.sh builds everything on a local machine .... after

  • Setup of Qt6's installation path:
     Open localbuild.sh and adapt yout local Qt6 version ( path )  in line 7:
     [
     cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DQt6_DIR=$HOME/Qt/6.10.2/gcc_64/lib/cmake/Qt6 
     ]
    

3. Build application and controller library, type on your linux console/terminal:

[
cd BinderBeispielRegler  
./localbuild.sh 
]

4. Run the application

[
build/app/app
]
- a live message is showing up

5. Stop the application

- hit any key on the keyboard

6. Test

Just type
[
tests/tests
]
- some dummy tests are executed for a start, 'results' are showing up