Can someone compile for Mac OSX ?

Linux geeks and Mac OS hipsters unite! A board for discussion of Supermodel on non-Windows platforms.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Re: Can someone compile for Mac OSX ?

Postby kuran » Tue Sep 27, 2011 12:27 pm

Bart wrote:You can check for sure by using -show-fps.


Using the standard windowed resolution the FPS in the attract mode hovers between 59 and 60 FPS, pretty nice.

I wanted to try the fullscreen mode, but every time I get the following error:

Sep 27 15:24:57 Wim.local supermodel[660] <Warning>: CGDisplayBaseAddress is obsolete and returning NULL for display 0x7bd8d23f
Error: Unable to create an OpenGL display: Error setting OpenGL fullscreen: invalid fullscreen drawable

This happens by using the -fullscreen command or using fullscreen:1 in the config file. I thought it was because of my secondary display, but that didn't seem to be the case.
User avatar
kuran
 
Posts: 69
Joined: Mon Sep 26, 2011 11:24 pm

Re: Can someone compile for Mac OSX ?

Postby Bart » Tue Sep 27, 2011 12:32 pm

kuran wrote:
Bart wrote:You can check for sure by using -show-fps.


Using the standard windowed resolution the FPS in the attract mode hovers between 59 and 60 FPS, pretty nice.

I wanted to try the fullscreen mode, but every time I get the following error:

Sep 27 15:24:57 Wim.local supermodel[660] <Warning>: CGDisplayBaseAddress is obsolete and returning NULL for display 0x7bd8d23f
Error: Unable to create an OpenGL display: Error setting OpenGL fullscreen: invalid fullscreen drawable

This happens by using the -fullscreen command or using fullscreen:1 in the config file. I thought it was because of my secondary display, but that didn't seem to be the case.


Uh-oh... No idea what that means, it's definitely a Mac-specific error. That's weird. Do any other SDL-based emulators work in full screen mode for you? Supermodel isn't doing anything weird as far as I know. It uses SDL to do all display management.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Can someone compile for Mac OSX ?

Postby Bart » Tue Sep 27, 2011 12:33 pm

Try specifying a resolution explicitly. If you use -fullscreen by itself, it'll try to set 496x384, which doesn't exist. On Windows, the next best thing (usually 640x480) will automagically be provided by SDL but maybe it freaks out on Mac OS.

Try: -fullscreen -res=640,480
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Can someone compile for Mac OSX ?

Postby kuran » Tue Sep 27, 2011 12:39 pm

Bart wrote:Try specifying a resolution explicitly. If you use -fullscreen by itself, it'll try to set 496x384, which doesn't exist. On Windows, the next best thing (usually 640x480) will automagically be provided by SDL but maybe it freaks out on Mac OS.

Try: -fullscreen -res=640,480


Tried that, but it gives me the same error, I have also tried setting the resolution in the ini (as cited in the ReadMe), but that also gives this error:

Sep 27 15:35:02 Wim.local supermodel[710] <Warning>: CGDisplayBaseAddress is obsolete and returning NULL for display 0x28d9f441
Error: Unable to create an OpenGL display: Error setting OpenGL fullscreen: invalid fullscreen drawable

SDLMame has no problems going fullscreen. I tried clearing the Supermodel.ini but had the same results, can someone else on Mac confirm?
User avatar
kuran
 
Posts: 69
Joined: Mon Sep 26, 2011 11:24 pm

Re: Can someone compile for Mac OSX ?

Postby Bart » Tue Sep 27, 2011 12:43 pm

Bummer. If I had a Mac I could debug this but I don't. Hopefully RB will be willing to take a look at it. The procedure for setting full screen is quite simple (located in Src/OSD/SDL/Main.cpp).
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Can someone compile for Mac OSX ?

Postby kuran » Tue Sep 27, 2011 12:55 pm

Wish I had the knowledge/experience/talent to help you with it, but alas..
User avatar
kuran
 
Posts: 69
Joined: Mon Sep 26, 2011 11:24 pm

Re: Can someone compile for Mac OSX ?

Postby KRiz » Tue Sep 27, 2011 11:14 pm

I'm also a mac user and I can confirm getting the same error when trying to use the fullscreen option. Running in a window works fine. Just doesn't like fullscreen for some reason. Unfortunately, I'm not a programmer either. I was able to at least compile my own executable with the source code provided. As far as system specs, I have a Mac Pro Mid 2010 model. ATI Radeon HD 5870. I'm running Lion 10.7.1. Here's the error I get:

Supermodel[1158] <Warning>: CGDisplayBaseAddress is obsolete and returning NULL for display 0x2b284254
Error: Unable to create an OpenGL display: Error setting OpenGL fullscreen: invalid fullscreen drawable


From running it in window mode and getting to experience the new version, I have to say you guys did an amazing job making this emulator. The Star Wars Trilogy arcade runs great and I can't believe I'm actually getting to play this arcade through an emulator already.
KRiz
 
Posts: 2
Joined: Tue Sep 27, 2011 10:59 pm

Re: Can someone compile for Mac OSX ?

Postby Bart » Wed Sep 28, 2011 12:10 am

This appears to be some sort of issue with SDL 1.2 using deprecated Quartz functions to clear the display. I found a few links discussing it, but I don't know if a final solution has been discovered.

SDL 1.2.14 on Mac OS X 10.7
Mac OS X Lion testing...

Some comments I found regarding Quake II on Mac OS X seem to indicate that some users are able to get around the error but I don't know what's going on in that code. If I have time, I can poke around and see how SDLMAME differs from Supermodel in the way it sets the video mode. I don't expect that I can do much because I do not have a Mac to play with.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Can someone compile for Mac OSX ?

Postby KRiz » Wed Sep 28, 2011 6:39 am

I can actually run SDLMame in full screen without a problem. Whatever that's doing differently seems to work.
KRiz
 
Posts: 2
Joined: Tue Sep 27, 2011 10:59 pm

Re: Can someone compile for Mac OSX ?

Postby kuran » Wed Sep 28, 2011 7:09 am

KRiz wrote:I can actually run SDLMame in full screen without a problem. Whatever that's doing differently seems to work.


What version of OSX are you running? And did you recently download SDL, or did you have an earlier version installed?
User avatar
kuran
 
Posts: 69
Joined: Mon Sep 26, 2011 11:24 pm

PreviousNext

Return to Alternative Fashion

Who is online

Users browsing this forum: No registered users and 1 guest

cron