Re: Creating executable sav file [message #94588 is a reply to message #94584] |
Mon, 17 July 2017 12:20  |
Jim Pendleton
Messages: 165 Registered: November 2011
|
Senior Member |
|
|
On Sunday, July 16, 2017 at 10:44:10 PM UTC-6, moxa...@gmail.com wrote:
> On Sunday, 16 July 2017 13:28:12 UTC-4, superchromix wrote:
>> On Sunday, July 16, 2017 at 9:51:46 AM UTC+2, moxa...@gmail.com wrote:
>>> Dear all,
>>>
>>> I am trying to develop my first standalone idl executable *.sav file and need your kind help. I have the mean program file mean_program.pro which calls different procedures and functions to do a specific calculation. For example, I have:
>>>
>>> mean_program.pro
>>> procedure_1.pro
>>> procedure_2.pro
>>> function_1.pro
>>> function_2.pro
>>>
>>> some of the procedures contain ENVI procedures/functions (e.g. ENVI_GET_ROI_DATA, ENVI_GET_DATA, etc.). In order to create the *.sav file, I complied the mean_program.pro and the other procedures and functions (procedure_1.pro, procedure_2.pro, function_1.pro, function_2.pro), and after that created a *.sav file called mean_program.sav. Now, I copied the file mean_program.sav alone in a second laptop which has idl only (no ENVI) and tried to execute it using the idl visual machine and got the following error message:
>>>
>>> “The following error was encountered: Attempt to call undefined procedure/function: ‘MEAN_PROGRAM’. Please consult the supplier of the application”.
>>>
>>> Not sure why I am getting this error, can you help please?
>>>
>>> Thank you,
>>>
>>> Muhamed
>>
>>
>> did you use the /ROUTINES keyword when you created the save file?
>
> I tried it with this keyword. However, I just found by chance that the problem is that I am trying to run the *.sav file in older version of IDL than the one in which the *.sav file was created.
>
> The *.sav file worked when I used new version of IDL but it requested to have ENVI. Do you know if there is a way to run a *.sav file which contains ENVI programming procedures in a computer machine having only IDL?
>
> Thank you a lot for the help,
>
> Muhamed
The answer is that you will need an ENVI Runtime license and installation, at a minimum, to be able to execute any compiled application that uses ENVI routines.
The ENVI product itself is not just an additional set of compiled SAVE-format files. There are also required DLLs from the installation.
Attempting to execute compiled IDL code that includes calls to ENVI routines will fail in the Virtual Machine.
Jim P.
|
|
|