Menu

Qt_Target_for_Linux_Platform

There is a newer version of this page. You can find it here.

Build Instructions for Linux Qt Target

This documentation discusses how to set up a Qt Runtime Target for the Ubuntu 16.04 LTS 64-bit platform.

Install Qt

To install Qt on the Ubuntu 16.04 LTS 64-bit platform, do the following:

Install Qt Creator and SDKs

Use the following Qt installer to download and install Qt Creator and 5.x versions of the SDK.

chmod +x qt-unified-linux-x64-3.0.2-online.run
./qt-unified-linux-x64-3.0.2-online.run

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 Generic Linux Modules

Use the instructions found at SDK Build Environment for Linux Platform to generate the runtime libraries and mastering tools for the Linux platform.

You do not need to build the Rehearsal Player components (Actors/Roles/Mediarefs/Sets/Stages) found on that page since those instructions target the Coin 3D Inventor platform. The Qt Runtime Target uses OpenGL without the Coin 3D Scene Graph.


Build Qt Target Parts

The Qt runtime libraries may be built by using either the QtCreator IDE or in batch mode.

Qt Creator Build Instructions

Load the following projects into Qt Creator:

Batch Build Instructions for Qt

Use the following instructions to build all the Qt libraries in batch mode (without Qt Creator):

  1. cd $MLE_HOME/build/linux
  2. make qt_install

The libraries will be installed in $MLE_ROOT. By default, this should /opt/MagicLantern/lib.

Build qtstage library in Batch Mode

To build the libqtstage library in batch mode, do the following:

  1. cd $MLE_HOME/build/linux
  2. make qtstage_install

The build artifacts will be located in $(MLE_HOME)/Parts/stages/qt/build/build-mleqtstage-Desktop_Qt_5_8_0_GCC_64bit-Debug.

The library will be installed to $MLEROOT/lib/libqtstage.so.

Build qtmref library in Batch Mode

To build the Qt Media Reference library, libgtmref, do the following:

  1. cd $MLE_HOME/build/linux
  2. make qtmref_install

The build artifacts will be located in $(MLE_HOME)/Parts/mediaref/qt/build/build-mleqtmref-Desktop_Qt_5_8_0_GCC_64bit-Debug.

The library will be installed to $MLEROOT/lib/libqtmref.so.

Build qtset library in Batch Mode

To build the Qt Set library, libqtset, do the following:

  1. cd $MLE_HOME/build/linux
  2. make qtset_install

The build artifacts will be located in $(MLE_HOME)/Parts/sets/qt/build/build-mleqtset-Desktop_Qt_5_8_0_GCC_64bit-Debug.

The library will be installed to $MLEROOT/lib/libqtset.so.

Build qtrole library in Batch Mode

To buid the libqtrole library in batch mode, do the following:

  1. cd $MLE_HOME/build/linux
  2. make qtrole_install

The build artifacts will be located in $(MLE_HOME)/Parts/roles/qt/build/build-mleqtrole-Desktop_Qt_5_8_0_GCC_64bit-Debug.

The library will be installed to $MLEROOT/lib/libqtrole.so.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.