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.
- 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.
- Include the esrimole.tlh file in the source code.
- Call the MoleInitialize function included in the molesdk library before using the MOLE API in the code.
- 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
- 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.
- 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
- Add Qt’s bin directory to the PATH variable. For example:
Code:
setenv PATH ${QT4DIR}/bin:${PATH}
- Add Qt’s lib directory to the LD_LIBRARY_PATH variable. For example:
Code:
setenv LD_LIBRARY_PATH ${QT4DIR}/lib:${LD_LIBRARY_PATH}
- Initialize the environment for ArcGIS Engine by sourcing the init_engine script. For example:
Code:
source ${ARCENGINEHOME}/init_engine.csh
- Run the make command from the source directory.
- Run the application and open an MXD file.
- Double-click the map to display a MOLE FEGraphic.