Page 2 of 4 < 1 2 3 4 >
Topic Options
#46700 - 12/06/08 01:16 PM Re: SDLMAME distro cookbook [Re: couriersud]
couriersud Offline
Senior Member

Registered: 02/19/07
Posts: 415
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


Edited by R. Belmont (12/10/08 04:19 PM)

Top
#46793 - 12/10/08 04:19 PM Re: SDLMAME distro cookbook [Re: Christina]
R. Belmont Offline
Very Senior Member

Registered: 03/17/01
Posts: 13211
Loc: USA
Please do not ask questions in this thread, it is for reference only.

Top
#47036 - 12/24/08 09:58 PM Re: SDLMAME distro cookbook [Re: ElBarto]
Cyberzinho Punk Offline
Senior Member

Registered: 09/26/06
Posts: 171
Loc: São José dos Campos, SP, Brazi...
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

Top
#47102 - 12/29/08 12:53 PM Re: SDLMAME distro cookbook [Re: Cyberzinho Punk]
roothorick Offline
Member

Registered: 03/25/07
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.

Top
#48644 - 03/10/09 08:29 AM Re: SDLMAME distro cookbook [Re: roothorick]
Juryiel Offline
Member

Registered: 03/09/09
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

Top
#50664 - 06/08/09 05:27 PM Re: SDLMAME distro cookbook [Re: Juryiel]
powtrix Offline
Member

Registered: 07/08/08
Posts: 19
Loc: 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



Edited by R. Belmont (06/08/09 05:31 PM)
_________________________
--
pow!

Top
#50666 - 06/08/09 05:31 PM Re: SDLMAME distro cookbook [Re: powtrix]
R. Belmont Offline
Very Senior Member

Registered: 03/17/01
Posts: 13211
Loc: 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.


Edited by R. Belmont (06/08/09 05:35 PM)

Top
#53221 - 09/01/09 08:08 PM Re: SDLMAME distro cookbook [Re: R. Belmont]
Cyberzinho Punk Offline
Senior Member

Registered: 09/26/06
Posts: 171
Loc: São José dos Campos, SP, Brazi...
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

Top
#53788 - 09/12/09 10:13 PM Re: SDLMAME distro cookbook - OSX Snow Leopard [Re: ElBarto]
Fuzzypig Offline
Member

Registered: 09/12/09
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


Edited by Fuzzypig (09/12/09 10:20 PM)

Top
#53790 - 09/12/09 11:11 PM Re: SDLMAME distro cookbook - OSX Snow Leopard [Re: Fuzzypig]
R. Belmont Offline
Very Senior Member

Registered: 03/17/01
Posts: 13211
Loc: USA
What is the intent of those changes? I am able to build on 10.6.1 without any modifications to the makefile.

Top
Page 2 of 4 < 1 2 3 4 >


Moderator:  R. Belmont 
Who's Online
2 registered (oddi, 1 invisible), 17 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Shout Box

Forum Stats
4350 Members
9 Forums
7243 Topics
87577 Posts

Max Online: 183 @ 03/06/12 06:21 PM