Compiling an own QMC2 MacOSX build has been a longstanding target of mine: From time to time, official MacOS binaries have been missing or delayed. In particular installing QT in its legacy version 4.8.7 proved difficult.
Homebrew changed this and now the QMC2 compiling process works very well.
Since
MAME 0.177 I have also been compiling
my own builds under El Captain and later on MacOS Sierra, and it just works.
Compiling QMC2 - the details
(A) The starting point is the QMC2 Wiki - which in the meantime is no longer outdated:
(B) For El Capitan and MacOS Sierra, QT 4.8.7 needs to be installed via Homebrew (as now documented under (A):
Step 1 - go to
http://brew.sh
Step 2 - open your Terminal and install Homebrew by copy pasting the entire Terminal command from the window:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Step 3 - run the following commands from the Terminal:
brew install qt4
brew linkapps qt (links the qt4 commands to the Applications folder -> that has been a recommendation which I am no longer sure about, but it should be no issue to manually remove the symlinks later on)
Voila, I have a running QT 4.8.7 environment under El Capitan/Sierra :-).
(C) As soon as you have the proper QT environment in place, compiling of QMC2 as explained under (A) worked like a breeze - in short:
Switch to the tmp directory of your MacOSX system via Terminal, then download the source code of QT2 (tmp directory assures that these files are deleted):
svn co https://svn.code.sf.net/p/qmc2/code/trunk qmc2
Then switch into the qmc2 directory:
cd qmc2
Then make the executables (in my example with an alternative image set, otherwise just make):
make IMGSET=crazy
Then install, and make sure that an existing qmc2 directory in the Applications folder is renamed before executing this command:
make install
Means: Without 'sudo make' you cannot overwrite an existing qmc2 directory in Applications - rename it to e.g 'qmc2.old' beforehand just in case.
But why compiling QMC2 in the first place? First of all, sometimes you have to wait for the Mac binaries for quite some time, and for some versions, they just don't appear online. Secondly, I like building QMC2 with customized icons and without the additional plugins. And finally, compiling from the svn repository is fun :-).
The result is a fairly nice black-themed QMC2, which I quite like.
 |
| Screenshot with Black Theme, Click to enlarge |
Compiling MAME - the (not so many) details:
Compiling MAME ever since El Captain is just as easy as it can get.
Following the official instructions produces me builds that just work. This also means that
these rather complicated build instructions are
outdated.
It is just as easy as that:
- Have XCode and SDL2 installed
- Download and extract the MAME source code
- Open Terminal and move to the MAME source code folder
- make -j5 (if you have a quadcore machine) - drink coffee or tea during the build time
Only the cleanup seems a bit messy to me. Due to the lack of a 'make install' procedure, you must get rid of the source code chunks in your build manually.
Since MAME 0.177 until the current version all builds run without problems.
MAME in Homebrew: This is a very nice initiative. Here you also get all the dependencies installed automagically, and the MAME executable is in $PATH. My only major concern here is that these binaries are some four months behind the latest release, currently 0.179. So if you are not doing your own ROM sets, you can easily run into incompatible games. This is why I would not recommend this route right now (it would be interesting to understand why these builds are way behind).