comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Creating executable sav file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Creating executable sav file [message #94582] Sun, 16 July 2017 00:51 Go to next message
moxament is currently offline  moxament
Messages: 26
Registered: April 2008
Junior Member
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
Re: Creating executable sav file [message #94583 is a reply to message #94582] Sun, 16 July 2017 10:28 Go to previous messageGo to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
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?
Re: Creating executable sav file [message #94584 is a reply to message #94583] Sun, 16 July 2017 21:44 Go to previous messageGo to next message
moxament is currently offline  moxament
Messages: 26
Registered: April 2008
Junior Member
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
Re: Creating executable sav file [message #94586 is a reply to message #94584] Sun, 16 July 2017 23:07 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Don't know a thing about envi, but make_rt might be worth trying until somewhen who actually knows stuff answers this :-)

http://www.harrisgeospatial.com/docs/CreatingDistributionUsi ngMAKE_RT.html
http://www.harrisgeospatial.com/docs/make_rt.html

The advantage of this approach is that the pc where you run this does not need to have IDL installed at all. This means that you might be able to get also to run ENVI.

Cheers, Helder


On Monday, July 17, 2017 at 6:44:10 AM UTC+2, 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
Re: Creating executable sav file [message #94588 is a reply to message #94584] Mon, 17 July 2017 12:20 Go to previous message
Jim  Pendleton is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: New behavior of n_elements?
Next Topic: Plot scatter points with transparency

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:37:40 PDT 2025

Total time taken to generate the page: 0.00633 seconds