|
Application Programming: Distributing Runtime Mode Applications |
|
The make_rt script is a UNIX command-line tool for creating an IDL distribution. Because the Project
Export feature under UNIX requires that you create a project and build a SAVE file before you export an IDL distribution, you must use the make_rt script when your application does not use a SAVE file.
Before creating the distribution, verify the procedure name in your main SAVE file. The main SAVE file to be executed when IDL starts must have a procedure named main or a procedure with the same name as the .sav file minus the extension. The main SAVE file is the file that is restored and run when you start your IDL application.
If your application uses IDL files that are not part of the IDL distribution, you can include these files when you run make_rt by modifying the manifest file. If you do not add these files to the manifest before running make_rt, you must manually copy the required files to your distribution.
The manifest file is located in <IDL_DIR>/bin/make_rt/manifest_rt.txt, where <IDL_DIR> is the main IDL directory.
To modify the manifest file to include other files:
manifest_rt.txt in any text editor.
<IDL_DIR>. Note that only IDL files can be added to the manifest.
To run the make_rt script:
<IDL_DIR>/bin/make_rt directory, where <IDL_DIR> is the main IDL directory.
make_rt command using the syntax described in Syntax of the make_rt Script.
make_rt script copies IDL binaries only for the platform on which the make_rt script is executed. If you wish to create a distribution that supports multiple UNIX platforms, you must run the make_rt script on each platform you wish to support. You can specify the same destination directory each time you run the make_rt script, thereby creating a distribution with a bin.platform directory for each supported platform.
After you have created a distribution using make_rt, any files that are not part of the IDL distribution, as well as any required IDL files that you did not add to the manifest, must be manually copied to your distribution. Do the following:
.pro file, you must save the object definition code as a SAVE file and manually copy the .sav file to your distribution tree. If the object has any inherited properties from its superclass, and the superclass is a .pro file, you must also include the superclass object definition code in your SAVE file. Objects using a .pro extension typically exist in the IDL distribution's lib subdirectory and its subdirectories. The IDL Reference Guide identifies object superclasses and gives the location of the object's source code.
For example, if you have defined an object in the file myobject__define.pro, and this object uses the methods of IDLgrLegend, you must compile both myobject__define.pro and idlgrlegend__define.pro, store the results in a SAVE file using the ROUTINES keyword, and add the SAVE file to your distribution.
If your object files call any other routines defined in .pro files, you must include these routines in a SAVE file and add them to your distribution.
For instructions on using SAVE and RESOLVE_ALL to create SAVE files, see Creating SAVE Files of Programs and Data.
For information on creating and restoring SAVE files, see Creating SAVE Files of Programs and Data.
The make_rt script uses the following syntax:
make_rt [source] dest manifest startcommand mode
where:
/usr/local/itt/idl_6.3). If you do not specify this parameter at the command line, you will be prompted for the location.
make_rt will not create this directory.
/usr/local/itt/idl_6.3/bin/make_rt/manifest_rt.txt.
.sav file, without any extension. (For Callable IDL applications, this is the name of your startup script. See Creating an Application Distribution for details.)
Options dialog.
Options dialog. If your application does not use a SAVE file, it does not matter which value you specify for the mode parameter, but you must specify a value.
IDL Online Help (March 06, 2007)