News
Documentation History Authors Cost Video links
Forums
AdvanceMAME
AdvanceMENU
AdvanceCAB
|
Documentation to build AdvanceMAME.
AdvanceMAME Build NotesThis file contains the instructions to build AdvanceMAME, AdvanceMESS and AdvanceMENU from the source archives. The sections of this document are:
1 Preparing The SourcesIf you are using the standard source packages you don't need to prepare the sources, and you can go directly to the `Configuring' chapter.Instead, if you are using one of the `diff' source package you need to complete the sources with the original emulator source. 1.1 AdvanceMAMETo compile AdvanceMAME you need the MAME source of the same version of AdvanceMAME. Please note that you must use the original emulator source, you cannot use the source of another MAME clone like xmame.The original MAME sources can be downloaded from:
To complete the source you need to unzip the original MAME archive in a different directory and copy some files in the AdvanceMAME tree at the same level of the `advance/' directory. In Linux and Mac OS X remember to unzip the original .zip archives with the `unzip -aa' command to convert the files from the DOS/Windows CR/LF format to the Unix CR format. After unzipping you must:
Please note that only the `src/' directory from the MAME source is required, all the other files must be deleted. The final directory tree for AdvanceMAME must be :
After unpacked, you need to patch the original MAME source in the `src/' directory with the patch `advance/advmame.dif'. If the patch isn't applied correctly, probably you are using the wrong version of the emulator source. The commands for patching the source for AdvanceMAME in DOS and Windows are :
and in Linux and Mac OS X are :
1.2 AdvanceMESSTo compile AdvanceMESS you need the MAME and MESS source of the same version of AdvanceMESS. Please note that you must use the original emulator source, you cannot use the source of another MAME clone like xmame.The original MAME sources can be downloaded from:
The original MESS sources can be downloaded from:
To complete the source you need to unzip the original MAME and MESS archives in different directories and copy some files in the AdvanceMAME tree at the same level of the `advance/' directory. In Linux and Mac OS X remember to unzip the original .zip archives with the `unzip -aa' command to convert the files from the DOS/Windows CR/LF format to the Unix CR format. After unzipping you must:
Please note that only the specified directories from the MAME and MESS source are required, all the other files must be deleted. The final directory tree for AdvanceMESS must be :
After unpacked, you need to patch the original MESS source in in the `srcmess/' directory with the patch `advance/advmess.dif' and the source in the `mess/' directory with the patch `advance/mess.dif'. If the patches aren't applied correctly, probably you are using the wrong version of the emulator source. The commands for patching the source for AdvanceMESS in DOS and Windows are :
and in Linux and Mac OS X are :
2 Configuring2.1 Linux/Mac OS X/Generic UnixRun the `./configure' script.Generally no extra option is required. You can get the complete option list with the `./configure --help' command. The default installation prefix is /usr/local. You can change it with the `--prefix=' option. The default host configuration directory is /usr/local/etc. You can change it with the `--sysconfdir=' option. Please note that instead of /usr/etc is always used /etc. The configure script automatically detects all the available libraries and the optimization flags. You can use the --with-sdl-prefix option to search for the SDL library in a specific location. If you want to customize the compilation CFLAGS and LDFLAGS you can put them on the ./configure command line. For example for high optimization on Pentium4:
If you have the "Intel C Compiler 8" you can try with the command:
If you want to use the included version of the zlib and expat libraries instead of the system version you must specify the --disable-zlib and --disable-expat options. 2.2 DOS/WindowsIn DOS/Windows you need to manually copy the `Makefile.usr' file as `Makefile' and edit the first section to match your requirements.Read the file comments for major details. 3 CompilingTo compile run `make'.4 Installing4.1 Linux/Mac OS X/Generic UnixRun `make install' to install the binaries and the documentation.The binaries are installed in $prefix/bin, the program data files in $prefix/share/advance, the documentation in $prefix/share/doc/advance, and the man pages in $prefix/man/man1. The default installation $prefix is /usr/local. In Mac OS X please check that the directory $prefix/bin is in the search PATH. Generally /usr/local/bin isn't. 4.2 DOS/WindowsCopy manually the compiled executables in a directory of your choice.5 RequirementsTo compile AdvanceMAME you need at least 128 Mbyte of memory, 256 Mbyte are suggested.5.1 LinuxTo build in Linux you need the following software:
The following software is also used if present:
The suggested gcc compiler versions are 3.2.3 and 3.3.4. The versions 2.96.x, 3.0.x don't work. Other versions should work. The SVGALIB 1.4.x versions are NOT supported. Download the latest ALPHA 1.9.x or 2.0.x version from http://www.svgalib.org/. In the contrib/svgalib directory there are some source patches to fix some problems of the library. Remember to edit the /etc/vga/libvga.conf file with your settings. Specifically you need at least to set correctly `HorizSync' and `VertRefresh'. If your distribution doesn't contain the S-Lang library you can download it from http://www.s-lang.org/. 5.2 Mac OS XTo build in Mac OS X and other Unix you need the following software:
The following software is also used if present:
The gcc compiler and make program are included in the Apple Development Kit which must be installed manually from the original Mac OS X cd. The SDL library must be manually compiled and installed. Please note that you may need to use the --with-sdl-prefix option of the ./configure script to correctly find the installed SDL library. Generally "./configure --with-sdl-prefix=/usr/local" is enough. 5.3 DOSTo build in DOS you need the following software:
The suggested gcc compiler versions are 3.2.3 and 3.3.4. The versions 3.0.x don't work. The version 3.4.x may have some problems related to the new "unit-at-a-time" compilation, don't use it, or disable this feature with the option -fnounit-at-a-time. Other versions should work. The patched SEAL library is available at http://www.mame.net/. Ensure to have the DOS version of NASM. If you have the Windows version named `nasmw.exe' you must rename it as `nasm.exe' or change the `Makefile.usr' to use it. If compiling you get the "Argument list too long" error, or "Error -1" you need to use the DJGPP stubedit utility to increase bufsize value for some DJGPP tools, with the following commands:
stubedit c:\djgpp\bin\gcc.exe bufsize=32k stubedit c:\djgpp\bin\ld.exe bufsize=32k stubedit c:\djgpp\bin\make.exe bufsize=32k stubedit c:\djgpp\lib\gcc-lib\djgpp\3.23\collect2.exe bufsize=32k You may need to use different paths to the files, especially for collect2.exe. 5.4 WindowsTo build in Windows you need the following software:
The only tested compiler version is 3.2.3. Other versions should work. 5.5 Generic UnixTo build in a generic Unix environment you need the following software:
The following software is also used if present:
6 DebuggingTo debug the program the suggested configuration options are:
The svgalib library is disabled because it interferes with the stack backtrace on the signal handler. The pthread library is disabled because it interferes with the debugger signals. The suggested environment is X Window using the SDL library. This allow to run the debugger and the programs on the same monitor and keyboard. 7 CopyrightThis file is Copyright (C) 2003, 2004 Andrea Mazzoleni. |