Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: [1] 2

Author Topic: Looking for more OIS Platform Ports  (Read 11569 times)

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« on: February 19, 2006, 02:03:36 PM »

OIS Currently Supports 100%:
Linux (With X Windows installed)
Win32 (With DirectX > 8 )

Currently In Work:
Mac OSX

OS's that I would like to be compatible on - should require minimal changes:
Linux 64 Bit (requires linking against /X11R6/lib64/libX11) - compiles, is untested.
*BSD - Keyboard & Mouse should work with X Events, Joystick is not in /dev/input/joy# or /dev/input/event# from what I've seen. Probably would be best to create a seperate BSDInputManager than trying to hack it into the LinuxInputManager, can share the Keyboard and Mouse classes just need to make the JoyStick classes.

Other Platforms:
PDA
Portables (PSP, etc)
Console Systems

If any one has the time, invest, and know how in porting OIS to one of these desired platforms, please post in this thread.
Logged

tuan kuranes

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
Looking for more OIS Platform Ports
« Reply #1 on: February 19, 2006, 11:56:12 PM »

I can submit vc8 win64 if you wish.
(not much changes I guess, but still another platform to publicize on.)
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« Reply #2 on: February 20, 2006, 08:25:47 AM »

Sure, I would take a patch for VC8 Project files. And, advertising 64 Bit compatibility on windows would be sweet to :)

Are/were there any changes in the core OIS files to support 64 Bit?
Logged

tuan kuranes

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
Looking for more OIS Platform Ports
« Reply #3 on: February 21, 2006, 12:15:45 AM »

No  changes, just VCproj files to modify. It's really about advertising 64 Bit compatibility.
I'll send you vcproj files soon.
Logged

cdsnyder

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 26
    • View Profile
Looking for more OIS Platform Ports
« Reply #4 on: February 21, 2006, 08:42:26 AM »

If nobody else chimes in, I may be able to test linux 64bit for you in the future. We have a ton of architectures and OSs on north campus to choose from. I believe a few of our graphics labs are stocked with Sun Opteron 64bit systems running Red Hat.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« Reply #5 on: February 21, 2006, 09:12:43 AM »

@tuan kuranes
Thanks I got them. I was plannign on installing VC8 today, but I am having a problem with installing it, so I will just add them later and commit them. One quick question, do you have targets for both the DLL and static lib build of OIS included in it? edit- Nevermind, I worked around the install issue and am downloading now and installing it. This way I can also support VC8 if there are any problems. Thanks for your work yet again :D

@cdsnyder
That would be great :D

I already compiled on Linux64 (on sourceforge compile farm), however I could not run it - I could not create an X Window for testing. So, if you have direct access to the computer you would probably have better luck than me. Only one change was needed to compile it, change (or add it inaddtion to) the X11R6/lib to X11R6/lib64 line to the Demo's makefiles so that it links against the 64 bit version of X.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« Reply #6 on: February 21, 2006, 11:19:07 AM »

Hmm, I've been downloading the platform SDK installing the platform SDK for over an hour now. And the sad thing is the download was only 1.4 or so MBs. I hate installers that downlaod stuff off the net, what if I want to install on another computer, or by chance have to reinstall clean on this computer oO ... It would be much easier to download all the files once and burn to a CD. What a pain... unless I missed the full donwload somewhere.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« Reply #7 on: February 21, 2006, 11:49:01 AM »

I see what you mean about 64 bit build targets  in VC8. However, i am getting a link error in the console demo when trying to build with VC8:

unresolved external symbol __imp__MessageBoxA@16 referenced in function __catch$_main$0

And several more about toAscii also. I have added the platform lib's/includes to VC settings, and OIS built successfuly, it is just not linking to a Win lib of some sort.. any ideas what I'm doing wrong?
Logged

tuan kuranes

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
Looking for more OIS Platform Ports
« Reply #8 on: February 21, 2006, 11:59:09 AM »

yes, using VC express you need to add some basic input to each build.
"user32.lib gdi32.lib"
Sorry, forgot that.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« Reply #9 on: February 21, 2006, 04:59:05 PM »

Is it only express VC that you need to add these? as in the pro (or whatever it's called) version it gets automatically linked in? In anycase, no problem. I'll add them to the OIS build project files for VC8. :D
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« Reply #10 on: February 21, 2006, 05:32:06 PM »

Ok, I feel like a real noob. Now I am getting this error:
1>.\CommandLine.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.

I can;t build the console demo. Is this because of the lame resource editor being disbaled in express? A search does not turn up a work around.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« Reply #11 on: February 21, 2006, 05:36:03 PM »

nm, I just replaced

#include "afxres.h"

with:

#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif
#include "winresrc.h"

In the resource script. I'll verify it still works in VC7 before I commit though.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Looking for more OIS Platform Ports
« Reply #12 on: February 21, 2006, 06:04:47 PM »

Ok, that fix works in both VC7 and VC8, I realise now that I could have added the MFC directory of platform SDK to the IDE though. Thanks again tuan. Project files are committed.

One thing I'm unsure of though, unrelated, is that each version of Express is a seperate download? at 444MBs a pop - ie C#, C++, (The only ones that I would want), etc. Why not one download that has them all contained? I imagine that a copy of the IDE is included which each distrobution, unless they each have there own IDE. Hmm, oh well, VC7 was several disks too.

/pjcast starts downloading VC# Express...
Logged

tgraupmann

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 43
    • View Profile
    • The Code Blog of Tag
Re: Looking for more OIS Platform Ports
« Reply #13 on: January 09, 2008, 08:05:52 PM »

Has OIS been ported to XBOX?
Logged

AMDmi3

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Re: Looking for more OIS Platform Ports
« Reply #14 on: February 10, 2008, 01:18:10 PM »

I would like to port OIS to FreeBSD. Currently I'm quite stuck, as there's no such thing as linux/input.h on FreeBSD. The best way to make OIS work is to use SDL, as it supports FreeBSD well enough (for example, it has HID parser so devices like joysticks do work), but I was unable to compile it. Here's the error after changing libOIS_la_SOURCES from linux/* to SDL/* in src/Makefile.am and tweaking INCLUDES/LDFLAGS (this is CVS version of OIS):

Code: [Select]
g++ -DHAVE_CONFIG_H -I. -I../includes -I../includes -g -O2 -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include -g -O2 -MT SDLInputManager.lo -MD -MP -MF .deps/SDLInputManager.Tpo -c ./SDL/SDLInputManager.cpp  -fPIC -DPIC -o .libs/SDLInputManager.o
In file included from ./SDL/SDLInputManager.cpp:24:
../includes/SDL/SDLKeyboard.h: In constructor 'OIS::SDLKeyboard::SDLKeyboard()':
../includes/SDL/SDLKeyboard.h:68: error: no matching function for call to 'OIS::Keyboard::Keyboard()'
../includes/OISKeyboard.h:298: note: candidates are: OIS::Keyboard::Keyboard(const std::string&, bool, int, OIS::InputManager*)
../includes/OISKeyboard.h:212: note:                 OIS::Keyboard::Keyboard(const OIS::Keyboard&)
In file included from ./SDL/SDLInputManager.cpp:25:
../includes/SDL/SDLMouse.h: In constructor 'OIS::SDLMouse::SDLMouse()':
../includes/SDL/SDLMouse.h:53: error: no matching function for call to 'OIS::Mouse::Mouse()'
../includes/OISMouse.h:128: note: candidates are: OIS::Mouse::Mouse(const std::string&, bool, int, OIS::InputManager*)
../includes/OISMouse.h:108: note:                 OIS::Mouse::Mouse(const OIS::Mouse&)
./SDL/SDLInputManager.cpp: In constructor 'OIS::SDLInputManager::SDLInputManager()':
./SDL/SDLInputManager.cpp:35: error: no matching function for call to 'OIS::InputManager::InputManager()'
../includes/OISInputManager.h:180: note: candidates are: OIS::InputManager::InputManager(const std::string&)
../includes/OISInputManager.h:39: note:                 OIS::InputManager::InputManager(const OIS::InputManager&)
gmake[1]: *** [SDLInputManager.lo] Error 1
gmake[1]: Leaving directory `/usr/home/amdmi3/projects/svn-versions/ois/src'
gmake: *** [all-recursive] Error 1
Logged
Pages: [1] 2