Re: Resolve iTools for Virtual Machine [message #36876] |
Wed, 05 November 2003 19:35  |
reiche
Messages: 7 Registered: November 2003
|
Junior Member |
|
|
David Fanning <david@dfanning.com> wrote in message news:> The code sequence that worked for me was this:
>
> IDL> .compile test_itools
> IDL> IDLITRESOLVEITOOLS
> IDL> Resolve_All
> IDL> Save, File='test_itools.sav', /Routines
>
> Works great as a run-time and in the Virtual Machine.
>
> Cheers,
>
> David
Thanks
Sven Reiche
|
|
|
Re: Resolve iTools for Virtual Machine [message #36909 is a reply to message #36876] |
Mon, 03 November 2003 15:53   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
>> With the arrival of IDL 6 and the features of iTool and Virtual
>> Machine I though my problems are solved, but so far I couldn't create
>> a working ".sav" file. The problem is that itools use some runtime
>> dependencies, which cannot be resolved with the resolve_all command.
>
> Oh, oh. Whoops!
>
> I wrote a little file (see below) to compile all the object programs
> in the iTools directory, but I still couldn't get my little example
> program to run as a run-time or Virtual Machine program.
>
> I finally got it to work (I think, I haven't tested this much)
> by running my ITOOLS_SETUP program, compiling my TEST_ITOOLS
> program, actually *running* my TEST_ITOOLS program, then
> typing RESOLVE_ALL and saving the routines in a save file.
>
> IDL> itools_setup
> IDL> .compile test_itools
> IDL> test_itools
> IDL> Resolve_All
> IDL> Save, File='test_itools.sav', /Routines
>
> Maybe the good folks at RSI will let us know what we are
> missing here. :-)
I guess the good folks at RSI have already thought of this!
I found this Tech Tip on their web page this afternoon:
http://www.rsinc.com/services/techtip.asp?ttid=3577
To create a SAVE file you need to call an undocumented routine
named IDLITRESOLVEITOOLS. Basically, this routine does what
I was trying to do, although it finds all the right files. :-)
The code sequence that worked for me was this:
IDL> .compile test_itools
IDL> IDLITRESOLVEITOOLS
IDL> Resolve_All
IDL> Save, File='test_itools.sav', /Routines
Works great as a run-time and in the Virtual Machine.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Resolve iTools for Virtual Machine [message #36910 is a reply to message #36909] |
Mon, 03 November 2003 12:30   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
opa_rumple writes:
> I have written a postprocessor for my code, which is handling the
> brwosing through the data set and display them.
> Before I had two inconveniences:
> 1) I had to write a lot to make the postprocessor user friendly
> (changing color, labels etc.)
> 2) Users of my code had to pay for IDL although they are just using my
> postprocessor.
>
> With the arrival of IDL 6 and the features of iTool and Virtual
> Machine I though my problems are solved, but so far I couldn't create
> a working ".sav" file. The problem is that itools use some runtime
> dependencies, which cannot be resolved with the resolve_all command.
Oh, oh. Whoops!
I wrote a little file (see below) to compile all the object programs
in the iTools directory, but I still couldn't get my little example
program to run as a run-time or Virtual Machine program.
I finally got it to work (I think, I haven't tested this much)
by running my ITOOLS_SETUP program, compiling my TEST_ITOOLS
program, actually *running* my TEST_ITOOLS program, then
typing RESOLVE_ALL and saving the routines in a save file.
IDL> itools_setup
IDL> .compile test_itools
IDL> test_itools
IDL> Resolve_All
IDL> Save, File='test_itools.sav', /Routines
Maybe the good folks at RSI will let us know what we are
missing here. :-)
Cheers,
David
;*********************************************
PRO Test_ITools
image = Loaddata(7)
iimage, image
END
;*********************************************
;*********************************************
PRO iTools_Setup
componentDir = !Dir + Path_Sep() + 'lib' $
+ Path_Sep() + 'itools' + Path_Sep() + 'components'
frameworkDir = !Dir + Path_Sep() + 'lib' + Path_Sep() $
+ 'itools' + Path_Sep() + 'framework'
widgetsDir = !Dir + Path_Sep() + 'lib' + Path_Sep() $
+ 'itools' + Path_Sep() + 'ui_widgets'
CD, componentDir, Current=thisDir
files = File_Search('*__define.pro', count=count)
IF count GT 0 THEN BEGIN
FOR j=0,count-1 DO BEGIN
file = files[j]
len = StrLen(file)
file = StrMid(file, 0, len-4)
Resolve_Routine, file, /Either, /Compile_Full_File
ENDFOR
ENDIF
CD, frameworkDir
files = File_Search('*__define.pro', count=count)
IF count GT 0 THEN BEGIN
FOR j=0,count-1 DO BEGIN
file = files[j]
len = StrLen(file)
file = StrMid(file, 0, len-4)
Resolve_Routine, file, /Either, /Compile_Full_File
ENDFOR
ENDIF
CD, widgetsDir
files = File_Search('*__define.pro', count=count)
IF count GT 0 THEN BEGIN
FOR j=0,count-1 DO BEGIN
file = files[j]
len = StrLen(file)
file = StrMid(file, 0, len-4)
Resolve_Routine, file, /Either, /Compile_Full_File
ENDFOR
ENDIF
CD, thisDir
END
;*********************************************
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Resolve iTools for Virtual Machine [message #37273 is a reply to message #36909] |
Fri, 12 December 2003 12:40  |
Thomas Brueckner
Messages: 1 Registered: December 2003
|
Junior Member |
|
|
I wonder, David, if there is another undocumented tool like this for
resolving graphics objects? I am having a hard time getting a nice
simple object graphics program to run on the virtual machine, and I
wonder if some of it is the resolve_all procedure not catching the
object classes.
For instance, if I do
IDL> RESOLVE_ALL,CLASS='IDLgrView'
it seems not to compile any more items than a straight RESOLVE_ALL would
do if the class keyword is not set.
-Thomas
David Fanning wrote:
>
>
> I guess the good folks at RSI have already thought of this!
>
> I found this Tech Tip on their web page this afternoon:
>
> http://www.rsinc.com/services/techtip.asp?ttid=3577
>
> To create a SAVE file you need to call an undocumented routine
> named IDLITRESOLVEITOOLS. Basically, this routine does what
> I was trying to do, although it finds all the right files. :-)
|
|
|