Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: (Snow) leopard in 64-bit  (Read 1005 times)

noobs

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
    • View Profile
(Snow) leopard in 64-bit
« on: December 15, 2009, 05:27:11 PM »

Well i tried to compile OIS in snow leopard whit x86_64 architecture only to find thats it's impossible due to the lac of 64bit support in carbon.
Is there any plan on moving away from carbon to cocoa?

The errors where:
Code: [Select]
/ois/Mac/XCode-2.2/../../src/mac/MacInputManager.cpp:94:0 ois/Mac/XCode-2.2/../../src/mac/MacInputManager.cpp:94: error: 'ActiveNonFloatingWindow' was not declared in this scope

ois/Mac/XCode-2.2/../../src/mac/MacMouse.cpp:75:0 ois/Mac/XCode-2.2/../../src/mac/MacMouse.cpp:75: error: 'GetWindowBounds' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:295:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:295: error: 'CreateNewWindow' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:298:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:298: error: 'SetThemeWindowBackground' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:302:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:302: error: 'SetWindowTitleWithCFString' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:305:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:305: error: 'RepositionWindow' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:308:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:308: error: 'GetWindowEventTarget' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:308:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:308: error: 'InstallStandardEventHandler' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:316:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:316: error: 'ShowWindow' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:317:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:317: error: 'SelectWindow' was not declared in this scope

/ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:320:0 /ois/Mac/XCode-2.2/../../demos/OISConsole.cpp:320: error: cast from 'OpaqueWindowPtr*' to 'unsigned int' loses precision
These appeared in several places, just took out all the unique ones.

There is a fix i didn't gett to work using HIToolbox:
HIWindowCreate (replaces CreateNewWindow, CreateCustomWindow)
HIWindowGetBounds (replaces GetWindowBounds)
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: (Snow) leopard in 64-bit
« Reply #1 on: December 19, 2009, 09:03:32 AM »

Unfortunately, I don't have access to a 64 Bit OSX machine. Any patches are welcome that extend support.
Logged