Table of contents
- Installing Cross-Compile environment to non-ubuntu system is not easy.
- Because of this, there was a complicated process to launch our dashboard.
- make changes from personal workstation, push to the git repository
- receive the commit from main workstation
- make a binary(executable) file by Cross-Compilter of QT-Creator in main workstation
- push to the git
- receive the commit in raspberry pi
- run the executable file
- Make a shell script that cross-compile and generate the binary file
- Launch the script by ssh in Git Action, so make every commit will compile it and generate binary file.
Note
cross-compile must be handled only in terminal, not by qt-creator gui app.
- QT Compile by Terminal
qmake $PROJECT_NAME.pro # generate Makefile automatically make # launch Makefile
- make it as a shell file
# !/bin/bash ./clean.sh qmake dashboard.pro make ./dashboard
rm -rf qrc* rm -rf *.o rm -rf dashboard rm -rf Makefile rm -rf qmake.stash rm -rf *clangd
[!WARNING] Actually, this is not a Cross-Compile. You must run this code at the raspy, and this will be unefficient if the project is heavy.
- Find how to cross-compile inside of terminal. my tries with GPT