Games using dynamic libraries without installers - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Games using dynamic libraries without installers (/thread-7488.html)
Games using dynamic libraries without installers - mushware - Nov 20, 2002 03:40 AM
I've just spent a while converting my game to run with dynamic libraries installed in the application bundle instead of the system paths. This means that the libraries can live inside the application and there's no need for an installer. It's a bit subtle, so I thought I'd post my results.
The key aspect is the load commands buried in the .dylib file. The otool command (from a terminal) will display this for you. Taking a vorbis library as an example:
How to do it? If your library is part of a framework and you can get the prebinding to work, use the instructions at www.cocoadevcental.com (thanks to OneSadCookie for that link). If you're building your libraries Unix-style with ./configure and make, I've found that a small edit to the libtool script supplied with the package (NOT /usr/bin/libtool) will usually do the job. The -install_name option controls the name in the LC_ID_DYLIB load command, and changing this line in libtool
Games using dynamic libraries without installers - codemattic - Nov 20, 2002 06:17 PM
thanks - this is useful info. (also thanks to OSC and cocoadevcentral.com)
Games using dynamic libraries without installers - henryj - Nov 20, 2002 09:08 PM
Good post. Maybe it should go into the wiki
Games using dynamic libraries without installers - Deland - Nov 21, 2002 12:35 AM
Very nice post here, I really appreciated the info.
Games using dynamic libraries without installers - 0ctane - Jan 10, 2006 08:36 AM
This solved one of my problems. Thanks a bundle....