Adapted from the following: https://youtu.be/XiMplRfuFJc
sudo apt install -y libgl1-mesa-dev libxkbcommon-x11-0 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-icccm4
sudo add-apt-repository -y ppa:kisak/kisak-mesa
sudo apt install -y mesa-utils libxmu-dev libxi-dev libgl-dev glew-utils libglew-dev
sudo apt install -y libglewmx-dev freeglut3-dev freeglut3 mesa-common-dev
- Qt Framework - needs to be installed manually, or use aqtinstall
mkdir -p ~/Qt
cd ~/Qt
pip install aqtinstall
python -m aqt install-qt linux desktop 6.7.0 -m all
- Optionally set Environment variable:
export QTDIR=~/Qt/6.7.0/gcc_64
- linuxdeployqt - optional, see walkthrough for more information
Windows dependencies are easier since OpenGL will be automatically installed, so its is not an explicit requirement.
- Qt Framework - needs to be installed manually, or use aqtinstall
mkdir C:\Qt
cd C:\Qt
pip install aqtinstall
python -m aqt install-qt windows desktop 6.7.0 win64_msvc2019_64 -m all
- Optionally set Environment variable:
setx QTDIR C:\Qt\6.7.0\msvc2019_64
Build and execute:
cmake -S . -B build -G Ninja && cmake --build build
./bin/QtTemplate