Changes between Version 418 and Version 419 of BuildInstructions


Ignore:
Timestamp:
Mar 9, 2022, 5:45:11 AM (2 years ago)
Author:
Langbart
Comment:

Since D4424, Python no longer needs to be hidden, but a new problem has appeared.

Legend:

Unmodified
Added
Removed
Modified
  • BuildInstructions

    v418 v419  
    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 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.
     451* If you are unable to build Spidermonkey, please see the described workaround in ticket #6447 - [macOS] Spidermonkey build fails (7/Mar/22).
    452452
    453453== Create macOS distributable app bundle ==