|
MT Showcase SDK
|
This reference documentation provides information on how to write custom C++ plugins for MT Showcase.
MT Showcase is built on Cornerstone SDK and relies heavily on its concepts. See the Cornerstone documentation here.
The sections below describe how to setup a development environment for Showcase SDK.
By default, Showcase SDK will install to C:\Program Files\MT Showcase.
The Showcase SDK will install into /opt/mt-showcase
To extend Showcase, you write your own custom components using the Showcase component system. See Component system for more information on different Showcase components and how to write them.
Components are imported to Showcase in packages, each package can include one or more components. See Packages for how to define and import custom packages into Showcase.
Showcase SDK has example plugins under examples/plugins. You can copy this folder to a convenient place and test your build environment by building and running the examples, see Building examples.
You must recompile your plugins after updating Showcase. Different versions are not binary compatible.
By default Showcase looks for packages under lib in its installation folder, and standard plugin folder locations that depend on the platfrom.
On Windows Showcase automatically loads plugins from these system and user data folders
On Linux Showcase loads plugins from these system and user data folders
If you want to load packages from non-standard locations, you can add custom package locations by editing the configuration files for the client and server.
To load custom packages into the client, create a file showcase-config.json Then add you packages path in it, for example:
Give the file location to Showcase client with showcase-config command line parameter, for example
If you're running Showcase with MT Launcher, customize the Showcase tile to include the command line parameter. Copy the default Showcase pipeline configuration file to the user configuration folder, and add the command line parameter to the custom configuration file. See Launcher documentation for more information.
To load custom packages to the server, edit production_users.yaml. This file is under /etc/MultiTaction/mt-showcase/server on Linux and under MT Showcase SDK\server on Windows.
For example:
Note that you need to set the path for both Showcase client and server. Restart both the server and client to load new plugins.
You can test your development environment and learn how to load custom packages by building and running the Showcase examples. The examples are under examples/plugins in your Showcase installation directory. You can copy the examples to a convenient location where you have the necessary access rights.
The examples use a SHOWCASE_SDK_ROOT environment variable to locate the plugin.pri:
Make sure SHOWCASE_SDK_ROOT environment variable is set to point to your Showcase installation, for example:
Note that you shouldn't use quotes in the environment variable value, or qmake wont parse it correctly.
Steps to build and run HelloPlugins on Windows:
Steps to build and run HelloPlugins on Linux: