This documentation discusses how to set up a Qt Runtime Target for the Ubuntu 16.04 LTS 64-bit platform.
To install Qt on the Ubuntu 16.04 LTS 64-bit platform, do the following:
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
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
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.
The Qt runtime libraries may be built by using either the QtCreator IDE or in batch mode.
Load the following projects into Qt Creator:
Use the following instructions to build all the Qt libraries in batch mode (without Qt Creator):
The libraries will be installed in $MLE_ROOT. By default, this should /opt/MagicLantern/lib.
To build the libqtstage library in batch mode, do the following:
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.
To build the Qt Media Reference library, libgtmref, do the following:
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.
To build the Qt Set library, libqtset, do the following:
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.
To buid the libqtrole library in batch mode, do the following:
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.