[SDL] Embed SDL.dll in the .exe

Jonathan Dearborn grimfang4 at hotmail.com
Fri Sep 28 09:27:30 PDT 2007


Hey,
 
If anyone wants to tackle this in Windows, here is what I suggest (thoroughly crazy):
 
Write a program that extracts all of the necessary files (.exe, .dll, .png, .etc) from _itself_, then runs the main executable that was extracted.  There you go!  So you'll probably have to write a program that creates such a program.
 
Jonny D



> Date: Fri, 28 Sep 2007 17:22:53 +0200> From: beuc at beuc.net> To: sdl at lists.libsdl.org> Subject: Re: [SDL] Embed SDL.dll in the .exe> > On Fri, Sep 28, 2007 at 08:41:03AM -0600, Charles McGarvey wrote:> > FYI: Drag 'n drop installation works on Mac OS X without complete > > static linking because applications are really "bundles" or > > directories made to look like files. So you can dynamic link to > > libraries you put inside the bundle which provides the benefits of > > brain-dead installation and the benefits of dynamic linking > > (including satisfying the LGPL license).> > > I believe you still need an installer if you distribute the> application via Internet.> > > If I understand correctly:> > - the app (something.app) is displayed as a single executable to the> user, from the file browser ("Finder")> > - but it's actually a directory that contains both the executable and> the resources. Under Windows it is possible to embed resources> directly in the .exe -- or for all platforms, you can simply cat it> at the end of the .exe with an easy-to-recognize delimiter, as .zip> auto-extrators do. The OSX way makes things easier for the> programmer (just fopen()).> > - when you drag 'n drop the .app, you actually move a directory, so> it's a single operation with a file browser (but you already can do> that with most games by moving the installation directory)> > - if you got it from a HTTP or FTP website, you'd need to download> each and every files from the something.app/ directory. So instead> you have to bundle it in a single archive. Apparently OSX apps often> come as a .dmg (can it do more than a .zip btw?)> > -- > Sylvain> _______________________________________________> SDL mailing list> SDL at lists.libsdl.org> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070928/d86264fe/attachment.htm 


More information about the SDL mailing list