Skip to content

Latest commit

 

History

History
85 lines (66 loc) · 1.93 KB

README.md

File metadata and controls

85 lines (66 loc) · 1.93 KB

LearnOpenGL-Qt

GitHub actions

An Qt-based implementation of the examples from the learnopengl.com website.

The original examples from the website can be found here.

Building From Source

Install Qt

You can install Qt from the online installer from the Qt website.

Alternatively, you can use the install-qt.sh script from the scripts directory.

$ ./scripts/install-qt.sh -d $HOME/Qt --version 6.7.0 --target desktop qtbase

This script requqres Bash-like Shell.

Ubuntu / Debian

$ sudo apt install qt5-default

macOS

Qt is available in Brew or macports.

$ brew install qt

or

$ sudo port install qt6

Windows

Use the online installer from the Qt website

Install Qbs

Ubuntu / Debian

$ sudo apt install qbs

macOS

Qbs is available in Brew or macports.

$ brew install qbs

or

$ sudo port install qbs

Windows

Qbs is available in Chocolatey

$ choco install qbs

Configuring Qbs

$ qbs setup-toolchains --detect
$ qbs setup-qt $(which qmake) qt
$ qbs config defaultProfile qt

Buiding with Qbs

From the source directory, run:

$ qbs resolve
$ qbs build

Using IDE

Or you can simply open the project.qbs file in QtCreator or the source directory in VScode. For VScode you might want to use the Qbs plugin.