Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create "Compiling MAME (0.181-latest)" doc #267

Closed
markwkidd opened this issue Mar 8, 2019 · 2 comments
Closed

create "Compiling MAME (0.181-latest)" doc #267

markwkidd opened this issue Mar 8, 2019 · 2 comments

Comments

@markwkidd
Copy link
Contributor

There has always been a stream of people requesting previous versions of the MAME core.

I do realize that not all of those people are going to be able to compile their own core for reasons of technical proficiency or because they are using a difficult platform to compile for like Android.

However I believe we could use not just a compilation guide for MAME-git but one that has a section describing how to build older commits.

@hizzlekizzle
Copy link
Contributor

I think that's a good idea. I frequently tell people "checkout the desired revision from git and compile" but I don't think anyone has ever taken me up on it :P

@markwkidd markwkidd changed the title create "Compiling MAME (latest version)" doc create "Compiling MAME (0.181-latest)" doc Mar 9, 2019
@markwkidd
Copy link
Contributor Author

markwkidd commented Mar 9, 2019

Documentation WIP

Building libretro-mame

Install build dependencies

Windows

  1. Begin by installing and configuring the RetroArch msys2 build environment as described in that documentation: https://docs.libretro.com/development/retroarch/compilation/windows
  2. From the msys2 console, install python with the command pacman -S python

Clone the repository

git clone http://github.com/libretro/mame
cd mame

general make syntax

Build type Command
Complete build make -f -j3 Makefile.libretro
Arcade-only build make -f -j3 Makefile.libretro SUBTARGET=arcade
Softlist-only build make -f -j3 Makefile.libretro SUBTARGET=mess

Platform-specific make syntax

Platform Command
64-bit processors make -f -j3 Makefile.libretro PTR64=1

Building a previous version

!!! Important
If you want to build a previous version of MAME, begin by making sure that you can build the most recent version.

Once you have built the most recent version of MAME to establish that your build environment is complete, reset the contents of the repository to a clean state:

make clean
git reset --hard

!!! Warning
These commands will delete any files in your mame subfolder that are not in the libretro/mame github repository.

checkout the previous version source

See the section "Commit hashes for previous versions" below to find the correct commit hash. For example, if you wish to build MAME 0.205, the corresponding commit hash is b691c38.

Use this commit hash and the git checkout command to roll back the source to your chosen version:

git checkout b691c38

Commit hashes for previous versions

Version Commit
mame0207 40fc339
mame0206 cf02fe3
mame0205 b691c38
mame0204 c6150e7
mame0203 b57a140
mame0202 856478f
mame0201 4dc302e
mame0200 ff19cd3
mame0199 f2e805a
mame0198 c5f6a62
mame0197 74293f8
mame0196 e8f2016
mame0195 e44e85b
mame0194 5be2496
mame0193 bf28b34
mame0192 d771f54
mame0191 a5db728
mame0190 f57574c
mame0189 2beedc5
mame0188 7b45ec1
mame0187 1d9648b
mame0186 e4c6cb1
mame0185 fe01a13
mame0184 7768128
mame0183 4ee22dc
mame0182 22c42ab
mame0181 3a1651e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants