Previous Thread
Next Thread
Print Thread
Page 2 of 3 1 2 3
Re: Building mame 0.136u2 on OSX [Re: Vas Crabb] #58698 01/29/10 11:07 AM
Joined: Jan 2010
Posts: 2
B
Beckettsg4 Offline
Member
Offline
Member
B
Joined: Jan 2010
Posts: 2
Need help and am not computer savvy enough to understand any of this, or what I'm doing wrong.

Computer: OS X 10.5.8, Dual 2.5 GHz PowerPC G5

Running endings ("./endings" took me a while to figure out) seems to go fine.

Running the patches (0136u1.diff, then 0136u2.diff) seems to go fine.

But when I try to "make" it appears to run fine just as it did all the versions previous to 136, but when it finishes I get a bunch of errors and no mame file and it looks like nothing changed in the mame folder:

cc1plus: warnings being treated as errors
src/emu/cpu/am29000/am29000.c: In function ‘int cpu_execute_am29000(running_device*, int)’:
src/emu/cpu/am29000/am29000.c:320: warning: control may reach end of non-void function ‘UINT32 read_program_word(am29000_state*, UINT32)’ being inlined
{standard input}:5499:non-relocatable subtraction expression, "__Z19cpu_execute_am29000P14running_devicei" minus "L00000000031$pb"
{standard input}:5499:symbol: "__Z19cpu_execute_am29000P14running_devicei" can't be undefined in a subtraction expression
{standard input}:5498:non-relocatable subtraction expression, "__Z19cpu_execute_am29000P14running_devicei" minus "L00000000031$pb"
{standard input}:5498:symbol: "__Z19cpu_execute_am29000P14running_devicei" can't be undefined in a subtraction expression
{standard input}:5484:non-relocatable subtraction expression, "__Z16cpu_init_am29000P14running_devicePFiS0_iE" minus "L00000000031$pb"
{standard input}:5484:symbol: "__Z16cpu_init_am29000P14running_devicePFiS0_iE" can't be undefined in a subtraction expression
{standard input}:5483:non-relocatable subtraction expression, "__Z16cpu_init_am29000P14running_devicePFiS0_iE" minus "L00000000031$pb"
{standard input}:5483:symbol: "__Z16cpu_init_am29000P14running_devicePFiS0_iE" can't be undefined in a subtraction expression
make: *** [obj/sdl/mame/emu/cpu/am29000/am29000.o] Error 1

Re: Building mame 0.136u2 on OSX [Re: Beckettsg4] #58701 01/29/10 12:21 PM
Joined: Mar 2001
Posts: 16,522
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,522

Re: Building mame 0.136u2 on OSX [Re: R. Belmont] #58719 01/29/10 04:37 PM
Joined: Jan 2010
Posts: 2
B
Beckettsg4 Offline
Member
Offline
Member
B
Joined: Jan 2010
Posts: 2
That did the trick. Thanks so much for the pointer. Am i going to have to go in and alter that one line of code with every future MAME release? Thanks again.

Re: Building mame 0.136u2 on OSX [Re: Beckettsg4] #58720 01/29/10 04:39 PM
Joined: Mar 2001
Posts: 16,522
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,522
No, it's been fixed in SVN.

Re: Building mame 0.136u2 on OSX [Re: R. Belmont] #58744 01/29/10 10:58 PM
Joined: Jan 2010
Posts: 18
P
Prethorian Offline OP
Member
OP Offline
Member
P
Joined: Jan 2010
Posts: 18
I am thinking (because MAMEBase asked for some features) to start making GUI app which will have all-in-one.
With all-in-one I mean this:
*** PART I (source manage/maintenance) ***
-Automatic check about new release from mamedev.org (base release + updates)
-Download whatever user wants (base source + updates + maybe unofficial fixes which are created after update release)
-Auto ending/patching/building with options which user predefine

*** PART II (auditing and roms/chds maintenance) ***
-Auditing tools roms, samples, chds (like popular CLRmame and Romcenter)
-Support for chdrom and ldplayer (you can use both of them on CHDs/LDs
-Auto download/update cheats, icons, snaps, mameinfo, hiscore etc.

*** PART III (playing games) ***
-frontend for mame

This should be pretty huge project so obviously I can't do it alone. Also I suggest (or it is my own idea) to build project on some OS independed language or platform like Java or better Lazarus (Free pascal IDE) but without any OS API-es or OS based controls, so it will be easy to compile binaries for any platform. Better to do it from beginning for all platforms smile I am sure after 1st release in short time any1 will ask for other OSs. Also I am sure that linux/unix users will be happy to have something like CLRmame or Romcenter but much better smile

So if there are some interested developers to work with me on this project I will be happy. That should helps a lot about time for 1st alpha version smile Otherwise it will pass a lot of time until that.

Last edited by Prethorian; 01/29/10 11:12 PM.
Re: Building mame 0.136u2 on OSX [Re: Prethorian] #58760 01/30/10 03:52 AM
Joined: Sep 2000
Posts: 452
M
MAMEBase Online Content
Senior Member
Online Content
Senior Member
M
Joined: Sep 2000
Posts: 452
If I might be so bold as to suggest...

- Start small. The GUI for managing/building/automating the various processes sounds brilliant, and I'd start with that. Even if the user has to manually gather the pieces, a single utility to process everything would be very welcome indeed!

- Create a foundation that others can build on. Make the source code available, but be the project coordinator. I think you'll be surprised at how many people will be willing to help.

- Don't be afraid to ask for advice from folks who have done something similar... (If only there were some application that started as a tiny open source project that over the last decade or so has grown into a large collaborative effort, with dozens, if not hundreds of developers working on it... ;))


The following statement is true...
The preceding statement is false.
Re: Building mame 0.136u2 on OSX [Re: R. Belmont] #58766 01/30/10 10:35 AM
Joined: Jan 2010
Posts: 18
P
Prethorian Offline OP
Member
OP Offline
Member
P
Joined: Jan 2010
Posts: 18
Originally Posted By R. Belmont
Hi, please refer to special instructions for PowerPC.


http://server.netsector.info/ppcfix_0136u2.diff

download it and put in mame folder and:
patch -p0 < ppcfix_0136u2.diff

when 0136u3 comes out, before patch u3 do reverse with:
patch -p0 -R < ppcfix_0136u2.diff

and then patch source with u3 diff

NOTE: no need to run endings again because this diff is made under OSX (no CR/LFs), but if you are doing building for 1st time then:

download base source
download both diffs u1 and u2
download ppcfix_0136u2.diff
unpack mame source
put all diffs in mame folder
run endings
patch source with diffs in this order: 0136u1, 0136u2, ppcfix



Originally Posted By MAMEBase
If I might be so bold as to suggest...

- Start small. The GUI for managing/building/automating the various processes sounds brilliant, and I'd start with that. Even if the user has to manually gather the pieces, a single utility to process everything would be very welcome indeed!

- Create a foundation that others can build on. Make the source code available, but be the project coordinator. I think you'll be surprised at how many people will be willing to help.

- Don't be afraid to ask for advice from folks who have done something similar... (If only there were some application that started as a tiny open source project that over the last decade or so has grown into a large collaborative effort, with dozens, if not hundreds of developers working on it... ;))


OK, will be on that way.
I will setup all devel things on my server (svn, trac etc) and will inform when 1st version is finished with part I.
Then I will publish source/binaries and all URLs.

Last edited by Prethorian; 01/30/10 10:55 AM.
Re: Building mame 0.136u2 on OSX [Re: Prethorian] #58836 02/02/10 02:05 PM
Joined: Nov 2009
Posts: 13
C
cecopido Offline
Member
Offline
Member
C
Joined: Nov 2009
Posts: 13
Originally Posted By Prethorian

unpack mame0136s.zip
unpack both diff archives into mame folder
unpack endings into mame folder
run endings
patch -p0 < 0136u1.diff
patch -p0 < 0136u2.diff
make


./endings
patch -p0 < 0136u1.diff
patch -p0 < 0136u2.diff
make

Perfect! Thanks.

Re: Building mame 0.136u2 on OSX [Re: cecopido] #58842 02/02/10 11:55 PM
Joined: Feb 2008
Posts: 20
neo_frank Offline
Member
Offline
Member
Joined: Feb 2008
Posts: 20
Reposting this in u2 thread, since I still havnt figured this one out.

I am running an intel mac, 10.6.2, standard build is fine.

Debug build (ie DEBUG=1, running with -debug on standard build does fine)
....Compile goes fine, but when I go to run, it crashes with the following on the command line:

"Error: attempt to free untracked memory in (null)(0)!
MAME exception: Error: attempt to free untracked memory
Attempting to fall into debugger
Trace/BPT trap"

I have seen searching the forums that in the past this was due to gcc versions, but I am up to date in osx running gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)


Any direction/help would be much appreciated.

Re: Building mame 0.136u2 on OSX [Re: neo_frank] #58843 02/03/10 12:44 AM
Joined: Mar 2001
Posts: 16,522
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,522
DEBUG=1 builds are not currently supported for SDL targets (I hear they're not real stable on Windows at the moment either). Why do you need it?

Page 2 of 3 1 2 3

Moderated by  R. Belmont 

Who's Online Now
1 registered members (Pernod), 50 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,782
Posts115,562
Members4,908
Most Online890
Jan 17th, 2020
Powered by UBB.threads™ PHP Forum Software 7.7.3