|
Application Programming: Creating IDL Projects |
|
Once you have completed your application, you can quickly and easily create an IDL Runtime distribution or you can easily move your application to another platform or distribute your source code to colleagues by exporting your project. All your source code or compiled code (.sav files), IDL GUIBuilder files, data files, and image files are copied to a directory you specify.
| Note For information on how to set up a directory structure so that your IDL Project can find the source files after exporting, see Where to Store the Files for a Project. |
What is exported is dependent upon the options you have selected for the project from the Project
Options dialog. If you have selected:
.sav file for your project as well as data, bitmaps, and any other .sav files included in your project will be exported. You will also be given the option of exporting an IDL Runtime distribution for the platform to which you are exporting. Contact your sales person for options if you want to include an IDL Runtime distribution with your application.
.sav file (with an embedded license) for your project as well as data, images, and any other .sav files included in your project will be exported. You will also be given the option of exporting an IDL Runtime distribution for the platform you are exporting on.
| Note For more information on how to create a licensed save file and distribute IDL Runtime with your application, contact your ITT Visual Information Solutions sales representative. |
For more information on the options for a project, see Setting the Options for a Project.
To export your project's source files, complete the following steps:
Open Project. Select the path and name of your project file.
.pro)" or from the Project
Options dialog.
Export. The Browse for Folder or Export Directory dialog is displayed.
Your project is exported to the selected directory. When moving a project and its source files from one platform to another, there are a few items to be aware of:
To export your project to a save file, complete the following steps:
Open Project. Select the path and name of your project file.
.sav)" or "Licensed Save File (.sav)" from the Project
Options dialog.
Export. The Browse for Folder or Export Directory dialog is displayed.
.sav file. Select No to not include the distribution.Your project is exported to the selected directory.
The process for exporting an IDL Runtime distribution of your project is slightly different depending on whether you run IDL on a Windows or UNIX platform.
| Note While a project exported with a Runtime distribution includes all of the support files necessary for a Runtime application, it does not include a Runtime license. If you are interested in including a Runtime version of IDL with your application, contact your ITT Visual Information Solutions sales representatives for more information. |
Under Microsoft Windows, you can use the Project Export feature to create a complete runtime IDL distribution tree. To create a runtime distribution, do the following:
Open Project. Select the path and name of your project file.
.sav)" or "Licensed Save File (.sav)" from the Project
Options dialog.
Export. The Browse for Folder dialog is displayed.
.sav file. Select Yes.
The Export Files dialog lists directories and files. Check marks indicate that a file is to be exported. The first time a project is exported, the files included in the manifest_rt.txt and manifest_aux.txt files are listed in the Export Files dialog. Only the files from manifest_rt.txt are checked for export.
manifest_rt.txt file from the \bin\make_rt subdirectory of the IDL distribution are selected for export, and the files in the manifest_aux.txt file are displayed, but not selected for export.
Your project, all of the selected IDL Runtime support files, and any other files you specified in the export list are exported to the directory you selected.
If an error is encountered during export, an Export Log detailing the export and the error is displayed in the bottom pane of the Export Files dialog.
On Microsoft Windows platforms, you can also use the Export feature without creating an IDL project file:
Export. The Browse for Folder dialog is displayed.
manifest_rt.txt file from the \bin\make_rt subdirectory of the IDL distribution are selected for export, and the files in the manifest_aux.txt file are displayed, but not selected for export.
The files specified in the export list are exported to the directory you selected.
Open Project. Select the path and name of your project file.
.sav)" or "Licensed Save File (.sav)" from the Project
Options dialog.
Export. The Export Directory dialog is displayed.
.sav file. Select Yes. A complete list of the runtime distribution files that will be copied to your distribution directory is provided in the manifest_rt.txt text file. See Modifying the Manifest File for details on this file.Your project is exported to the directory you selected.
| Note The Project Export feature copies IDL binaries only for the platform from which you are currently running IDL. If you wish to create a distribution that supports multiple UNIX platforms, you must use the Project Export feature to export a distribution for each platform you wish to support. You can specify the same destination directory each time you use the Project Export feature, thereby creating a distribution with a bin.platform directory for each supported platform. |
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, complete the following steps:
manifest_rt.txt in any text editor.
manifest_aux.txt, (located in the same directory as manifest_rt.txt) to manifest_rt.txt.
idl-dir. Note that only IDL files can be added to the manifest.
IDL Online Help (March 06, 2007)