Suggested changes to MacOS to build reqs (#7715)

Update compilingmame.rst
* Changes in macOS section regarding current build requirements
* Added basic info for Apple Silicon to macOS build instructions.
This commit is contained in:
mac-a-r0ni 2021-01-29 23:15:35 -05:00 committed by GitHub
parent 06fb624721
commit f5302cddec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,37 +266,26 @@ Compilation is exactly as described above in All Platforms.
Apple macOS Apple macOS
----------- -----------
Youll need a few prerequisites to get started. Make sure youre on OS X 10.9 Youll need a few prerequisites to get started. Make sure youre on OS X 10.14
Mavericks or later. You will need SDL2 2.0.4 or later for macOS. Mojave or later for Intel Macs or macOS 11.0 Big Sur for Apple Silicon. You will need SDL2 2.0.4 or later for Intel or SDL2 2.0.14 on Apple Silicon.
* Install **Xcode** from the Mac App Store * Install **Xcode** from the Mac App Store or `ADC <https://developer.apple.com/download/more/>`_ (AppleID required).
* To find the corresponding Xcode for your MacOS release please visit `xcodereleases.com <https://xcodereleases.com>`_ to find the latest version of Xcode available to you.
* Launch **Xcode**. It will download a few additional prerequisites. Let this * Launch **Xcode**. It will download a few additional prerequisites. Let this
run through before proceeding. run through before proceeding.
* Once thats done, quit **Xcode** and open a **Terminal** window * Once thats done, quit **Xcode** and open a **Terminal** window
* Type **xcode-select --install** to install additional tools necessary for MAME * Type **xcode-select --install** to install additional tools necessary for MAME (also available as a package on ADC).
Next youll need to get SDL2 installed. Next youll need to get SDL2 installed.
* Go to `this site <http://libsdl.org/download-2.0.php>`_ and download the *Mac OS X* .dmg file * Go to `this site <http://libsdl.org/download-2.0.php>`_ and download the *Mac OS X* .dmg file
* If the .dmg doesnt auto-open, open it * If the .dmg doesnt auto-open, open it
* Click “Macintosh HD” (or whatever your Macs hard disk is named) in the left pane of a **Finder** window, then open the **Library** folder and drag the **SDL2.framework** folder from the SDL disk image into the **Frameworks** folder * Click “Macintosh HD” (your Macs hard disk) in the Locations sidebar of a **Finder** window, then open the **Library** folder and drag the **SDL2.framework** folder from the SDL disk image into the **Frameworks** folder. You will have to authenticate with your user password.
Lastly to begin compiling, use Terminal to navigate to where you have the MAME Lastly to begin compiling, use Terminal to navigate to where you have the MAME
source tree (*cd* command) and follow the normal compilation instructions from source tree (*cd* command) and follow the normal compilation instructions from
above in All Platforms. above in All Platforms.
Its possible to get MAME working from 10.6, but a bit more complicated:
* Youll need to install clang-3.7, ld64, libcxx and python27 from MacPorts
* Then add these options to your make command or useroptions.mak:
.. code-block:: bash
OVERRIDE_CC=/opt/local/bin/clang-mp-3.7
OVERRIDE_CXX=/opt/local/bin/clang++-mp-3.7
PYTHON_EXECUTABLE=/opt/local/bin/python2.7
ARCHOPTS=-stdlib=libc++
.. _compiling-emscripten: .. _compiling-emscripten: