Previous Thread
Next Thread
Print Thread
Page 6 of 52 1 2 4 5 6 7 8 51 52
Joined: Nov 2008
Posts: 74
P
Member
Offline
Member
P
Joined: Nov 2008
Posts: 74
OK, now officially...

I tried to build mame for Debian. Patch applies OK, but when compiling I get this error:

src/emu/attotime.h: In function attotime double_to_attotime(double):
src/emu/attotime.h:189: warning: converting to seconds_t from double
make: *** [obj/sdl/mame/osd/sdl/debugwin.o] Fehler 1



Joined: Dec 2003
Posts: 132
K
Senior Member
Offline
Senior Member
K
Joined: Dec 2003
Posts: 132
Compiling was soooo easy on MacOS X till 0.136. Now it's a pain in the ass (at least for people like me with no programming experience at all)...

Joined: Jan 2006
Posts: 3,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
did you noticed we have changed compiling tools and merged SDLMAME with baseline MAME? This meant HUGE changes to the makefile and therefore some regressions are possible.

there is work in progress to make it again simple as it was (did you read all the posts of this thread?).

Joined: Dec 2003
Posts: 132
K
Senior Member
Offline
Senior Member
K
Joined: Dec 2003
Posts: 132
Sorry, did not read all. I read the part with 0.136u1 as I would like to compile and use it as soon as possible but I did not see anything about future versions. I hope you can do something about that.

Joined: Mar 2001
Posts: 16,921
Likes: 57
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,921
Likes: 57
It's never going to be exactly as simple as it was (I am not going to post pre-patched source trees anymore) but it should in the future be pretty much exactly as simple as it always has been for Windows users. You don't want to claim to be dumber than them, right? smile

Joined: Dec 2003
Posts: 132
K
Senior Member
Offline
Senior Member
K
Joined: Dec 2003
Posts: 132
Hmmm. As soon as I see it I can judge about it. I'm not that dumb wink but a Windows user recently told me what to do to compile the Windows version and I laughed about this because it was - at least in comparison to the MacOS X version - so difficult to compile - now I'm not laughing anymore... wink I hope it's always the same procedure so a detailed and (for non-professional users) understandable how-to guide should do it. Especially if something has to be downloaded additionally or something like that. You always have to consider that not everyone is doing this regularly...

Nevertheless I hope that http://sdlmame.parodius.com/ continues to provide the latest binaries so he can assure that everyone has access to the latest version!

Thanx for all!

Joined: Apr 2007
Posts: 155
Senior Member
Offline
Senior Member
Joined: Apr 2007
Posts: 155
The compilation command:

Code:
make -j3 PREFIX="sdl" NO_X11=1 NO_OPENGL=1 \
 BUILD_EXPAT=1 BUILD_ZLIB=1


didn't build "testkeys romcmp chdman jedutil ldverify regrep srcclean src2html".

What must be done to compile them?


Slackware13.0-64
kernel2.6.31.6-SDL 1.2.14-DirectFB 1.4.0
SLDMame 0.136
21"CRT 15Khz-nv framebuffer
Joined: Feb 2003
Posts: 168
Senior Member
Offline
Senior Member
Joined: Feb 2003
Posts: 168
"This is a deliberate change. Use 'make all' or 'make tools' if you want to build the tools."

Says Aaron

Joined: Feb 2007
Posts: 507
C
Senior Member
Offline
Senior Member
C
Joined: Feb 2007
Posts: 507
The script below allows to drop e.g.

0136u1_diff.zip 0136u2.zip and mame0136s.zip

into one directory and start it (let's call it build) with

./build 0136u2

This will unpack everything into mame0136u2, convert line endings, apply patches and compile.

Code:
#!/bin/sh

RELEASE=`echo $1| cut -f 1 -du`
UREL=`echo $1| cut -f 2 -du`
SOURCEZIP=mame${RELEASE}s.zip
ZIPDIR=mame${RELEASE}u${UREL}

if [ _$UREL = _$RELEASE ]; then
  UREL=0
fi

# Unzip SOURCEZIP

rm -f mame.zip
unzip $SOURCEZIP

rm -rf ${ZIPDIR}
mkdir ${ZIPDIR}
cd ${ZIPDIR}
unzip -q ../mame.zip
find . -type f -not -name uismall.png -exec sed -ie 's/.$//' {} \;

i=1
while [ $i -le $UREL ]; do
	diffname=../${RELEASE}u${i}_diff.zip
	unzip -q $diffname
	echo "Applying $diffname"
	cat ${RELEASE}u${i}.diff | sed -e 's/.$//' |	patch -s -p0 
	i=`expr $i + 1`
done

echo "Building"
make

echo "All build in $ZIPDIR"

Joined: Mar 2004
Posts: 670
Senior Member
Offline
Senior Member
Joined: Mar 2004
Posts: 670
In case anyone is interested, here's the build log using Fedora's RPM stricter optflags:
http://belegdol.fedorapeople.org/build.log
Feel free to ignore if this is not important.

Page 6 of 52 1 2 4 5 6 7 8 51 52

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
2 members (R. Belmont, TSCHAK), 21 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,100
Posts119,241
Members5,019
Most Online890
Jan 17th, 2020
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