Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
#91986 - 12/24/13 10:40 AM 0.152 does not compile on Mac OS X  
Joined: May 1999
Posts: 529
Carbon Offline
Senior Member
Carbon  Offline
Senior Member

Joined: May 1999
Posts: 529
Luxembourg
Code:
Compiling src/mame/drivers/pong.c...
In file included from src/emu/machine/netlist.h:54,
                 from src/mame/drivers/pong.c:17:
src/emu/netlist/nl_base.h: In member function ‘void netlist_object_t::save(C&, const pstring&)’:
src/emu/netlist/nl_base.h:290: error: request for member ‘save_manager’ in ‘dynamic_cast<pstate_manager_t&>(*((netlist_object_t*)this)->netlist_object_t::m_netlist)’, which is of non-class type ‘pstate_manager_t&’
make: *** [obj/sdl/mame/drivers/pong.o] Error 1


(iMac Core 2 Duo running 10.7.5)

#91988 - 12/24/13 01:40 PM Re: 0.152 does not compile on Mac OS X [Re: Carbon]  
Joined: Mar 2001
Posts: 15,807
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,807
USA
Yes, the netlist code is doing things the C++ standard doesn't like, but which common Linux/Windows compilers let pass. I've informed Couriersud.

#91991 - 12/24/13 04:43 PM Re: 0.152 does not compile on Mac OS X [Re: Carbon]  
Joined: Mar 2001
Posts: 15,807
R. Belmont Online content
R. Belmont  Online Content

Very Senior Member

Joined: Mar 2001
Posts: 15,807
USA
Latest SVN fixes this issue for OSX (as well as people building on Linux with Clang).

#92000 - 12/24/13 09:08 PM Re: 0.152 does not compile on Mac OS X [Re: Carbon]  
Joined: Sep 2000
Posts: 436
MAMEBase Offline
Senior Member
MAMEBase  Offline
Senior Member

Joined: Sep 2000
Posts: 436
Madison, WI, USA
Okay, stupid question - Where might one obtain said latest SVN? (Sorry if the answer is something painfully obvious... I'm having a *really* bad day... :-( )


The following statement is true...
The preceding statement is false.
#92006 - 12/25/13 01:24 AM Re: 0.152 does not compile on Mac OS X [Re: Carbon]  
Joined: Feb 2007
Posts: 540
Sune Offline
Senior Member
Sune  Offline
Senior Member

Joined: Feb 2007
Posts: 540
Brazil
You'll need to learn how to compile MAME on OS X. After all, what are you going to do with the "latest SVN" that fixes a compiling issue, if not compile it.

The pinned how-to-compile topic here is outdated (endings script?) and convoluted, making compiling look like a difficult task, which is a shame since compiling MAME (or MESS) on a Mac is so easy it's almost ridiculous.

First register a free developer account with Apple, then download and install Xcode and the Xcode command-line tools.

Drop the SDL 1.2.15 Framework in /Library/Frameworks.

Open Terminal.app and navigate to a folder of your choice - lets say ~/downloads:

cd ~/downloads

then enter

Code:
svn co svn://dspnet.fr/mame/trunk


Once the download is done, navigate to the source directory

cd mame/trunk

and enter

make

to compile MAME and/or

make TARGET=mess

to compile MESS.

If your Mac has a dual-core CPU add -j3, a quad-core CPU add -j5 (and so on) to the make command for a faster compile, like this for example:

make -j5

or

make -j5 TARGET=mess

To pull the latest source updates at any time run Terminal.app and enter

cd ~/downloads/mame/trunk

then enter

svn update

If compiling stops with an error message enter

make clean

then try again. If it still doesn't work, then post here.

#92013 - 12/25/13 04:41 AM Re: 0.152 does not compile on Mac OS X [Re: Sune]  
Joined: Sep 2000
Posts: 436
MAMEBase Offline
Senior Member
MAMEBase  Offline
Senior Member

Joined: Sep 2000
Posts: 436
Madison, WI, USA
To clarify -

I normally would download the latest source(s) from the developer site, and compile from there when a new 'official' build is announced (and until recently, the 'u' source updates as well).

Things have apparently changed since the aforementioned pinned build instructions (Which I wrote, incidentally) were posted.

It would seem that said instructions are overdue for an update.

If there's an interest, I'll try and put something together in the next week or so, otherwise, if someone else would like to put together an updated set of build/update instructions for OSX that can be pinned to this board, please feel free to do so.

In the meantime, thank you for clarifying the current build/update process.

I must have missed a memo... wink


The following statement is true...
The preceding statement is false.
#92014 - 12/25/13 04:50 AM Re: 0.152 does not compile on Mac OS X [Re: Carbon]  
Joined: Feb 2007
Posts: 540
Sune Offline
Senior Member
Sune  Offline
Senior Member

Joined: Feb 2007
Posts: 540
Brazil
lol....I'm talking to the person who wrote the how-to-compile guide, I didn't even notice. Sorry about that.

You're welcome but I don't understand why you'd want to waste your time re-writing what I've just written or why you'd ask for someone else "to put together an updated set of build/update instructions".

Never mind, if you or anyone else think I did a terrible job by all means feel free to completely ignore it and write up an identical post I guess! frown

#92023 - 12/25/13 11:13 AM Re: 0.152 does not compile on Mac OS X [Re: Carbon]  
Joined: May 1999
Posts: 529
Carbon Offline
Senior Member
Carbon  Offline
Senior Member

Joined: May 1999
Posts: 529
Luxembourg
Your description is just fine, it should probably just be stickied.

One small correction though: after checking out the source, you only need to cd trunk (not cd mame/trunk).

BTW, the latest svn source compiles fine on Mac OS X.

Last edited by Carbon; 12/25/13 05:10 PM.
#92026 - 12/25/13 04:25 PM Re: 0.152 does not compile on Mac OS X [Re: Carbon]  
Joined: Sep 2000
Posts: 436
MAMEBase Offline
Senior Member
MAMEBase  Offline
Senior Member

Joined: Sep 2000
Posts: 436
Madison, WI, USA
I didn't mean to imply that your instructions were in any way faulty - Quite the contrary - I was up and running in minutes (about the only thing that *did* go right that day, but that's another story... wink )

I only meant that the document I prepared way back when (OS X 10.4? Really? has it been that long?) is, as you pointed out, woefully out of date, and needs to be updated (It's meant to be a guide for first time compilers, and now that the whole process has been somewhat streamlined, a new document is in order).

And yes, the latest svn builds fine on OS X 10.9.1 smile


The following statement is true...
The preceding statement is false.
#92030 - 12/25/13 08:44 PM Re: 0.152 does not compile on Mac OS X [Re: Carbon]  
Joined: Jan 2007
Posts: 175
MacBox360 Offline
Senior Member
MacBox360  Offline
Senior Member

Joined: Jan 2007
Posts: 175
Turin, North Italy
After applied the SVN #26743 patch I am been able to compile 0.152 successfully on OSX 10.5 PPC with only a single warning, reported as follow:

Code:
Compiling src/emu/cpu/m6809/konami.c...
cc1plus: warnings being treated as errors
src/emu/cpu/m6809/konami.c:69: warning: ignoring #pragma GCC diagnostic
make: *** [obj/sdl/emu/cpu/m6809/konami.o] Error 1
make: *** Waiting for unfinished jobs....

Using the usual NOWERROR=1 switch the build gone happily to the end. The PPC binary can be found at the usual place
Many many thanks again to MAME team for still supporting the PPC World :-)

Page 1 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
4 registered members (ted, Monotremata, R. Belmont, 1 invisible), 24 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,480
Posts110,308
Members4,770
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.034s Queries: 15 (0.008s) Memory: 5.0168 MB (Peak: 5.2410 MB) Zlib enabled. Server Time: 2018-01-18 19:54:54 UTC