Changes between Version 348 and Version 349 of BuildInstructions
- Timestamp:
- Jul 8, 2019, 12:04:52 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildInstructions
v348 v349 16 16 * [#Windows Windows] (7 or newer) 17 17 * [#Linux Linux] 18 * [#OSX OS X] (10.7/Lion or newer)18 * [#OSX macOS / OS X] (10.7/Lion or newer) 19 19 * [#BSD FreeBSD/OpenBSD] (only experimental support at this time) 20 20 * Up-to-date system software (Windows service packs, graphics driver updates, etc) … … 430 430 431 431 == OS X == 432 The process on OS X is similar to Linux: 432 == macOS == 433 The process on macOS is similar to Linux: 433 434 434 435 * Obtain the command line tools: 435 436 * If you're using Lion 10.7.3 or later, Apple has made their ''Command Line Tools for Xcode'' package freely available, as a separate download. '''It does not include or require Xcode.''' If you don't want the Xcode IDE, it's recommended to install only this package from [https://developer.apple.com/downloads/index.action Apple Developer Downloads]. You need a free Apple ID to access the download. If you already have Xcode 5.1+, you can download the command line tools from the [https://developer.apple.com/library/IOs/#recipes/xcode_help-documentation_preferences/DownloadingandInstallingXcodeComponents/DownloadingandInstallingXcodeComponents.html download preferences]. 436 437 * If you're using Lion 10.7.2 or earlier, you'll probably need to install Xcode to get the command line tools: 437 * If available, use your Mac OS Xinstall DVD which saves downloading 1.72+ GB.438 * If available, use your Mac macOS install DVD which saves downloading 1.72+ GB. 438 439 * Visit [https://developer.apple.com/downloads/index.action Apple Developer Downloads] (logging in with your free Apple ID) and download the latest Xcode version for your OS. 439 440 * The latest version of Xcode is also available for free from the [http://www.apple.com/mac/app-store/ Mac App Store]. ''Note: if you download the app, it is only the installer for Xcode. You need to open it and run the "Install Xcode" app.'' … … 442 443 * As of Alpha 21, the game uses SpiderMonkey 38 which requires a Python 2.7 version later than 2.7.3. If you're on Mountain Lion (10.8) or earlier, you will need to first update your Python installation with the latest 2.7.x installer from [https://www.python.org/downloads/release/python-279/ here]. 443 444 * Obtain CMake: 444 * You can download a prebuilt OS Xpackage [https://cmake.org/download/ here].445 * You can download a prebuilt macOS package [https://cmake.org/download/ here]. 445 446 * If prompted, install the CMake command line tools to the default location. 446 447 * '''Note:''' Recent versions have no installer, so after copying the app bundle to '''Applications''', you need to run CMake with elevated permissions to install the command line tools. From the terminal: … … 473 474 474 475 === 1. Build the game for your personal use === 475 * Run [source:/ps/trunk/libraries/osx/build-osx-libs.sh libraries/osx/build-osx-libs.sh], the OS Xlibraries build script, this will download and build the game's dependencies (except CMake, see above). This script will take some time to finish when first run, after that it will reuse the old build.476 * Run [source:/ps/trunk/libraries/osx/build-osx-libs.sh libraries/osx/build-osx-libs.sh], the macOS libraries build script, this will download and build the game's dependencies (except CMake, see above). This script will take some time to finish when first run, after that it will reuse the old build. 476 477 {{{ 477 478 #!sh … … 480 481 }}} 481 482 * '''-j3''' gives the number of parallel builds to run, and should typically be one plus the number of CPU cores available. 482 * To force a rebuild for some reason, e.g. the SVN folder is moved or Xcode / OS Xis upgraded, pass in the `--force-rebuild` flag.483 * To force a rebuild for some reason, e.g. the SVN folder is moved or Xcode / macOS is upgraded, pass in the `--force-rebuild` flag. 483 484 * Next, to build the game on the command line, use the following commands: 484 485 {{{ … … 507 508 === 2. Build the game as a distributable app bundle === 508 509 * You will need Xcode installed (for its SDKs) 509 * Open [source:/ps/trunk/build/workspaces/build-osx-bundle.sh build/workspaces/build-osx-bundle.sh] and read the comments. You will need to change a few settings depending on your version of OS X, Xcode, etc.510 * Open [source:/ps/trunk/build/workspaces/build-osx-bundle.sh build/workspaces/build-osx-bundle.sh] and read the comments. You will need to change a few settings depending on your version of macOS, Xcode, etc. 510 511 * Run `build-osx-bundle.sh`, the bundle build script, which will download and build the game's dependencies for the appropriate SDK, build the game's source code, package the mod data, and set up the app bundle info. 511 512 {{{