Previous Thread
Next Thread
Print Thread
Page 3 of 6 1 2 3 4 5 6
Re: SDLMAME distro cookbook - OSX Snow Leopard [Re: R. Belmont] #54254
09/22/09 07:22 AM
09/22/09 07:22 AM
Joined: Apr 2004
Posts: 1,553
J
judge Offline
Very Senior Member
judge  Offline
Very Senior Member
J
Joined: Apr 2004
Posts: 1,553
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).


Re: SDLMAME distro cookbook [Re: ElBarto] #57233
12/20/09 03:31 PM
12/20/09 03:31 PM
Joined: Dec 2009
Posts: 1
E
ENFDO1 Offline
Member
ENFDO1  Offline
Member
E
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.

Re: SDLMAME distro cookbook [Re: ENFDO1] #57234
12/20/09 04:14 PM
12/20/09 04:14 PM
Joined: Mar 2001
Posts: 15,988
USA
R
R. Belmont Offline OP
Very Senior Member
R. Belmont  Offline OP
Very Senior Member
R
Joined: Mar 2001
Posts: 15,988
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.

Re: SDLMAME distro cookbook - OpenSUSE 11.2 [Re: R. Belmont] #58231
01/17/10 10:39 PM
01/17/10 10:39 PM
Joined: May 2007
Posts: 542
Germany
M
mizapf Offline
Senior Member
mizapf  Offline
Senior Member
M
Joined: May 2007
Posts: 542
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

Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont] #67744
03/01/11 03:02 PM
03/01/11 03:02 PM
Joined: Mar 2011
Posts: 1
B
bgm Offline
Member
bgm  Offline
Member
B
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.
Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont] #77956
03/05/12 05:07 PM
03/05/12 05:07 PM
Joined: Mar 2012
Posts: 3
B
BiafraRepublic Offline
Member
BiafraRepublic  Offline
Member
B
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

Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont] #77957
03/05/12 05:17 PM
03/05/12 05:17 PM
Joined: Mar 2001
Posts: 15,988
USA
R
R. Belmont Offline OP
Very Senior Member
R. Belmont  Offline OP
Very Senior Member
R
Joined: Mar 2001
Posts: 15,988
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.
Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont] #77958
03/05/12 09:59 PM
03/05/12 09:59 PM
Joined: Mar 2012
Posts: 3
B
BiafraRepublic Offline
Member
BiafraRepublic  Offline
Member
B
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.
Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont] #77959
03/05/12 10:07 PM
03/05/12 10:07 PM
Joined: Mar 2001
Posts: 15,988
USA
R
R. Belmont Offline OP
Very Senior Member
R. Belmont  Offline OP
Very Senior Member
R
Joined: Mar 2001
Posts: 15,988
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.
Re: Sticky: How to compile SDLMAME! (Read me first!) [Re: R. Belmont] #77960
03/05/12 10:33 PM
03/05/12 10:33 PM
Joined: Mar 2004
Posts: 604
Switzerland
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 (Tafoid, Vas Crabb), 53 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,566
Posts111,891
Members4,805
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.028s Queries: 14 (0.009s) Memory: 5.7267 MB (Peak: 5.9486 MB) Zlib enabled. Server Time: 2018-08-19 09:39:16 UTC