Skip to content

jonnysoe/QtTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qt (CMake) Template

Adapted from the following: https://youtu.be/XiMplRfuFJc

Requirements

Linux (Debian-based)

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
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

Windows

Windows dependencies are easier since OpenGL will be automatically installed, so its is not an explicit requirement.

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

Build and execute:

cmake -S . -B build -G Ninja && cmake --build build
./bin/QtTemplate

About

Qt (CMake) Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published