Page 3 of 4 < 1 2 3 4 >
Topic Options
#54254 - 09/22/09 08:22 AM Re: SDLMAME distro cookbook - OSX Snow Leopard [Re: R. Belmont]
judge Online   content
Very Senior Member

Registered: 04/13/04
Posts: 1438
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).


Top
#57233 - 12/20/09 03:31 PM Re: SDLMAME distro cookbook [Re: ElBarto]
ENFDO1 Offline
Member

Registered: 12/20/09
Posts: 1
Hi all.
Yesterday O downloaded SDLmame for N900. Iīm trying to compile for my tablet. But i canīt.

I searched all over the net, but i didīt get luck.

Iīll apreciate every advice you can give.

ENFDO.

Top
#57234 - 12/20/09 04:14 PM Re: SDLMAME distro cookbook [Re: ENFDO1]
R. Belmont Offline
Very Senior Member

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

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

Registered: 05/10/07
Posts: 432
Loc: 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

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

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




Edited by bgm (03/01/11 03:02 PM)

Top
#77956 - 03/05/12 05:07 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]
BiafraRepublic Offline
Member

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

Top
#77957 - 03/05/12 05:17 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]
R. Belmont Offline
Very Senior Member

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


Edited by R. Belmont (03/05/12 09:55 PM)

Top
#77958 - 03/05/12 09:59 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]
BiafraRepublic Offline
Member

Registered: 03/01/12
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).


Edited by BiafraRepublic (03/05/12 10:01 PM)

Top
#77959 - 03/05/12 10:07 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]
R. Belmont Offline
Very Senior Member

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


Edited by R. Belmont (03/05/12 10:28 PM)

Top
#77960 - 03/05/12 10:33 PM Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont]
Belegdol Offline
Senior Member

Registered: 03/06/04
Posts: 563
Loc: Switzerland
Code:
find . -type f -not -name *.png -exec sed -i 's/\r//' {} \;

This is what mame RPM Fusion package currently uses.

Top
Page 3 of 4 < 1 2 3 4 >


Moderator:  R. Belmont 
Who's Online
1 registered (shattered), 22 Guests and 2 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Forum Stats
4345 Members
9 Forums
7230 Topics
87152 Posts

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