Author Topic: OSX: Snow Leopard(10.6) issues  (Read 6672 times)

0 Members and 1 Guest are viewing this topic.

Offline rsaxvc

  • 27
    • rsaxvc
OSX: Snow Leopard(10.6) issues
So, GLInt on 10.6 is an actual int now, instead of a long(which it was in <10.4?)

So the line in gropengl.cpp
 CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, (long*)&status);
should become
 CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, (int*)&status);

For 10.6, and maybe 10.5?
« Last Edit: August 09, 2009, 10:09:04 am by rsaxvc »

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: OSX: Snow Leopard(10.6) issue
You've got one of the Developer builds, I take it?  This could probably be accomplished with some #IFDEF macros...

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: OSX: Snow Leopard(10.6) issue
Easily, just add another case to the existing structure. And by easily, I mean easy for someone more familiar with OSx type stuff. Specifically, the macros check for windows versus Apple, we'd need some way to  differentiate betwixt versions.

 
Re: OSX: Snow Leopard(10.6) issue
Easily, just add another case to the existing structure. And by easily, I mean easy for someone more familiar with OSx type stuff. Specifically, the macros check for windows versus Apple, we'd need some way to  differentiate betwixt versions.


Why not just use GLInt?
STRONGTEA. Why can't the x86 be sane?

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: OSX: Snow Leopard(10.6) issue
@portej Really good point.

I'm not certain why we're casting it at all. Status is a GLInt, and CGLSetParameter needs a GLInt*... Yep, works fine without casting the pointer at all.



http://developer.apple.com/documentation/graphicsimaging/reference/CGL_OpenGL/Reference/reference.html#//apple_ref/c/func/CGLSetParameter

 

Offline Echelon9

  • 210
Re: OSX: Snow Leopard(10.6) issue
I've made a preliminary change to gropengl.cpp in r5510.

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: OSX: Snow Leopard(10.6) issues
WARNING: "Cannot chdir to ./fs2_open_d: Not a directory" at /Users/richardallen/code/fs2_open-wanderer/projects/Xcode/../../code/windows_stub/stubs.cpp:402

It seems to try and chdir to whatever the launch path is. (argv[0]). This only happens in DEBUG. Is this something to worry about?

 
Re: OSX: Snow Leopard(10.6) issues
yeah, it won't like being run from the build directory.
You need to copy the build to the game directory.
STRONGTEA. Why can't the x86 be sane?

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: OSX: Snow Leopard(10.6) issues
it was in the game directory. Also, I've named the executable fs2_open_d.

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: OSX: Snow Leopard(10.6) issues
Did you rename the app or the actual executable?

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: OSX: Snow Leopard(10.6) issues
executable. Although running the app gives the same error, but with the executables original name.

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: OSX: Snow Leopard(10.6) issues
Unless you really know what you're doing, changing the name of the executable isn't generally considered a good idea.  You should be able to change the name of the app just fine though ... I do it all the time.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: OSX: Snow Leopard(10.6) issues
Yup rsa, you don't want to rename stuff inside of the Universal Binary.  Just rename the .app itself.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

  

Offline rsaxvc

  • 27
    • rsaxvc
Re: OSX: Snow Leopard(10.6) issues
But... it happens when launching the app too.

WARNING: "Cannot chdir to ./FS2_Open (debug): Not a directory" at /Users/richardallen/code/fs2_open-wanderer/projects/Xcode/../../code/windows_stub/stubs.cpp:402