HOW TO

Use the MOLE SDK with cross-platform C++

Last Published: April 25, 2020

Summary

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

Procedure

Reference two additional files:
• esrimole.tlh
• libmolesdk.so.

  1. Verify that the esrimole.tlh file is installed in the $ARCENGINEHOME/include directory and that the libmolesdk.so 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:

    Code:
    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.

    Note:
    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:

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

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

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

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

    Code:
    setenv LD_LIBRARY_PATH ${QT4DIR}/lib:${LD_LIBRARY_PATH}

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

    Code:
    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

Software:
  • 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