Previous Thread
Next Thread
Print Thread
Page 3 of 6 1 2 3 4 5 6
Joined: Apr 2004
Posts: 1,557
Likes: 4
J
Very Senior Member
Offline
Very Senior Member
J
Joined: Apr 2004
Posts: 1,557
Likes: 4
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).


Joined: Dec 2009
Posts: 1
E
Member
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.

Joined: Mar 2001
Posts: 17,008
Likes: 94
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,008
Likes: 94
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.

Joined: May 2007
Posts: 568
Likes: 3
M
Senior Member
Offline
Senior Member
M
Joined: May 2007
Posts: 568
Likes: 3
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

Joined: Mar 2011
Posts: 1
B
bgm Offline
Member
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.
Joined: Mar 2012
Posts: 3
B
Member
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

Joined: Mar 2001
Posts: 17,008
Likes: 94
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,008
Likes: 94
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.
Joined: Mar 2012
Posts: 3
B
Member
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.
Joined: Mar 2001
Posts: 17,008
Likes: 94
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 17,008
Likes: 94
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.
Joined: Mar 2004
Posts: 673
Likes: 1
Senior Member
Offline
Senior Member
Joined: Mar 2004
Posts: 673
Likes: 1
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 

Link Copied to Clipboard
Who's Online Now
5 members (robcfg, Golden Child, Pernod, MAMEBase, ssj), 39 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,189
Posts120,335
Members5,044
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