Previous Thread
Next Thread
Print Thread
Page 3 of 6 1 2 3 4 5 6
Joined: Apr 2004
Posts: 1,563
Likes: 12
J
Very Senior Member
Very Senior Member
J Offline
Joined: Apr 2004
Posts: 1,563
Likes: 12
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
Member
E Offline
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,239
Likes: 263
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,239
Likes: 263
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: 584
Likes: 9
M
Senior Member
Senior Member
M Offline
Joined: May 2007
Posts: 584
Likes: 9
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
Member
B Offline
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
Member
B Offline
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,239
Likes: 263
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,239
Likes: 263
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
Member
B Offline
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,239
Likes: 263
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,239
Likes: 263
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: 700
Likes: 2
Senior Member
Senior Member
Joined: Mar 2004
Posts: 700
Likes: 2
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
2 members (ssj, AJR), 229 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,331
Posts122,196
Members5,077
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
Powered by UBB.threads™ PHP Forum Software 8.0.0