View unanswered posts | View active topics It is currently Sat Jan 19, 2019 2:15 am



This topic is locked, you cannot edit posts or make further replies.  [ 152 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next
ZSNES for Intel Mac ready for consumption! 
Author Message
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
DAEGU wrote:
hmm.. they CAN be pretty cheap
any developers interested in a mac mini?


I'm interested in it for development, but I doubt anyone wants to spend $600 + shipping to send me one.

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Sat May 17, 2008 6:48 pm
Profile WWW
Rookie

Joined: Mon Jul 18, 2005 2:16 pm
Posts: 21
Location: BW, Germany
Post 
maybe we need a mac "donation" thread where all who want can donate for mac for u devs?


Sat May 17, 2008 7:12 pm
Profile
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5613
Location: PAL50, dood !
Post 
Shin_Gouki wrote:
u devs

lol /udev/

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Sat May 17, 2008 10:26 pm
Profile
Rookie

Joined: Mon Jul 18, 2005 2:16 pm
Posts: 21
Location: BW, Germany
Post 
well i have programmed myself (in my studys) some assembler on the OPL2
(http://en.wikipedia.org/wiki/OPL2)
So i always appreciate it when "people" like u become "devs". Its simply amazing that u can go with this stuff what many of us would consider pre torture :D
(ah yes and if i am not too lazy i try to improve my u -> you)


Sun May 18, 2008 11:31 am
Profile
Lurker

Joined: Sat Feb 25, 2006 7:47 pm
Posts: 102
Post 
Just wanted to utter my gratitude for the OS X port of ZSNES.
Works splendid.


Sat Jun 14, 2008 2:17 pm
Profile WWW
Hazed

Joined: Wed Oct 06, 2004 1:41 am
Posts: 52
Post 
Nach wrote:
DAEGU wrote:
hmm.. they CAN be pretty cheap
any developers interested in a mac mini?


I'm interested in it for development, but I doubt anyone wants to spend $600 + shipping to send me one.


It's actually pretty easy at this point to install OS X on standard x86 PC hardware now that Apple has transitioned to Intel. A real Mac is hardly required anymore for development.


Sat Jun 21, 2008 7:09 pm
Profile
Lurker
User avatar

Joined: Thu Jan 03, 2008 12:45 am
Posts: 194
Location: Austalia
Post 
Do you recon it would be possible (not that I want to attempt this) to port apple software to PC?
I mean if its an x86 based mac, all the opcodes and operands should be the same as PC?
It would just be a matter of changing how the program interacts with the kernal right?

Not that it really matters. Just curious.

_________________
Hardware means nothing if you don't have good software.
Compare the success of SNES over Genisis


Sun Jun 22, 2008 11:58 am
Profile
ZSNES Developer
ZSNES Developer

Joined: Tue Dec 28, 2004 6:47 am
Posts: 6747
Post 
Some people prefer a native port on their Mac, so whining about that is fruitless, even though the SDL port is arguably worse than the Windows port to begin with.

_________________
Continuing FF4 Research...


Mon Jun 23, 2008 1:52 am
Profile
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
tehnick wrote:
Nach wrote:
DAEGU wrote:
hmm.. they CAN be pretty cheap
any developers interested in a mac mini?


I'm interested in it for development, but I doubt anyone wants to spend $600 + shipping to send me one.


It's actually pretty easy at this point to install OS X on standard x86 PC hardware now that Apple has transitioned to Intel. A real Mac is hardly required anymore for development.


Yeah, but I've had no luck installing it yet on a standard PC. I did recently get some new hardware, but didn't try it on that yet.

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Fri Jun 27, 2008 12:39 am
Profile WWW
Hazed

Joined: Wed Oct 06, 2004 1:41 am
Posts: 52
Post 
I actually use OS X as my main OS on my standard x86 PC. When I upgraded it not long ago, I just took it into consideration when I chose the parts I wanted so that I would be sure to have compatible hardware. I have no problems.


Thu Jul 03, 2008 4:14 am
Profile
Rookie

Joined: Mon Feb 19, 2007 11:23 am
Posts: 31
Post 
Funny, I was trying to compile ZSNES again (with a non-broken zlib this time, since I never got around to make an --enable-release build for it), but I can't a working build under Leopard. Everything builds just fine, then when I run it, I get a segfault after ManyMouse detects the mice. Setting CFLAGS to "-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" doesn't help. And the binaries I built under Tiger still work just fine under Leopard.

Could it be my version of nasm?
Code:
NASM version 0.98.40 (Apple Computer, Inc. build 11) compiled on Sep 23 2007


Crash reporter says:
Code:
Thread 0 Crashed:
0   dyld                             0x8fe18b42 misaligned_stack_error + 0


Fri Aug 01, 2008 6:53 pm
Profile
ZSNES Developer
ZSNES Developer
User avatar

Joined: Tue Jul 27, 2004 10:54 pm
Posts: 3901
Location: Solar powered park bench
Post 
Not sure. Perhaps we can discuss it over IRC and try to pinpoint it.

_________________
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding


Sun Aug 03, 2008 2:27 am
Profile WWW
New Member

Joined: Sat Dec 06, 2008 8:10 pm
Posts: 5
Post Works great on my hackintosh :)
I've Leopard 10.5.4 on my P4 system. Everything works great (this Zsnes 1.51 build) thanks :)

my audigy 2ZS with nv6800 + zsnes openGL :) sweet! I wonder why pagefault wants macmini lol, when you can install OSX on normal pcs...

my thread @ IMF http://forum.insanelymac.com/index.php?showtopic=104797

_________________
OxLa


Thu Jan 08, 2009 7:57 pm
Profile
Rookie

Joined: Sat Jul 31, 2004 2:19 am
Posts: 19
Post 
I'm trying to compile zSNES from SVN and I'm hitting a road block. I just finished compiling and installing Qt v4.4.3 to /usr/local/Trolltech/Qt-4.4.3. The configure script is detecting the Qt libraries but not a functional Qt setup? Any ideas?

Per Qt's installation instructions, /usr/local/Trolltech/Qt-4.4.3/bin has been added to $PATH.

OS: Mac OS X v10.5.6

Code:
sh ./autogen.sh --with-qt-path=/usr/local/Trolltech/Qt-4.4.3
Generating build information using aclocal and autoconf...
checking build system type... i386-apple-darwin9.6.0
checking host system type... i386-apple-darwin9.6.0
checking target system type... i386-apple-darwin9.6.0
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for sdl-config... /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... yes
checking for Qt4 libraries >= 4.1.1... found
checking for functionnal Qt setup... nope
configure: error: Couldn't compile moc output

_________________
Image


Sun Feb 01, 2009 11:14 pm
Profile
ZSNES Developer
ZSNES Developer

Joined: Tue Dec 28, 2004 6:47 am
Posts: 6747
Post 
Whatever was in SVN is not something you want to compile... seriously.

_________________
Continuing FF4 Research...


Sun Feb 01, 2009 11:41 pm
Profile
New Member

Joined: Wed Feb 04, 2009 7:41 pm
Posts: 4
Post 
Thank you for this. I've been an exclusive PC user, until recently, now I can use my hands-down favorite emulator on my mac.

_________________
Production Assistant Jobs | "Video Games are bad for you? That's what they said about Rock 'N' Roll." Shigeru Miyamoto, Mario creator


Wed Feb 04, 2009 7:56 pm
Profile WWW
Post 
OS: Mac OS X v10.5.6

Code:
sh ./autogen.sh --with-qt-path=/usr/local/Trolltech/Qt-4.4.3

....

checking for functionnal Qt setup... nope
configure: error: Couldn't compile moc output
[/quote]

Looks like that the automake qt stuff is not working and doesnt pass moc and qt compile test.
I just ripped this stuff out of the confgure script.
Added hardcoded CFLAGS and LDFLAGS stuff to the Makefile.

To compile u have to something like thiss:
Code:
-I/Developer/SDKs/Qt/include


To link i added this:
Code:
-L/Developer/SDKs/Qt/   -F/Developer/SDKs/Qt/lib -L/Developer/SDKs/Qt/lib -framework QtGui -L/Developer/SDKs/Qt/lib -F/Developer/SDKs/Qt/lib


Iam able to compile that thing. But it segfaultl right after the start:


david@box:[~/Devel/arch...zsnes/trunk/src]$ ./zsnes
Code:
ZSNES v1.52, (c) 1997-2007, ZSNES Team

Be sure to check http://www.zsnes.com/ for the latest version.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

This is a work in progress build. It contains code which
May or may not be complete

If this is supposed to be an official release, you forgot to
run configure with --enable-release, go rebuild.

Use ZSNES -? for command line definitions.

ManyMouse: 2 mice detected.
Using ManyMouse for:
Mouse 0: Apple Internal Keyboard / Trackpad
Mouse 1: Apple Internal Keyboard / Trackpad
Segmentation fault



I fired up gdb.

Code:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x00000000
0x8fe18c02 in __dyld_misaligned_stack_error ()
(gdb) bt
#0  0x8fe18c02 in __dyld_misaligned_stack_error ()
#1  0xbfffcd40 in ?? ()
#2  0x000b7923 in WaitForKey ()
#3  0x95f2de1a in _nsnote_callback ()
#4  0x9524e8da in __CFXNotificationPost ()
#5  0x9524ebb3 in _CFXNotificationPostNotification ()
#6  0x95f2b080 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#7  0x95f348c8 in -[NSNotificationCenter postNotificationName:object:] ()
#8  0x9647f49a in -[NSApplication _postDidFinishNotification] ()
#9  0x9647f3a9 in -[NSApplication _sendFinishLaunchingNotification] ()
#10 0x963f8ec3 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#11 0x963f86bc in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#12 0x95f5343f in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#13 0x95f5314f in _NSAppleEventManagerGenericHandler ()
#14 0x954b8648 in aeDispatchAppleEvent ()
#15 0x954b857e in dispatchEventAndSendReply ()
#16 0x954b8425 in aeProcessAppleEvent ()
#17 0x934729a5 in AEProcessAppleEvent ()
#18 0x963f5f91 in _DPSNextEvent ()
#19 0x963f5630 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#20 0x963ee66b in -[NSApplication run] ()
#21 0x00298570 in main ()
(gdb)


Iam not an Mac expert, cant really say whats wrong. Looks like code execution on the stack, somehow. Maybe the apple nasm is crap.


Wed Apr 08, 2009 9:01 pm
Rookie

Joined: Mon Feb 19, 2007 11:23 am
Posts: 31
Post 
In OS X, the stack needs to be aligned to 16 bytes.

This isn't an SVN issue, 1.51 started doing that when compiled under Leopard. Binaries compiled under Tiger still run fine on Leopard -- I'm guessing Tiger was lenient and didn't care much and Leopard retains this behavior for Tiger compiled binaries, while Leopard explicitly breaks.

So yeah, the stack needs to be padded to a 16 bytes boundary before calling into C library functions / framework stuff. Considering there's probably a lot of those in zsnes's code, this is going to be a bitch to fix.


Mon Apr 20, 2009 1:34 am
Profile
ZSNES Shake Shake Prinny
User avatar

Joined: Wed Jul 28, 2004 4:15 pm
Posts: 5613
Location: PAL50, dood !
Post 
Yes it is.

_________________
皆黙って俺について来い!!
Code:
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)

Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54


Mon Apr 20, 2009 7:14 pm
Profile
Rookie

Joined: Mon Feb 19, 2007 11:23 am
Posts: 31
Post 
Apple's gcc has a -mstackrealign option that does some tricks to realign the stack, but that only works with inline gcc asm, it seems. Would be nice if nasm could do something like that.

Wait.
hector wrote:
mdynamic-no-pic doesn't appear to do anything useful so get rid of it for now. mstackrealign is needed because zsnes uses 4 byte aligned stacks, but Mac OS X requires 16 byte aligned stacks.


Now I'm confused, wasn't this accounted for already?


Mon Apr 20, 2009 7:31 pm
Profile
Post 
Hi every one,

I m actually on a Mac Book Pro, and I want to compile the ZSNES From SVN, in order to have the Netplay.

I have the same problem as selmo2000 -->

Quote:
sh ./autogen.sh --with-qt-path=/usr/local/Trolltech/Qt-4.5.1

....

checking for functionnal Qt setup... nope
configure: error: Couldn't compile moc output


I don t understand where is the problem, and which makefile I have to change.
Optixx, can you help me ?

Thanks all


Tue Jun 09, 2009 3:58 am
Post comment
i think the Linux srm files are not cross emulator compatible.... unless it was that Linux srm files don't work on windows equivalent emulators.

Thanks


Mon Jul 13, 2009 9:39 pm
Zealot

Joined: Tue Nov 27, 2007 7:03 am
Posts: 1325
Post 
Wrong!

.srm files are compatible no matter the emulator. You're thinking of the save states...


Mon Jul 13, 2009 10:19 pm
Profile
New Member

Joined: Fri Apr 08, 2011 6:18 pm
Posts: 4
Post Re: ZSNES for Intel Mac ready for consumption!
TL;DR ZSNES for Intel Mac needs a lot of work still, since many ROMs completely fail on Snow Leopard still on my 2010 macbook pro.


Sat Apr 16, 2011 2:41 am
Profile
"Your thread will be crushed."
User avatar

Joined: Wed Jul 28, 2004 1:49 am
Posts: 1233
Location: Not in Winnipeg
Post Re: ZSNES for Intel Mac ready for consumption!
Why exactly did you feel the need to make that post when this thread has had no replies for nearly 2 years.

Consider yourself warned, make more posts like this, and I will ban you.

_________________
<pagefault> i'd break up with my wife if she said FF8 was awesome


Sat Apr 16, 2011 7:49 am
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 152 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next

Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.