Previous Thread
Next Thread
Print Thread
Page 2 of 6 1 2 3 4 5 6
Joined: Feb 2007
Posts: 507
C
Senior Member
Offline
Senior Member
C
Joined: Feb 2007
Posts: 507
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.
Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
Please do not ask questions in this thread, it is for reference only.

Joined: Sep 2006
Posts: 200
Senior Member
Offline
Senior Member
Joined: Sep 2006
Posts: 200
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
Joined: Mar 2007
Posts: 28
R
Member
Offline
Member
R
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.

Joined: Mar 2009
Posts: 20
J
Member
Offline
Member
J
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

Joined: Jul 2008
Posts: 19
P
Member
Offline
Member
P
Joined: Jul 2008
Posts: 19
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!
Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
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.
Joined: Sep 2006
Posts: 200
Senior Member
Offline
Senior Member
Joined: Sep 2006
Posts: 200
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
Joined: Sep 2009
Posts: 1
F
Member
Offline
Member
F
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.
Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
What is the intent of those changes? I am able to build on 10.6.1 without any modifications to the makefile.

Page 2 of 6 1 2 3 4 5 6

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (MrBogi), 303 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,320
Posts121,929
Members5,074
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com