Previous Thread
Next Thread
Print Thread
Page 2 of 6 1 2 3 4 5 6
#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,517
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,517
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,517
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,517
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,517
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,517
USA
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 

Who's Online Now
5 registered members (zillion, AJR, Breiztiger, JonasP, 1 invisible), 24 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,307
Posts107,341
Members4,731
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.064s Queries: 14 (0.009s) Memory: 5.0286 MB (Peak: 5.2810 MB) Zlib enabled. Server Time: 2017-03-24 21:52:52 UTC