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

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

Very Senior Member

Joined: Mar 2001
Posts: 15,658
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: 520
mizapf Offline
Senior Member
mizapf  Offline
Senior Member

Joined: May 2007
Posts: 520
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,658
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

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

Very Senior Member

Joined: Mar 2001
Posts: 15,658
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: 604
belegdol Offline
Senior Member
belegdol  Offline
Senior Member

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

This is what mame RPM Fusion package currently uses.

Page 3 of 6 1 2 3 4 5 6

Moderated by  R. Belmont 

Who's Online Now
2 registered members (Robbbert, 1 invisible), 18 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,385
Posts108,508
Members4,750
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.041s Queries: 14 (0.018s) Memory: 5.0218 MB (Peak: 5.2473 MB) Zlib enabled. Server Time: 2017-07-26 12:30:29 UTC