lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Jan 29, 2008 7:29 PM, Fabio Mascarenhas <> wrote:
> Just put it in the same path as your .exe and you will be ok.

True.  It's kind of lame though to have everything flat in the dir
like that.  Ideally I'd have

    ... (other dlls)

Is this possible through some kind of build/linking option or should I
just get over it?

>Another nifty
> thing is that %DLLFOLDER%\lua\?.lua will be in tour package.path (where
> DLLFOLDER is the folder where you put the Lua DLL), so you can stick your
> Lua modules there too and not worry about environment variables. There's a
> similar thing in cpath (%DLLFOLDER%\?.dll). The one thing Windows does right
> is that it lets programs know where they were loaded from...
> --
> Fabio Mascarenhas
> On Jan 30, 2008 12:59 AM, Wesley Smith <> wrote:
> > Hi again list,
> > Yes, some more windows lua dll questions.  I'm still getting to know
> > (grudgingly) how to manage dlls and my question now is about deploying
> > an app with lua.  On OSX, as I mentioned in a previous post, I have my
> > application exporting the Lua symbols.  This doesn't seem to be a wise
> > way to do it on windows, so I'm using a dll.  My question is how does
> > one deploy a Windows app with the dll such that the app can find it?
> > Does it have to go in the system folders or can I somehow specify a
> > relative path to the app executable to load the dll from and have all
> > modules that were also linked to the dll look for it there as well?
> >
> > I guess to be succinct, what strategy are people using to distribute
> > Windows apps with Lua embedded?
> >
> > thanks in advance.  best,
> > wes
> >