Skip to content
Mark Millard edited this page Apr 19, 2024 · 16 revisions

This page provides information for building and using the QtglTF widget.

Table of Contents

glTF Resources

glTF™ (GL Transmission Format) is a specification for the transmission and loading of 3D scenes and models by applications.

Dependencies

Ubuntu Dependencies

These instructions are used to build QtglTF on an Ubuntu 22.04.3 LTS 64-bit platform.

Install the following packages:

$ sudo apt-get install build-essential libgl1-mesa-dev

Install Qt5

There are two options for installing Qt5

  1. Install Qt using apt
  2. Build and install Qt from source code

Install Qt Using apt

To download the qt components using apt, do the following:

sudo apt install -y qtcreator qtbase5-dev qt5-qmake qttools5-dev cmake

Add Missing Examples

The QtCreator installation does not install example code and documentation. So, do the following:

sudo apt-get install qtbase5-examples qtbase5-doc-html qt5-doc qt5-doc-html

Build and Install Qt from Source [Optional]

Instead of using apt to install the Qt5 binaries, you can download and build the source from scratch.

Instructions for building and installing Qt 5.13.1 can be found the Building Qt 15.3.1 From Scratch wiki page.

Install QtCreator

Once Qt 5.13.1 is successfully installed, then QtCreator should be built and installed using instructions found on the Building QtCreator From Scratch wiki page.

Build Instructions

Build instructions can be found at Build Instructions for Linux Platform