Previous Thread
Next Thread
Print Thread
Page 1 of 6 1 2 3 4 5 6
#35138 - 10/29/07 03:48 PM Sticky: How to compile SDLMAME! (Read me first!)  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Like I said elsewhere, this thread is for people to post what needs to be done to compile SDLMAME on a base install of an OS or Linux distro. It is NOT for discussion or support - if you are unable to build SDLMAME with these instructions, please start a new thread!

To kick off, for Fedora 18/19/20:
Code:
yum install gcc gcc-c++ SDL-devel libXinerama-devel qt-devel expat-devel fontconfig-devel SDL_ttf SDL_ttf-devel


If you are using a joypad or joystick (including wired USB Xbox 360 controllers), you'll need to make sure those drivers are installed as well:
Code:
yum install kernel-modules-extra


Updated Dec, 2013: Updated for Fedora 20 and latest MAME/MESS.

Last edited by R. Belmont; 12/23/13 02:59 AM. Reason: 0.152 on F20 updates
#35140 - 10/29/07 04:17 PM Re: SDLMAME distro cookbook [Re: R. Belmont]  
Joined: Jul 2007
Posts: 24
play0r Offline
Member
play0r  Offline
Member

Joined: Jul 2007
Posts: 24
Ubuntu 11.10 (should also work for Kubuntu)
Code:
sudo apt-get install build-essential subversion libsdl1.2-dev libgtk2.0-dev libgconf2-dev libsdl-ttf2.0-dev 


For Ubuntu 12.10 make that:
Code:
sudo apt-get install build-essential subversion libsdl1.2-dev libgtk2.0-dev libgconf2-dev libsdl-ttf2.0-dev gcc-4.6 g++-4.6


And for 14.04 make that:
Code:
sudo apt-get install build-essential subversion libsdl1.2-dev libgtk2.0-dev libgconf2-dev libsdl-ttf2.0-dev gcc-4.6 g++-4.6
sudo apt-get install libqt4-*


On 12.10, for MAME versions 0.147u5 and later 12.10 will be auto-detected and it will prompt you to install gcc-4.6 and g++-4.6 if you haven't already. If you do have them installed, it will build automatically. For 0.147u4 and earlier, you must "make DISTRO=gcc46-generic".

I believe this should be all you need, if not please correct me.

play0r

[RB - updated July 2014 for 14.04 and latest MAME/MESS]

Last edited by R. Belmont; 07/15/14 06:07 AM.
#35144 - 10/29/07 07:34 PM Re: SDLMAME distro cookbook [Re: play0r]  
Joined: Apr 2004
Posts: 1,549
judge Offline
Very Senior Member
judge  Offline
Very Senior Member

Joined: Apr 2004
Posts: 1,549
OS X:
- Install latest Xcode
- Install latest SDL development libraries
- make TARGETOS=macosx
- Add BIGENDIAN=1 to the line above when building for a PowerMac system

[RB - updated PPC instructions]

Last edited by R. Belmont; 05/24/08 02:22 PM.
#35167 - 10/30/07 07:33 AM Re: SDLMAME distro cookbook [Re: belegdol]  
Joined: Apr 2004
Posts: 1,549
judge Offline
Very Senior Member
judge  Offline
Very Senior Member

Joined: Apr 2004
Posts: 1,549
For a FreeBSD system with an up to date ports tree:
- cd /usr/ports/emulators/sdlmame
- su
- make
- make install

That will automatically download, compile, and install sdlmame and all needed dependencies.

If you want to build from the latest u-update, make sure you have done the above at least once to get the needed dependencies and from there on it's just a matter of issuing the appropriate make commands.


Sadly enough, there doesn't seem to be a PBI for pcbsd yet for either sdlmame or sdlmess.

Last edited by judge; 10/30/07 09:09 AM.
#41551 - 05/24/08 02:32 PM Re: SDLMAME distro cookbook [Re: judge]  
Joined: Jun 2007
Posts: 223
billb Offline
Senior Member
billb  Offline
Senior Member

Joined: Jun 2007
Posts: 223
For Yellow Dog 6 (assuming Software Development checked during install)

Code:
yum install gcc SDL-devel expat-devel zlib-devel mesa-libGL-devel gtk2-devel GConf2-devel


Detailed instructions

Last edited by R. Belmont; 03/05/09 04:50 PM. Reason: fixed GL name as per Bill
#43035 - 07/19/08 10:04 PM Re: SDLMAME distro cookbook [Re: play0r]  
Joined: Feb 2007
Posts: 463
couriersud Offline
Senior Member
couriersud  Offline
Senior Member

Joined: Feb 2007
Posts: 463
Ubuntu 8.04 (Hardy Heron)
Code:
sudo apt-get install build-essential libsdl1.2-dev libgtk2.0-dev libxinerama-dev libgconf2-dev


Tested on a fresh install from the Live-CD.


#44100 - 08/26/08 02:12 AM Re: SDLMAME distro cookbook [Re: couriersud]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
For Debian and friends with OSS4, you may not get sound using the default libsdl1.2debian-alsa package. Replacing it with libsdl1.2debian-oss and specifying the sound driver for SDLMAME as "dsp" should work. (Thanks Rhapsody!)

#44498 - 09/06/08 06:20 PM Re: SDLMAME distro cookbook [Re: R. Belmont]  
Joined: Dec 2006
Posts: 149
jrcmilanez Offline
Senior Member
jrcmilanez  Offline
Senior Member

Joined: Dec 2006
Posts: 149
For Mandriva users:

1 - install your system with development packages
2 - get libsdl-devel package via urpmi
3 - edit SDLMAME makefile with your requirements
4 - make!

#45488 - 10/11/08 10:33 AM Re: SDLMAME distro cookbook [Re: jrcmilanez]  
Joined: Sep 2006
Posts: 200
Cyberzinho Punk Offline
Senior Member
Cyberzinho Punk  Offline
Senior Member

Joined: Sep 2006
Posts: 200
São José dos Campos, SP, Bra...
For Slackware Linux users:

$ unzip sdlmamexxx.zip
$ cd ./sdlmamexxx
$ mcedit makefile //and edit for your requirements
$ make

Dependencies:

GConf (ftp://ftp.gnome.org/pub/GNOME/sources/GConf/)
ORBit2 (ftp://ftp.gnome.org/pub/GNOME/sources/ORBit2/)
intltool (ftp://ftp.gnome.org/pub/GNOME/sources/intltool/)

Last edited by R. Belmont; 11/10/08 05:46 PM. Reason: updated again

Sorry, my English is bad!
MAME for Slackware
#46678 - 12/05/08 01:20 AM Re: SDLMAME distro cookbook [Re: judge]  
Joined: Jul 2008
Posts: 73
ElBarto Offline
Member
ElBarto  Offline
Member

Joined: Jul 2008
Posts: 73
France, Paris
Originally Posted By judge
For a FreeBSD system with an up to date ports tree:
- cd /usr/ports/emulators/sdlmame
- su
- make
- make install

That will automatically download, compile, and install sdlmame and all needed dependencies.

If you want to build from the latest u-update, make sure you have done the above at least once to get the needed dependencies and from there on it's just a matter of issuing the appropriate make commands.


Sadly enough, there doesn't seem to be a PBI for pcbsd yet for either sdlmame or sdlmess.


I've updated the ports for sdlmame and sdlmess and also created a sdlmame-devel ports for u release.
They are not in the current ports-tree yet (I've opened PR but the original commiter seems dead ...).
Just get the tgz at http://distfiles.arcadebsd.org/ports rm the current directory and extract the new one.
I've removed the useless wrapper script and sdlmame and sdlmess use .mame and .mess respectively (sdlmame-devel use .mame-devel to avoid configuration problems).

#46700 - 12/06/08 01:16 PM Re: SDLMAME distro cookbook [Re: couriersud]  
Joined: Feb 2007
Posts: 463
couriersud Offline
Senior Member
couriersud  Offline
Senior Member

Joined: Feb 2007
Posts: 463
Ubuntu 8.10 (Intrepid Ibex) (also applies to Kubuntu 8.10 and Xubuntu 8.10 and any other *buntu 8.10)
Code:
sudo apt-get install build-essential libsdl1.2-dev libgtk2.0-dev libxinerama-dev libgconf2-dev
sudo apt-get install gcc-4.2

On 32bit:
Code:
make CC=@gcc-4.2 LD=@gcc-4.2

On 64bit:
Code:
make CC=@gcc-4.2 LD=@gcc-4.2 PTR64=1

You may of course edit the makefile as well.

gcc 4.3 exhibits certain bugs when compiling mame both in 32bit and 64bit. Therefore we need to explicitly specify CC and LD to use gcc 4.2.

Tested on a fresh install from the Live-CD as well as on my regular system.

Note: If you do not need pbuilder you may "apt-get remove" gcc-4.3 as well. But then you have to create the link "/usr/bin/gcc" yourself. mad

Last edited by R. Belmont; 12/10/08 04:19 PM.
#46793 - 12/10/08 04:19 PM Re: SDLMAME distro cookbook [Re: Christina]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Please do not ask questions in this thread, it is for reference only.

#47036 - 12/24/08 09:58 PM Re: SDLMAME distro cookbook [Re: ElBarto]  
Joined: Sep 2006
Posts: 200
Cyberzinho Punk Offline
Senior Member
Cyberzinho Punk  Offline
Senior Member

Joined: Sep 2006
Posts: 200
São José dos Campos, SP, Bra...
For Slackware Linux 12.2 users:

$ unzip sdlmamexxx.zip
$ cd ./sdlmamexxx
$ mcedit makefile //and edit for your requirements
$ make

Dependencies:

GConf (ftp://ftp.gnome.org/pub/GNOME/sources/GConf/)
ORBit2 (ftp://ftp.gnome.org/pub/GNOME/sources/ORBit2/)

Note: intltool is no more a dependence to compile SDLMAME on Slackware Linux 12.2 because this package is included on this Slackware release.........


Sorry, my English is bad!
MAME for Slackware
#47102 - 12/29/08 12:53 PM Re: SDLMAME distro cookbook [Re: Cyberzinho Punk]  
Joined: Mar 2007
Posts: 28
roothorick Offline
Member
roothorick  Offline
Member

Joined: Mar 2007
Posts: 28
Gentoo:

The Gentoo official method is:

mkdir -p /etc/portage
echo "app-emulation/sdlmame ~arch" >> /etc/portage/package.keywords
emerge sdlmame

That will get you 0.127 installed on your system. It looks like there's no set location for ROMs; just keep them in your home dir I guess.

Personally, 0.127 isn't new enough for me, so I added a location in my home directory to my PATH, and I manually compile sdlmame, and copy the binary there.

#48644 - 03/10/09 08:29 AM Re: SDLMAME distro cookbook [Re: roothorick]  
Joined: Mar 2009
Posts: 20
Juryiel Offline
Member
Juryiel  Offline
Member

Joined: Mar 2009
Posts: 20
PPC64 (done in Gentoo and version sdlmame0.130 here):

Code:
In src/emu/eigccppc.h, change all instances of bne-- to bne-
In src/osd/sdl/osinline.h, change all instances of bne-- to bne-

then with a terminal in the sdlmame directory just do
Code:
make BIGENDIAN=1 PTR64=1


Should work well smile

#50664 - 06/08/09 04:27 PM Re: SDLMAME distro cookbook [Re: Juryiel]  
Joined: Jul 2008
Posts: 19
powtrix Offline
Member
powtrix  Offline
Member

Joined: Jul 2008
Posts: 19
Brazil
Hi all
I use a script to do all in one time (tested on slamd64/slackware64). No Gconf needed.


How to use:
Code:
source$ ./sdlupdate.sh ~/your/stuff/sdlmame0132.zip


Code:
#!/bin/bash
#Script para atualizar o SDLMAME
#data: 2009.04.07 22:25 25'

SDLMAMEDIR=~/emu/sdlmame   #where it will copy the binary files
SDLMAMEFILE=`echo $1 | cut -d "/" -f8`   #get only filename, fix w/ your dir
SDLMAMEVER=`echo $SDLMAMEFILE | cut -d "." -f1`   #return version

if [ ! -e "$1" ]; then
  echo OOPs! arquivo \"$1\" inexistente. && exit 1
#fi
elif [ -e $SDLMAMEVER ]; then
  echo Removendo $SDLMAMEVER atual...
  sleep 2
  rm -rfv $SDLMAMEVER || exit 1
  echo && sleep 2
fi

echo Descompactando $SDLMAMEVER ...
unzip $1 && cd $SDLMAMEVER || exit 1
echo

if [ -e makefile ]; then

  echo Aplicando patch para compilar sem Gnome ...
  patch -p1 -i ../sdlfix-2.diff || exit 1
  echo
  
  time make -s PTR64=1 -j5 || exit 1
  echo

  for file in `find . -type f -maxdepth 1`; do 
    if [ -x $file ]; then
      echo Copiando $file ...
      cp -rfv $file $SDLMAMEDIR || exit 1
      md5sum -b $file && md5sum -b $SDLMAMEDIR/$file || exit
    fi
  done
  
fi


Last edited by R. Belmont; 06/08/09 04:31 PM.

--
pow!
#50666 - 06/08/09 04:31 PM Re: SDLMAME distro cookbook [Re: powtrix]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Yeah, that will break the debugger. SDLMAME is for developers first, game players second. I've removed your patch. I've repeatedly outlined the parameters of a patch that would be acceptable to make that dependancy optional and the patch posted is NOT it. You GNOME-o-phobes need to do it right.

Last edited by R. Belmont; 06/08/09 04:35 PM.
#53221 - 09/01/09 07:08 PM Re: SDLMAME distro cookbook [Re: R. Belmont]  
Joined: Sep 2006
Posts: 200
Cyberzinho Punk Offline
Senior Member
Cyberzinho Punk  Offline
Senior Member

Joined: Sep 2006
Posts: 200
São José dos Campos, SP, Bra...
For Slackware Linux 13.0 users:

$ unzip sdlmamexxx.zip
$ cd ./sdlmamexxx
$ mcedit makefile //and edit for your requirements
$ make

Dependencies:

GConf (ftp://ftp.gnome.org/pub/GNOME/sources/GConf/)
ORBit2 (ftp://ftp.gnome.org/pub/GNOME/sources/ORBit2/)


Sorry, my English is bad!
MAME for Slackware
#53788 - 09/12/09 09:13 PM Re: SDLMAME distro cookbook - OSX Snow Leopard [Re: ElBarto]  
Joined: Sep 2009
Posts: 1
Fuzzypig Offline
Member
Fuzzypig  Offline
Member

Joined: Sep 2009
Posts: 1
Apple OSX 10.6 Snow Leopard

Changed the compilation routine slightly:

This is what I did:

OS X:
- Install latest Xcode
- Install latest SDL development libraries
- Unzip SDL Mame ZIP

Edit supplied makefile:

change both lines starting with CFLAGS ( lines 305 and 307 )
append to end of both lines the directive: -m32

Then after line 597 ( $(AR) -cr $@ $^ ) add this line:

ranlib $@

Then compile as normal: make TARGETOS=macosx

Last edited by Fuzzypig; 09/12/09 09:20 PM.
#53790 - 09/12/09 10:11 PM Re: SDLMAME distro cookbook - OSX Snow Leopard [Re: Fuzzypig]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
What is the intent of those changes? I am able to build on 10.6.1 without any modifications to the makefile.

#54254 - 09/22/09 07:22 AM Re: SDLMAME distro cookbook - OSX Snow Leopard [Re: R. Belmont]  
Joined: Apr 2004
Posts: 1,549
judge Offline
Very Senior Member
judge  Offline
Very Senior Member

Joined: Apr 2004
Posts: 1,549
I only had to add the -m32 option to the LDFLAGS to make it link on a macbook pro. Without it I was getting architecture related errors (x86_64 missing from SDL for instance).


#57233 - 12/20/09 03:31 PM Re: SDLMAME distro cookbook [Re: ElBarto]  
Joined: Dec 2009
Posts: 1
ENFDO1 Offline
Member
ENFDO1  Offline
Member

Joined: Dec 2009
Posts: 1
Hi all.
Yesterday O downloaded SDLmame for N900. Im trying to compile for my tablet. But i cant.

I searched all over the net, but i didt get luck.

Ill apreciate every advice you can give.

ENFDO.

#57234 - 12/20/09 04:14 PM Re: SDLMAME distro cookbook [Re: ENFDO1]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Hi, the N900 is not yet supported. That work is in progress and hindered by the fact that none of us working on it have the hardware yet.

#58231 - 01/17/10 10:39 PM Re: SDLMAME distro cookbook - OpenSUSE 11.2 [Re: R. Belmont]  
Joined: May 2007
Posts: 516
mizapf Offline
Senior Member
mizapf  Offline
Senior Member

Joined: May 2007
Posts: 516
Germany
I tried this for a fairly new installation of OpenSUSE 11.2:

Code:
zypper install subversion make gcc gconf2-devel gtk2-devel libSDL-devel


This should allow to check out from Subversion and to build successfully.

Michael

#67744 - 03/01/11 03:02 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2011
Posts: 1
bgm Offline
Member
bgm  Offline
Member

Joined: Mar 2011
Posts: 1
These are the dependencies I had to install on a debian wheezy (testing):

as root:
Code:
aptitude install build-essential libsdl1.2-dev libgtk2.0-dev libsdl-ttf2.0-dev



Last edited by bgm; 03/01/11 03:02 PM.
#77956 - 03/05/12 05:07 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2012
Posts: 3
BiafraRepublic Offline
Member
BiafraRepublic  Offline
Member

Joined: Mar 2012
Posts: 3
For some inane reason, the source needed to have its line endings changed from CRLF to LF using dos2unix whenever I compiled SDLMAME using openSUSE 12.1, in addition, GNOME 3 is now the official GNOME...

So the list would be for openSUSE 12.1

Code:
$ sudo zypper install subversion make gcc gconf2-devel gtk2-devel gtk3-devel libSDL-devel dos2unix
.

After that, decompress the source tree and .diff patch files and run the following where you decompressed the source and applicable patches.

Code:
$ dos2unix -o *
$ patch -p0 -E < patchfile.diff /* for each patch to apply*/
$ make

#77957 - 03/05/12 05:17 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
patch --binary will allow the patching to work even with the original line endings.

ETA: MAME still explicitly uses GTK+ 2.x, so you shouldn't need gtk3-devel.

Last edited by R. Belmont; 03/05/12 09:55 PM.
#77958 - 03/05/12 09:59 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2012
Posts: 3
BiafraRepublic Offline
Member
BiafraRepublic  Offline
Member

Joined: Mar 2012
Posts: 3
Originally Posted By R. Belmont
patch --binary will allow the patching to work even with the original line endings.


So will running the following in the ...

Quote:
for i in 'ls -Ar *'; do sed 's/^M//g' $i :> $i; done /* to output a ^M (ctrl-m), type ctrl-v then ctrl-m */


...but dos2unix has never failed me yet.

Also, openSUSE 12.1 requires gtk3-devel with gcc unless you don't install GNOME (due to the switch to GNOME 3).

Last edited by BiafraRepublic; 03/05/12 10:01 PM.
#77959 - 03/05/12 10:07 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
If you actually understand sed syntax, you probably don't need this guide in the first place.

For everyone else, patch --binary is much, much easier smile

ETA: Also, there have been issues reported in the past where mass conversions like that hit some binary files in the source tree and caused the compile to fail and/or the resulting binary to not work properly. Restrict to *.c, *.h, and *.mak for safety.

Last edited by R. Belmont; 03/05/12 10:28 PM.
#77960 - 03/05/12 10:33 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2004
Posts: 601
belegdol Offline
Senior Member
belegdol  Offline
Senior Member

Joined: Mar 2004
Posts: 601
Switzerland
Code:
find . -type f -not -name *.png -exec sed -i 's/\r//' {} \;

This is what mame RPM Fusion package currently uses.

#77961 - 03/05/12 11:14 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Speaking of which, does RPMFusion package u releases or just integer?

#77966 - 03/06/12 07:38 AM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: May 2008
Posts: 4,797
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,797
Germany
Originally Posted By R. Belmont
Speaking of which, does RPMFusion package u releases or just integer?

Apparently also u-releases, for example:
http://download1.rpmfusion.org/nonfree/fedora/updates/testing/16/x86_64/repoview/mame.html


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#77970 - 03/06/12 04:40 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2004
Posts: 601
belegdol Offline
Senior Member
belegdol  Offline
Senior Member

Joined: Mar 2004
Posts: 601
Switzerland
Yeah, u releases never leave -testing but they are there.

#77971 - 03/06/12 04:45 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Ahh, ok. I don't normally have -testing added, so that's why I didn't see it.

#78139 - 03/17/12 12:48 AM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2012
Posts: 3
BiafraRepublic Offline
Member
BiafraRepublic  Offline
Member

Joined: Mar 2012
Posts: 3
Originally Posted By R. Belmont
Also, there have been issues reported in the past where mass conversions like that hit some binary files in the source tree and caused the compile to fail and/or the resulting binary to not work properly. Restrict to *.c, *.h, and *.mak for safety.


Another reason why I prefer dos2unix. It is fairly accurate at ignoring anything that appears to be a non-text file.

Also, I'm looking about on software.opensuse.org, and while there are packages available, the releases are almost a year old year old (I don't know which one it is at the moment as I'm dualbooted into Windows at present)...

openSUSE 12.1: http://download.opensuse.org/repositories/Emulators/openSUSE_12.1/
openSUSE 11.4: http://download.opensuse.org/repositories/Emulators/openSUSE_11.4/

#78140 - 03/17/12 03:02 AM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
That's actually a good point - I have no idea who's doing the SuSE packaging right now, if anyone. All the other "name" distros and the *BSDs are actively updated.

#78141 - 03/17/12 10:17 AM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: May 2008
Posts: 4,797
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,797
Germany
The MAME package for openSUSE is usually taken from PackMan since there's apparently no 'official' package that's up to date:

http://packman.links2linux.org/package/mame

(EDIT: I was considering to add MAME and MESS packages to "my" QMC2 repository just because of this, but I've actually better things to do smile )

Last edited by qmc2; 03/17/12 10:34 AM.

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#94468 - 05/29/14 05:25 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Dec 2007
Posts: 106
torturedutopian Offline
Senior Member
torturedutopian  Offline
Senior Member

Joined: Dec 2007
Posts: 106
Hi ! Are there some additional build options that could be used in order to speed up emulation (x64 target in my case) ? I didn't realize my i3 CPU would be too slow for Cave SH3 emulation... Just a little, but it is !

#94471 - 05/29/14 11:05 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Default options are as good as it gets usually, and GCC tends to get buggy fast if you go off the beaten path. Cave SH3 is quite heavy - it's a miracle it runs fast on any PC at all right now.

#102019 - 10/14/15 04:40 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: May 2015
Posts: 21
mixmaster Offline
Member
mixmaster  Offline
Member

Joined: May 2015
Posts: 21
Arch Linux instructions:

Code:
sudo pacman -S base-devel git sdl2 gtk2 gconf sdl2_ttf gcc qt4


GCC comes with G++ by default in Pacman! laugh

Last edited by mixmaster; 10/14/15 04:42 PM.
#102020 - 10/14/15 05:39 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Arch has reliable, quickly-updated binary packages of MAME as well, which is one thing that definitely recommends them smile

#102867 - 12/02/15 03:44 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Dec 2012
Posts: 20
Braintrash Offline
Member
Braintrash  Offline
Member

Joined: Dec 2012
Posts: 20
Paris, France
How do I compile the tools under OS X?
I compile MAME (complete, arcade only and mess only) without any slight issue, but the tools are never built and the old ways to compile them are not working anymore...

#102868 - 12/02/15 04:06 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: May 2008
Posts: 4,797
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,797
Germany
Use "make TOOLS=1". Add "REGENIE=1" to rerun genie if necessary.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#102869 - 12/02/15 04:12 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: qmc2]  
Joined: Dec 2012
Posts: 20
Braintrash Offline
Member
Braintrash  Offline
Member

Joined: Dec 2012
Posts: 20
Paris, France
Thank you, will try it once my current compile is done.

Originally Posted By qmc2
Add "REGENIE=1" to rerun genie if necessary.


What's this for?

#102870 - 12/02/15 04:15 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: May 2008
Posts: 4,797
qmc2 Offline
qmc2  Offline

Very Senior Member

Joined: May 2008
Posts: 4,797
Germany
Well, GENie generates the make-files, and this would force them to be regenerated in case they already exist. The tools are no longer a direct "make target" but an option (TOOLS=1) that will add the required rules to the produced make-files.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
#102871 - 12/02/15 04:18 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Dec 2012
Posts: 20
Braintrash Offline
Member
Braintrash  Offline
Member

Joined: Dec 2012
Posts: 20
Paris, France
Still compiling, but while I'm there, I know I'm way long overdue on this (well, after surgery, job loss, wife loss and basically shitty life :-), finally back into the game. So, is a French translator needed to QMC2? If so, I'll register an account and fill in this evening.

#102872 - 12/02/15 04:30 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Dec 2012
Posts: 20
Braintrash Offline
Member
Braintrash  Offline
Member

Joined: Dec 2012
Posts: 20
Paris, France
Seems to be working, without needing the REGENIE.
Thanks!

#103256 - 12/26/15 07:43 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
For Debian Jessie, including the Raspbian variant for the RPi 2, and MAME 0.170+:

Code:
apt-get install git build-essentials libsdl2-dev libsdl2-ttf-dev libfontconfig-dev qt5-default


This should also work on the ODROID U3 and XU4 running Debian. Do NOT attempt on the original Pi!

For instance, to build an Apple II-only MAME on the Pi 2:
Code:
make SOURCES=src/mame/drivers/apple2.cpp,src/mame/drivers/apple2e.cpp,src/mame/video/apple2.cpp REGENIE=1 -j5


The Pi 2 has 4 CPU cores, so -j5 will (slightly) help compilation speeds.

A fast harddisk or SSD connected to the Pi 2's USB ports will greatly outperform most microSD cards, so it's worthwhile to put the MAME source tree on such a drive.

Last edited by R. Belmont; 02/04/16 07:05 PM.
#103261 - 12/27/15 12:30 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Feb 2008
Posts: 103
max holz Offline
Senior Member
max holz  Offline
Senior Member

Joined: Feb 2008
Posts: 103
Italy
I just see that the debugger was upgraded to qt5.
Which packages I need to install on Ubuntu 14.04?
Or better is there an option to completely skip debugger compilation?

#103265 - 12/27/15 12:53 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Mar 2001
Posts: 15,585
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,585
USA
Looks like it's qt5-default for both Ubuntu and Debian.

Skipping the debugger doesn't buy you anything unless you're targeting something without a window system.

Last edited by R. Belmont; 12/27/15 01:01 PM.
#105710 - 05/23/16 12:55 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]  
Joined: Jan 2006
Posts: 3,685
etabeta78 Offline
Very Senior Member
etabeta78  Offline
Very Senior Member

Joined: Jan 2006
Posts: 3,685
Trondheim, Norway
small note to point out that as of current git repo, MAME requires Xcode 7.x (and thus OSX >= 10.10.4) to compile on OSX due to some flags which are set by BGFX library which are not recognized by older clang.

not a big deal since update to 10.11 is free, but still worth a not for whoever is stuck for any reason to 10.10.3 (as I am for another couple of weeks)

Page 1 of 6 1 2 3 4 5 6

Moderated by  R. Belmont 

Who's Online Now
4 registered members (ted, AJR, JonasP, R. Belmont), 24 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,340
Posts107,780
Members4,738
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.054s Queries: 14 (0.010s) Memory: 5.4278 MB (Peak: 5.9383 MB) Zlib enabled. Server Time: 2017-05-28 12:21:36 UTC