How do I distribute a dll with my vm sav file? [message #59921] |
Tue, 22 April 2008 15:39  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
I'm kind of new to this dll thing - I've created a dll that works fine
for me - I just put it in C:\Program Files\ITT\IDL70\bin\bin.x86 et
voila!
Now I want someone else to use my sav file - but what do I do with the
dll? I tried putting it in the bin directory on that machine...
Can you tell I really don't know what I'm doing?
TIA - Vince
|
|
|
Re: How do I distribute a dll with my vm sav file? [message #60002 is a reply to message #59921] |
Wed, 23 April 2008 10:25  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On Apr 23, 8:32 am, Vince Hradil <hrad...@yahoo.com> wrote:
> This is all very interesting - I haven't tried it yet, but it seems
> that I need to copy the .dlm file as well (have I told you I really
> don't know what I'm doing). I found this:http://www.ittvis.com/services/techtip.asp?l=English&am p;ttid=4142which
> is pretty nice. Also, I think I need to RTFM.
Ah, yes read the External Developer's Guide, it's actually not too
bad. Also, buy Ronn's "Calling C and C++" book; it has a lot of great
examples in it.
Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
|
|
|
Re: How do I distribute a dll with my vm sav file? [message #60006 is a reply to message #59921] |
Wed, 23 April 2008 07:41  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On Apr 23, 2:35 am, Allan Whiteford
> Maybe it's not helpful but I use the IDL_DLM_PATH environment
> variable/preference.
I use the IDL_DLM_PATH environment for the command line as well. I
would use the IDL_DLM_PATH preference (set using PREF_SET), but it
doesn't seem to work for me on the command line (IDL 7.0, Mac OS X).
The Workbench doesn't seem to honor the environment variable though,
so I set the DLM path from the preferences of the Workbench (which I
think is using PREF_SET).
I wish I could set this in one place, but I haven't been able to yet.
> I've never done anything cross-platform with it though.
>
> Copying files into a users IDL installation directory seems a but rude
> and won't usually work on UNIX unless the person has root privileges.
Yes, I don't think you should do this unless there is no other way.
Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
|
|
|
Re: How do I distribute a dll with my vm sav file? [message #60007 is a reply to message #59921] |
Wed, 23 April 2008 07:32  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Apr 23, 3:35 am, Allan Whiteford
<allan.rem...@phys.remove.strath.ac.remove.uk> wrote:
> Robbie wrote:
>> I've found that putting DLMs in the IDL path or current working
>> directory to occasionally work depending on the IDL version, OS, shell
>> and environment variables. For example, I can't get a DLM to load from
>> the IDL Workbench on OS X, yet it works fine using the idl command
>> line.
>
>> The only guaranteed way is to put the DLM and shared object in the
>> same place as the idl executable binary.
>
>> For example:
>> C:\Program Files\ITT\IDL70\bin\bin.x86
>> /Applications/itt/idl70/bin/bin.darwin.i386
>> /usr/local/itt/idl70/bin/bin.linux.x86
>
>> If you compiled it as 64 bit then you need to place them in the 64 bit
>> directory and run 64 bit idl. For example:
>> /usr/local/itt/idl70/bin/bin.linux.x86_64
>
>> You must compile your module separately for each platform and
>> architecture.
>
>> If you are planning on distributing for windows then I would recommend
>> writing a batch file or Windows Installer (WIX) to copy the DLM to the
>> required location.
>
>> I hope this helps. Please let me know if there is an easier way,
>> because I'm going to be distributing a cross platform DLM soon as
>> well.
>
>> Robbie
>
> Maybe it's not helpful but I use the IDL_DLM_PATH environment
> variable/preference.
>
> I've never done anything cross-platform with it though.
>
> Copying files into a users IDL installation directory seems a but rude
> and won't usually work on UNIX unless the person has root privileges.
>
> Thanks,
>
> Allan
This is all very interesting - I haven't tried it yet, but it seems
that I need to copy the .dlm file as well (have I told you I really
don't know what I'm doing). I found this:
http://www.ittvis.com/services/techtip.asp?l=English&tti d=4142 which
is pretty nice. Also, I think I need to RTFM.
Thanks everyone.
Vince
|
|
|
Re: How do I distribute a dll with my vm sav file? [message #60014 is a reply to message #59921] |
Wed, 23 April 2008 01:35  |
Allan Whiteford
Messages: 117 Registered: June 2006
|
Senior Member |
|
|
Robbie wrote:
> I've found that putting DLMs in the IDL path or current working
> directory to occasionally work depending on the IDL version, OS, shell
> and environment variables. For example, I can't get a DLM to load from
> the IDL Workbench on OS X, yet it works fine using the idl command
> line.
>
> The only guaranteed way is to put the DLM and shared object in the
> same place as the idl executable binary.
>
> For example:
> C:\Program Files\ITT\IDL70\bin\bin.x86
> /Applications/itt/idl70/bin/bin.darwin.i386
> /usr/local/itt/idl70/bin/bin.linux.x86
>
> If you compiled it as 64 bit then you need to place them in the 64 bit
> directory and run 64 bit idl. For example:
> /usr/local/itt/idl70/bin/bin.linux.x86_64
>
> You must compile your module separately for each platform and
> architecture.
>
> If you are planning on distributing for windows then I would recommend
> writing a batch file or Windows Installer (WIX) to copy the DLM to the
> required location.
>
> I hope this helps. Please let me know if there is an easier way,
> because I'm going to be distributing a cross platform DLM soon as
> well.
>
> Robbie
Maybe it's not helpful but I use the IDL_DLM_PATH environment
variable/preference.
I've never done anything cross-platform with it though.
Copying files into a users IDL installation directory seems a but rude
and won't usually work on UNIX unless the person has root privileges.
Thanks,
Allan
|
|
|
Re: How do I distribute a dll with my vm sav file? [message #60017 is a reply to message #59921] |
Wed, 23 April 2008 00:10  |
Robbie
Messages: 165 Registered: February 2006
|
Senior Member |
|
|
I've found that putting DLMs in the IDL path or current working
directory to occasionally work depending on the IDL version, OS, shell
and environment variables. For example, I can't get a DLM to load from
the IDL Workbench on OS X, yet it works fine using the idl command
line.
The only guaranteed way is to put the DLM and shared object in the
same place as the idl executable binary.
For example:
C:\Program Files\ITT\IDL70\bin\bin.x86
/Applications/itt/idl70/bin/bin.darwin.i386
/usr/local/itt/idl70/bin/bin.linux.x86
If you compiled it as 64 bit then you need to place them in the 64 bit
directory and run 64 bit idl. For example:
/usr/local/itt/idl70/bin/bin.linux.x86_64
You must compile your module separately for each platform and
architecture.
If you are planning on distributing for windows then I would recommend
writing a batch file or Windows Installer (WIX) to copy the DLM to the
required location.
I hope this helps. Please let me know if there is an easier way,
because I'm going to be distributing a cross platform DLM soon as
well.
Robbie
|
|
|
Re: How do I distribute a dll with my vm sav file? [message #60018 is a reply to message #59921] |
Tue, 22 April 2008 19:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vince Hradil writes:
> I'm kind of new to this dll thing - I've created a dll that works fine
> for me - I just put it in C:\Program Files\ITT\IDL70\bin\bin.x86 et
> voila!
>
> Now I want someone else to use my sav file - but what do I do with the
> dll? I tried putting it in the bin directory on that machine...
>
> Can you tell I really don't know what I'm doing?
I don't know what I'm doing either, but I can't imagine
this working in any other way than *all* the files being
in the same location on disk or CD-ROM or whatever.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|