UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5 IP: 198.54.202.210 URI: http://wesnoth.slack.it/?CompilingWesnothOnMacOSX - - - - - Index: CompilingWesnothOnMacOSX =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/CompilingWesnothOnMacOSX,v retrieving revision 1.7 diff -u -r1.7 CompilingWesnothOnMacOSX --- CompilingWesnothOnMacOSX 9 Jun 2005 14:42:45 -0000 1.7 +++ CompilingWesnothOnMacOSX 16 Jul 2005 18:12:12 -0000 @@ -1,31 +1,46 @@ || Compiling Wesnoth on Mac OS X || -See forum topics +Other than the generic Unix information on how to build at CompilingWesnoth, +there are some Mac OS X specific issues. These issues are dealt with here. + +See also forum topics <a href="http://www.wesnoth.org/forum/viewtopic.php?t=287">How To Compile On A Mac</a> -and <a href="http://www.wesnoth.org/forum/viewtopic.php?t=4591">Help with using BfW for Mac OS X with command-line +and +<a href="http://www.wesnoth.org/forum/viewtopic.php?t=4591">Help with using BfW for Mac OS X with command-line arguments</a>. -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 +Since 0.8.11+cvs the code compiles just fine on Mac OS X +with gcc-3.3 (as shipped with Xcode 1.2 and 1.5) and gcc-4 (as shipped +with Xcode 2.0), using the normal GNU autotools ./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. 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. +for instance from fink. If you use fink, you probably want +libgettext3-dev and not gettext-dev, since the latter is currently +based on an ancient 0.10 version of gettext and may result in +warnings like + ld: Undefined symbols: + _libintl_bind_textdomain_codeset + _libintl_dgettext + _libintl_gettext + _libintl_bindtextdomain. +when trying to link. -This creates an application that has to be started from the commandline, +Building using the autotools configure/make process 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 +Since 0.9.2, you can also do make wesnoth_bundle make wesnoth_editor_bundle -to create applications for the game and the map editor -- these are +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. +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 @@ -41,13 +56,14 @@ 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 +game data files for the editor (a script to do this was posted to the +forum a while back), or otherwise make sure the map editor can somehow find the data files inside the game application. 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. +file in synch with the autotools system. ||See Also||
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
