Changes between Version 404 and Version 405 of BuildInstructions


Ignore:
Timestamp:
Feb 21, 2021, 11:08:29 PM (3 years ago)
Author:
Krinkle
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v404 v405  
    449449
    450450=== macOS Troubleshooting ===
    451  * `ERROR: virtualenv is not compatible with this system or executable` [[BR]] `ERROR: The executable …0ad/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/_virtualenvs/init_py3/bin/python3.9 is not functioning` [[BR]]  `ERROR: It thinks sys.prefix is '/usr/local/Cellar/python@3.9/…' (should be '…/init_py3')` [[BR]] There is a known issue with how SpiderMonkey asserts whether python-virtualenv is working correctly. If you have a custom version of Python 3 installed from Homebrew, you may need to uninstall this first, by running: `brew uninstall --ignore-dependencies --force python@3.9`. Beware that if you did not explicitly choose to install this override, it likely came from another Homebrew package and uninstalling it may break that. Note that macOS 10.15+ comes with Python 3.8 by default, which means an override from Homebrew should generally not be necessary any more.
     451 * `ERROR: virtualenv is not compatible with this system or executable` [[BR]] `ERROR: The executable …0ad/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/_virtualenvs/init_py3/bin/python3.9 is not functioning` [[BR]]  `ERROR: It thinks sys.prefix is '/usr/local/Cellar/python@3.9/…' (should be '…/init_py3')` [[BR]] There is a known issue with how SpiderMonkey asserts whether python-virtualenv is working correctly. If you have a custom version of Python 3 installed from Homebrew, you will need to hide this from the 0AD build process. The simplest way is to temporarily set the following in your Terminal before building: [[BR]] `export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin` [[BR]] This temporarily moves Homebrew packages to the end of the list so that they only add and not override macOS system default packages, such as `python3` which SpiderMonkey needs to see, whilst still allowing added packages such as Rust to come through from Homebrew. [[BR]] If this doesn't work, you may try uninstalling the custom Python 3 installation entirely, by running `brew uninstall --ignore-dependencies --force python@3.9`. Beware that doing so will likely break other applications you may have installed via Homebrew, and thus may need to re-install it later.
    452452
    453453== Create macOS distributable app bundle ==