Building the Sample Programs

Prerequisites

  • TIBCO FTL 6.0 or later
  • Eclipse Paho MQTT Go client library
  • For Windows make sure you have mingw64 (5.3 or greater) installed and the PATH environment variable includes the path to gcc compiler from the mingw64 installation.

Procedure

  1. Copy the TIBCO FTL-MQTT Bridge Go sample directories into the FTL Go samples folders.
    cp -r $TIBCO_HOME/emd/bridge/samples/golang/* $TIBCO_HOME/ftl/<version>/samples/src/golang/src/tibco.com/ftl-sample
    
  2. Source the setup script from the FTL samples directory:
    source $TIBCO_HOME/ftl/<version>/samples/setup
  3. Install the Eclipse Paho MQTT Go client library:
    go get github.com/eclipse/paho.mqtt.golang
  4. Build and install the FTL Go samples:
    go install -v tibco.com/ftl-sample...