Use the MOLE SDK with cross-platform C++

Last Published: April 25, 2020


Instructions provided describe how to develop applications using Military Overlay Editor (MOLE) 9.2 in C++ on Linux and Solaris.


Reference two additional files:
• esrimole.tlh

  1. Verify that the esrimole.tlh file is installed in the $ARCENGINEHOME/include directory and that the file is installed in the $ARCENGINEHOME/bin directory.
  2. Include the esrimole.tlh file in the source code.
  3. Call the MoleInitialize function included in the molesdk library before using the MOLE API in the code.
  4. While building the application, make sure to link with the molesdk library. The following is an example of how to specify this in a make file:

    LIBS += -L$(ARCENGINEHOME)/lib -larcsdk -lqt4ctl -laoctl -lmolesdk

  5. Download the test application that uses the Qt toolkit version 4.x from the link in the Related Information section below.

    The main purpose of this application is not to demonstrate MOLE functionality but to help provide the basic requirements of developing a MOLE application using cross-platform MOLE SDK.

  6. Unzip the source code and set QT4DIR variable to the Qt installation directory. For example:

    setenv QT4DIR /usr/local/Trolltech/Qt-4.1.3

  7. Add Qt’s bin directory to the PATH variable. For example:

    setenv PATH ${QT4DIR}/bin:${PATH}

  8. Add Qt’s lib directory to the LD_LIBRARY_PATH variable. For example:


  9. Initialize the environment for ArcGIS Engine by sourcing the init_engine script. For example:

    source ${ARCENGINEHOME}/init_engine.csh

  10. Run the make command from the source directory.
  11. Run the application and open an MXD file.
  12. Double-click the map to display a MOLE FEGraphic.

Article ID:000009230

  • Legacy Products
  • ArcGIS Engine 9 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic