[sldev] Re: [VWR] fmod.dll not found
Joshua Bell
josh at lindenlab.com
Mon May 5 17:32:00 PDT 2008
FYI: http://msdn.microsoft.com/en-us/library/7d83bc18(VS.80).aspx
(1) Same dir as executable, (2) current dir, (3) Windows system dir, (4)
Windows dir, (5) PATH
When we package a viewer, the EXE and DLLs end up in the same dir, so
(1) applies. When you build a viewer, the executable ends up a few
directories down so you need to make sure that (2) applies - which is
what the steps below take care of.
Anna Gulaev wrote:
> Thanks, Soft. That's what I did. I made a shortcut with the newview
> directory as the start directory. Works dandily :)
>
> Anna
>
> On Sun, May 4, 2008 at 2:44 PM, Soft <soft at lindenlab.com
> <mailto:soft at lindenlab.com>> wrote:
>
> On Sun, May 4, 2008 at 1:37 PM, Anna Gulaev <annagulaev at gmail.com
> <mailto:annagulaev at gmail.com>> wrote:
> > How does a windows program built with visual studio know where
> to look for
> > DLLs?
> >
> > Every suggestion I can find says to put the path in the PATH
> environment
> > variable. Clearly, this is not how the SL viewer knows to find
> fmod.dll in
> > the newview directory, because I don't have newview in my path,
> and version
> > 1.18.4.3 <http://1.18.4.3> worked fine. 1.20.rc5 does not find
> it. 1.18.4.3 <http://1.18.4.3> does.
> >
> > the fmod DLL is here: /cygdrive/c/sl/1.20.rc5/linden/indra/newview
> > the executable is here:
> /cygdrive/c/sl/1.20.rc5/linden/indra/newview/Release
> >
> > How is the SL viewer finding (or not!) the fmod DLL?
>
> Hello, Anna. I believe that Windows treats the current directory as
> though it were part of the path. So what you probably want to do if
> you wish to run the viewer in this fashion is to make a shortcut or a
> batch file that sets the newview directory as the current directory,
> and then run the release executable without actually switching to that
> directory.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> /index.html
>
More information about the SLDev
mailing list