Previous Thread
Next Thread
Print Thread
Page 3 of 52 1 2 3 4 5 51 52
Joined: May 1999
Posts: 616
Likes: 1
Senior Member
Senior Member
Joined: May 1999
Posts: 616
Likes: 1
Yeah, sorry, I posted after compilation failed without reloading the thread.

And it still fails:
Code
Compiling src/emu/cpu/dsp56k/dsp56k.c...
In file included from src/emu/cpu/dsp56k/dsp56k.c:36:
src/emu/cpu/dsp56k/dsp56def.h:113:1: error: "L_SET" redefined
In file included from /usr/include/unistd.h:72,
                 from /usr/include/c++/4.2.1/i686-apple-darwin10/bits/os_defines.h:61,
                 from /usr/include/c++/4.2.1/i686-apple-darwin10/bits/c++config.h:41,
                 from /usr/include/c++/4.2.1/exception:42,
                 from src/emu/emucore.h:25,
                 from src/emu/emu.h:53,
                 from src/emu/cpu/dsp56k/dsp56k.c:32:
/usr/include/sys/unistd.h:132:1: error: this is the location of the previous definition
make: *** [obj/sdl/mame/emu/cpu/dsp56k/dsp56k.o] Error 1

Another edit: let me try make clean first...

Last edited by Carbon; 01/16/10 07:43 PM.
Joined: Jan 2010
Posts: 18
P
Member
Member
P Offline
Joined: Jan 2010
Posts: 18
This should work too (on all Linux/Unix/OSX systems) but need to install dos2unix tool (on OSX with ports).
Also you can see output....


spale@spale-mac:~/mamesrc$ find . -type f -not -name uismall.png -exec dos2unix {} \;
dos2unix: converting file ./docs/config.txt to UNIX format ...
dos2unix: converting file ./docs/license.txt to UNIX format ...
dos2unix: converting file ./docs/mame.txt to UNIX format ...
dos2unix: converting file ./docs/newvideo.txt to UNIX format ...

NOTE: put 0136u1.diff in source folder before run this shell code, or if you copy 0136u1.diff after this command then run dos2unix 0136u1.diff and after that run patch

Last edited by Prethorian; 01/16/10 08:10 PM.
Joined: Apr 2004
Posts: 1,563
Likes: 12
J
Very Senior Member
Very Senior Member
J Online: Content
Joined: Apr 2004
Posts: 1,563
Likes: 12
other osx users are also on this version?
Code
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)

Joined: May 1999
Posts: 616
Likes: 1
Senior Member
Senior Member
Joined: May 1999
Posts: 616
Likes: 1
I'm on the exact same build.

Joined: Apr 2004
Posts: 1,563
Likes: 12
J
Very Senior Member
Very Senior Member
J Online: Content
Joined: Apr 2004
Posts: 1,563
Likes: 12
brilliant...

Joined: Sep 2000
Posts: 481
Likes: 2
M
Senior Member
Senior Member
M Offline
Joined: Sep 2000
Posts: 481
Likes: 2
Okay, I've started over using the latest files as of 1:45PM Central Time.

I'm compiling now. If everything works as expected, I'll whip up a set of step-by-step directions for Mac OS X users and post in a new thread (if there are no objections).


The following statement is true...
The preceding statement is false.
Joined: Apr 2004
Posts: 1,563
Likes: 12
J
Very Senior Member
Very Senior Member
J Online: Content
Joined: Apr 2004
Posts: 1,563
Likes: 12
Time to see if building a non-debug build might help...

Edit: Ok, that seems to have helped. Investigating a bit more..

Last edited by judge; 01/16/10 07:55 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
Check for #ifdefs in snes.c that would be enabled for DEBUG, that's one likely source of problems.

Joined: Sep 2002
Posts: 25
S
Member
Member
S Offline
Joined: Sep 2002
Posts: 25
I would not use:

find . -type f -not -name uismall.png -exec sed -ie 's/.$//' {} \;

It simply strips the last character, meaning that it is not safe/repeatable. (ie. If you have placed it in a script in the same directory that you are running it from, it will remove the ';' from the end of that line, and you can't run it a second time!)

The Mac version using xargs posted earlier works well.

Joined: May 1999
Posts: 616
Likes: 1
Senior Member
Senior Member
Joined: May 1999
Posts: 616
Likes: 1
Error still occurs compiling dsp56k.c frown

Edit: no, it works now. I put the #undef before the first #include, instead of before #include "dsp56def.h"

Last edited by Carbon; 01/16/10 08:09 PM.
Page 3 of 52 1 2 3 4 5 51 52

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (1 invisible), 57 guests, and 2 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,197
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