UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 IP: 198.54.202.218 URI: http://wesnoth.slack.it/?CompilingWesnothOnMacOSX - - - - - Index: CompilingWesnothOnMacOSX =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/CompilingWesnothOnMacOSX,v retrieving revision 1.6 diff -u -r1.6 CompilingWesnothOnMacOSX --- CompilingWesnothOnMacOSX 27 Mar 2005 14:51:38 -0000 1.6 +++ CompilingWesnothOnMacOSX 9 Jun 2005 14:42:45 -0000 @@ -7,13 +7,25 @@ As of 0.8.11+cvs the code compiles just fine on Mac OS X with gcc-3.3 (as shipped with Xcode 1.2), using the normal - ./configure; make + ./configure; make; make install build process. You do need a set of SDL libraries that have ||sdl-config|| -installed -- the ones from fink (unstable tree) work well, but the +installed -- the ones from fink (unstable tree) work well. The .pkg files from http://www.libsdl.org/ for some reason don't install the ||sdl-config|| script, so they are best avoided for now. +Also note that you need gettext-dev and libiconv-dev or equivalent, +for instance from fink. + This creates an application that has to be started from the commandline, but otherwise functions the same as on every other platform. +In the latest versions of the game (0.9.2 onwards), you can also do + make wesnoth_bundle + make wesnoth_editor_bundle +to create applications for the game and the map editor -- these are +at present quite minimalist, with no icon or Finder information, +but they can at least be launched from the Finder. Note that these apps +both look for the game data in //${prefix}/share/wesnoth/ // which is usually +// /usr/local/share/wesnoth/ // unless you specify a different ||--prefix|| +argument to ||configure|| when you build. Sithrandel, who usually builds the "official" binary release for Mac OS X, maintains an Xcode project file and a Cocoa wrapper to build a native Mac @@ -21,12 +33,19 @@ mainline distribution, but is only available as part of the Mac OS X binary distribution. This build uses a more "Mac-like" set of defaults, for instance putting all the information that is usually in the -// ~/.wesnoth/ // directory into the // ~/Library/Preferences/Wesnoth/ // folder, -and placing the system-wide game files (which are usually in +// ~/.wesnoth/ // directory into the // ~/Library/Preferences/Wesnoth/ // +folder, and placing the system-wide game files (which are usually in // /usr/local/share/wesnoth/ //) inside the //Battle For Wesnoth.app// -folder of the application itself. +folder of the application itself. Sithrandel's build also has a scenario +editor, though this isn't used by any campaign authors as far as is known. +Unfortunately, this build has its own map editor that is not as +functional as the default one, and if you build the map editor to +compliment Sithrandel's build, you will have to either duplicate the +game data files for the editor, or make sure the map editor +can somehow find the data files inside the game application. -The two approaches are hopefully going to be merged at some stage in the future, +The commandline and Cocoa-app approaches are hopefully going +to be merged at some stage in the future, but some additional scripts still need to be written to keep the project file in synch with the configure/makefile system.
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
