README.MacOSX
changeset 869 ae4ab3ac89a9
parent 221 50620ec9c86a
child 1006 3d9a199d2a70
     1.1 --- a/README.MacOSX	Wed Mar 03 06:56:04 2004 +0000
     1.2 +++ b/README.MacOSX	Thu Mar 04 05:39:17 2004 +0000
     1.3 @@ -9,17 +9,17 @@
     1.4  Unix system, and you have the option of using either traditional
     1.5  command line tools or Apple's IDE ProjectBuilder (PB).
     1.6  
     1.7 -To build using the command line, use the standard configure and make
     1.8 +To build SDL using the command line, use the standard configure and make
     1.9  process:
    1.10  
    1.11  	./configure
    1.12  	make
    1.13 -	make install
    1.14 +	sudo make install
    1.15  
    1.16  (You may need to create the subdirs of /usr/local manually.)
    1.17  
    1.18  To use the library once it's built, you essential have two possibilities:
    1.19 -use the traditional autoconf/automake/make method, or use Apple's Project Builder.
    1.20 +use the traditional autoconf/automake/make method, or use Project Builder.
    1.21  
    1.22  ==============================================================================
    1.23  Using the Simple DirectMedia Layer with a traditional Makefile
    1.24 @@ -65,6 +65,33 @@
    1.25  the make rule accordingly.
    1.26  
    1.27  
    1.28 +But beware! That is only part of the story! With the above, you end up with
    1.29 +a bare bone .app bundle, which is double clickable from the Finder. But
    1.30 +there are some  more things you should do before shipping yor product...
    1.31 +
    1.32 +1) The bundle right now probably is dynamically linked against SDL. That 
    1.33 +   means that when you copy it to another computer, *it will not run*,
    1.34 +   unless you also install SDL on that other computer. A good solution
    1.35 +   for this dilemma is to static link against SDL. On OS X, you can
    1.36 +   achieve that by linkinag against the libraries listed by
    1.37 +     sdl-config --static-libs
    1.38 +   instead of those listed by
    1.39 +     sdl-config --libs
    1.40 +   Depending on how exactly SDL is integrated into your build systems, the
    1.41 +   way to achieve that varies, so I won't describe it here in detail
    1.42 +2) Add an 'Info.plist' to your application. That is a special XML file which
    1.43 +   contains some meta-information about your application (like some copyright
    1.44 +   information, the version of your app, the name of an optional icon file,
    1.45 +   and other things). Part of that information is displayed by the Finder
    1.46 +   when you click on the .app, or if you look at the "Get Info" window.
    1.47 +   More information about Info.plist files can be found on Apple's homepage.
    1.48 +
    1.49 +
    1.50 +As a final remark, let me add that I use some of the techniques (and some
    1.51 +variations of them) in Exult and ScummVM; both are available in source on
    1.52 +the net, so feel free to take a peek at them for inspiration!
    1.53 +
    1.54 +
    1.55  ==============================================================================
    1.56  Using the Simple DirectMedia Layer with Project Builder
    1.57  ==============================================================================