Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This knowledge base article provides instructions on Learn how to build qt_simple.pro which is included in the Linux version of HOOPS Visualize 3DF .

Table of Contents
minLevel1
maxLevel7

Build Environment

  • Linux version: Ubuntu 20.04.5 LTS (used in the process of authoring this article)

    • g++ (required compiler)

      • sudo apt-get install g++

      • sudo apt-get install build-essential

    • X11 dev

      • sudo apt-get install xorg-dev

    • OpenGL dev

      • sudo apt-get install freeglut3-dev

    • Mesa

      • sudo apt-get install mesa-common-dev

      • sudo apt-get install mesa-utils

  • Followhttps://wiki.qt.io/Install_Qt_5_on_Ubuntu instructions or the following

    • sudo apt-get install qt5-dev-tools

    • sudo apt-get install libqt5x11extras5-dev

    • The following were used in the process of authoring this article

      • QMake version 3.1

      • Qt Version 5.12.8

  • HOOPS Visualize 3DF 27.xx (used in the process of authoring this article)

    • Firstly, we’ll need to download two packages from the Developer Zone portal:

      • Expand the Linux dropdown section and download hoops_3df27xx_linux64.tar.gz

      • Expand the Unix-like Common dropdown section and download hoops_3df27xx_common.tar.gz

      • Merge both archives into one folder by first extracting hoops_3df27xx_common.tar.gz and then extracting hoops_3df27xx_linux64.tar.gz (it’s okay to replace existing files)

    • While we are at the Developer Zone portal, generate and save a hoops_license.h header – if you don’t already have one. Place the license header (and replace the old header) found in HOOPS_3DF_27xx/Dev_Tools/hoops_3dgs/source.

Building Qt Simple

Using Qt Creator

...

Launch Qt Creator and open qt_simple.pro found in HOOPS_3DF_27xx/demo/qt/qt_simple.

...

When the project first opens, just configure the project to default settings – so just click Configure Project button.

We need to make a few changes to the Qt project settings:

...

Select Projects in the side panel menu:

...

5. Build and Run the Qt project.

6. Select desired driver for the Qt HOOPS Viewer:

...

Note

If you’re using a VM and OpenGL2 does not work, disable 3D acceleration in the VM client configuration.

Using Terminal / Command Line

...

If you would rather just use the Terminal to build the qt_simple application:

  1. Navigate to the HOOPS install directory (e.g. HOOPS_3DF_27xx) and type make qt_simple:

    Image Removed
  2. Then navigate to HOOPS_3DF_27xx/bin/linux_x86_64 and run qt_simple with the command ./qt_simple

...

in our forum post.