|
|
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:
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
Member
|
Member
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
Very Senior Member
|
Very Senior Member
Joined: Apr 2004
Posts: 1,563 Likes: 12 |
other osx users are also on this version?
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
Very Senior Member
|
Very Senior Member
Joined: Apr 2004
Posts: 1,563 Likes: 12 |
|
|
|
|
Joined: Sep 2000
Posts: 481 Likes: 2
Senior Member
|
Senior Member
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
Very Senior Member
|
Very Senior Member
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
Very Senior Member
|
Very Senior Member
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
Member
|
Member
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  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.
|
|
|
1 members (1 invisible),
57
guests, and
2
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,331
Posts122,197
Members5,077
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|
|