Difference between revisions of "Building MAME"

From Ninerpedia
Jump to navigation Jump to search
(Linux and other Unix variants)
(Linux and other Unix variants)
Line 23: Line 23:
 
* libSDL_ttf-devel
 
* libSDL_ttf-devel
  
The Subversion repository is at svn://messdev.fdns.net/mess/.
+
The Subversion repository is at svn://messdev.no-ip.org/mess (this has changed end of 2010).
  
 
Ubuntu users need to make use of the apt-get command or check the software repository tools. For an OpenSUSE installation, either use YaST or (if not already installed) follow this path:
 
Ubuntu users need to make use of the apt-get command or check the software repository tools. For an OpenSUSE installation, either use YaST or (if not already installed) follow this path:
Line 39: Line 39:
 
  mkdir src
 
  mkdir src
 
  cd src
 
  cd src
  svn checkout svn://messdev.fdns.net/mess/
+
  svn checkout svn://messdev.no-ip.org/mess
 
   
 
   
 
  cd mess
 
  cd mess

Revision as of 22:20, 8 June 2011

Here are some instructions for building MESS from source.

Windows

TODO

OSX

TODO

Linux and other Unix variants

Valid for version 0.136 and newer.

If you decide to build MESS from source code in Linux, you should probably directly use the subversion repository since bugs are corrected very quickly (and new ones are as quickly introduced ...).

You need

  • gcc / gcc-c++
  • subversion
  • make
  • gconf2-devel
  • gtk2-devel
  • libSDL-devel
  • libSDL_ttf-devel

The Subversion repository is at svn://messdev.no-ip.org/mess (this has changed end of 2010).

Ubuntu users need to make use of the apt-get command or check the software repository tools. For an OpenSUSE installation, either use YaST or (if not already installed) follow this path:

zypper install subversion
zypper install make
zypper install gcc
zypper install gconf2-devel
zypper install gtk2-devel
zypper install libSDL-devel
zypper install libSDL_ttf-devel
zypper install gcc-c++

Now compile:

mkdir src
cd src
svn checkout svn://messdev.no-ip.org/mess

cd mess
make TARGET=mess

In case you know earlier MESS versions: Note that there is no separate makefile.sdl anymore.

If you have a 64-bit environment, you should add PTR64=1. For a quad-core machine, you can greatly speed up the compile process with -j4 (start 4 jobs).

make TARGET=mess -j4 PTR64=1 

When you want to get a current version, use the update command. Cleaning the build environment is optional, but if you experience problems when compiling, try to clean first.

svn update
make clean TARGET=mess -j4 PTR64=1 
make TARGET=mess -j4 PTR64=1 

Now you should have a freshly built mess executable file. Unlike previous versions, the tools like imgtool or chdman are not included. If your want to get the tools (chdman, imgtool), just specify "tools" to make:

 make tools TARGET=mess -j4 PTR64=1