is python-ogre working on Mac OSX?

illume

22-01-2008 23:51:57

Hello,

is python-ogre working on Mac OSX yet?

cheers,

andy

23-01-2008 10:56:39

Base libraries build on Tiger (Ogre, Ois, Cegiu) -- still needs a little testing on Leopard..

Andy

illume

25-01-2008 06:07:40

Hello,

after a very long time compiling... I get these errors.

OSX 10.4.11
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)



iMac2:~/development/python-ogre/demos/ogre rsd$ python Demo_Smoke.py
Traceback (most recent call last):
File "Demo_Smoke.py", line 16, in <module>
import SampleFramework as sf
File "../SampleFramework.py", line 11, in <module>
from ogre.renderer.OGRE.sf_OIS import *
File "/Users/rsd/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py", line 13, in <module>
import ogre.io.OIS as OIS
File "/Users/rsd/development/root/usr/lib/python2.5/site-packages/ogre/io/OIS/__init__.py", line 4, in <module>
from _ois_ import *
RuntimeError: extension class wrapper for base class OIS::Component has not been created yet


I followed the instructions here:
http://wiki.python-ogre.org/index.php/OSXBuildV2

Some of the ogrenew demos work ok. Just not the python ones.

The _ois_.so file exists here:
~/development/root/usr/lib/python2.5/site-packages/ogre/io/OIS/_ois_.so

Any ideas?

illume

25-01-2008 06:12:55

btw.

I can import the _ois_.so module.

cd ~/development/root/usr/lib/python2.5/site-packages/ogre/io/OIS/
iMac2:~/development/root/usr/lib/python2.5/site-packages/ogre/io/OIS rsd$ pythonPython 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import _ois_
>>> dir(_ois_)
['Axis', 'AxisVector', 'Button', 'Component', 'ComponentType', 'ConditionalEffect', 'ConstantEffect', 'E_DeviceFull', 'E_Duplicate', 'E_General', 'E_InputDeviceNonExistant', 'E_InputDeviceNotSupported', 'E_InputDisconnected', 'E_InvalidParam', 'E_NotImplemented', 'E_NotSupported', 'Effect', 'Envelope', 'EventArg', 'Exception', 'ForceEffect', 'ForceFeedback', 'InputManager', 'Interface', 'JoyStick', 'JoyStickEvent', 'JoyStickListener', 'JoyStickState', 'KC_0', 'KC_1', 'KC_2', 'KC_3', 'KC_4', 'KC_5', 'KC_6', 'KC_7', 'KC_8', 'KC_9', 'KC_A', 'KC_ABNT_C1', 'KC_ABNT_C2', 'KC_ADD', 'KC_APOSTROPHE', 'KC_APPS', 'KC_AT', 'KC_AX', 'KC_B', 'KC_BACK', 'KC_BACKSLASH', 'KC_C', 'KC_CALCULATOR', 'KC_CAPITAL', 'KC_COLON', 'KC_COMMA', 'KC_CONVERT', 'KC_D', 'KC_DECIMAL', 'KC_DELETE', 'KC_DIVIDE', 'KC_DOWN', 'KC_E', 'KC_END', 'KC_EQUALS', 'KC_ESCAPE', 'KC_F', 'KC_F1', 'KC_F10', 'KC_F11', 'KC_F12', 'KC_F13', 'KC_F14', 'KC_F15', 'KC_F2', 'KC_F3', 'KC_F4', 'KC_F5', 'KC_F6', 'KC_F7', 'KC_F8', 'KC_F9', 'KC_G', 'KC_GRAVE', 'KC_H', 'KC_HOME', 'KC_I', 'KC_INSERT', 'KC_J', 'KC_K', 'KC_KANA', 'KC_KANJI', 'KC_L', 'KC_LBRACKET', 'KC_LCONTROL', 'KC_LEFT', 'KC_LMENU', 'KC_LSHIFT', 'KC_LWIN', 'KC_M', 'KC_MAIL', 'KC_MEDIASELECT', 'KC_MEDIASTOP', 'KC_MINUS', 'KC_MULTIPLY', 'KC_MUTE', 'KC_MYCOMPUTER', 'KC_N', 'KC_NEXTTRACK', 'KC_NOCONVERT', 'KC_NUMLOCK', 'KC_NUMPAD0', 'KC_NUMPAD1', 'KC_NUMPAD2', 'KC_NUMPAD3', 'KC_NUMPAD4', 'KC_NUMPAD5', 'KC_NUMPAD6', 'KC_NUMPAD7', 'KC_NUMPAD8', 'KC_NUMPAD9', 'KC_NUMPADCOMMA', 'KC_NUMPADENTER', 'KC_NUMPADEQUALS', 'KC_O', 'KC_OEM_102', 'KC_P', 'KC_PAUSE', 'KC_PERIOD', 'KC_PGDOWN', 'KC_PGUP', 'KC_PLAYPAUSE', 'KC_POWER', 'KC_PREVTRACK', 'KC_Q', 'KC_R', 'KC_RBRACKET', 'KC_RCONTROL', 'KC_RETURN', 'KC_RIGHT', 'KC_RMENU', 'KC_RSHIFT', 'KC_RWIN', 'KC_S', 'KC_SCROLL', 'KC_SEMICOLON', 'KC_SLASH', 'KC_SLEEP', 'KC_SPACE', 'KC_STOP', 'KC_SUBTRACT', 'KC_SYSRQ', 'KC_T', 'KC_TAB', 'KC_U', 'KC_UNASSIGNED', 'KC_UNDERLINE', 'KC_UNLABELED', 'KC_UP', 'KC_V', 'KC_VOLUMEDOWN', 'KC_VOLUMEUP', 'KC_W', 'KC_WAKE', 'KC_WEBBACK', 'KC_WEBFAVORITES', 'KC_WEBFORWARD', 'KC_WEBHOME', 'KC_WEBREFRESH', 'KC_WEBSEARCH', 'KC_WEBSTOP', 'KC_X', 'KC_Y', 'KC_YEN', 'KC_Z', 'KeyCode', 'KeyEvent', 'KeyListener', 'Keyboard', 'MB_Button3', 'MB_Button4', 'MB_Button5', 'MB_Button6', 'MB_Button7', 'MB_Left', 'MB_Middle', 'MB_Right', 'Mouse', 'MouseButtonID', 'MouseEvent', 'MouseListener', 'MouseState', 'OISJoyStick', 'OISKeyboard', 'OISMouse', 'OISTablet', 'OISUnknown', 'OIS_Axis', 'OIS_Button', 'OIS_ERROR', 'OIS_POV', 'OIS_Slider', 'OIS_Unknown', 'Object', 'ParamList', 'PeriodicEffect', 'Pov', 'RampEffect', 'Slider', 'SupportedEffectList', 'Type', '__doc__', '__file__', '__name__', 'createPythonInputSystem', 'ois_version', 'python_version']

illume

28-01-2008 23:14:07

Hi,

I'm getting closer... When I do this it helps a little:
export PYTHONPATH=~/development/root/usr/lib/python2.5/site-packages
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:~/development/root/usr/lib/


Now I can import ogre.
>>> import ogre
>>>

However when I try to run the demos I still get the error:
Traceback (most recent call last):
File "Demo_Smoke.py", line 16, in <module>
import SampleFramework as sf
File "../SampleFramework.py", line 11, in <module>
from ogre.renderer.OGRE.sf_OIS import *
File "/Users/rsd/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/sf_OIS.py", line 13, in <module>
import ogre.io.OIS as OIS
File "/Users/rsd/development/root/usr/lib/python2.5/site-packages/ogre/io/OIS/__init__.py", line 4, in <module>
from _ois_ import *
RuntimeError: extension class wrapper for base class OIS::Component has not been created yet