Google

Ubuntu Lucid OpenAL binding error

A discussion on Python-Ogre, the library which allows you to drive OGRE directly from Python

Moderators: OGRE Team, Python-Ogre Moderators

Ubuntu Lucid OpenAL binding error

Postby yillkid » Tue Aug 09, 2011 10:54 am

Hi all.

I want to bind OpenAL module in Ubuntu Lucid with python-ogre,
the command as below :

Code: Select all
python python-ogre/BuildModule.py -g -c ogreal --usesystem


wrapper code(-g) is good,
but when I compile(-c) it,
the output error message as below

Code: Select all
08-09 17:47 PythonOgre.BuildModule INFO     Building Source code for ogreal
08-09 17:47 PythonOgre.BuildModule DEBUG    Spawning 'python generate_code.py --usesystem' in '/home/yillkid/workspace/Python-ogre/development/python-ogre/code_generators/ogreal'
08-09 17:48 PythonOgre.BuildModule INFO     Compiling Source code for ogreal
08-09 17:48 PythonOgre.BuildModule DEBUG    Spawning 'scons -j3 PROJECTS=ogreal' in '/home/yillkid/workspace/Python-ogre/development/python-ogre'
08-09 17:49 PythonOgre.BuildModule WARNING  Task Failed
08-09 17:49 PythonOgre.BuildModule DEBUG    scons: Reading SConscript files ...
SCONS: Building ogreal
WARNING: Over-Writing  /home/yillkid/workspace/Python-ogre/development/python-ogre/generated/ogreal_r130/SConscript as it already exists
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.6/ogreal_r130/OgreALListener.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -DBOOST_PYTHON_NO_PY_SIGNATURES -I/home/yillkid/workspace/Python-ogre/development/python-ogre/generated/ogreal_r130 -I/usr/include -L/usr/lib -L/usr/lib64 -fPIC -I/usr/include/boost -I/usr/include/OGRE -IThirdParty/ogreal -I/usr/include/ogg -I/usr/include/vorbis -I/usr/include -I/usr/include/python2.6 -I/usr/include/boost generated/ogreal_r130/OgreALListener.cpp
g++ -o build_dir_2.6/ogreal_r130/SoundManager.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -DBOOST_PYTHON_NO_PY_SIGNATURES -I/home/yillkid/workspace/Python-ogre/development/python-ogre/generated/ogreal_r130 -I/usr/include -L/usr/lib -L/usr/lib64 -fPIC -I/usr/include/boost -I/usr/include/OGRE -IThirdParty/ogreal -I/usr/include/ogg -I/usr/include/vorbis -I/usr/include -I/usr/include/python2.6 -I/usr/include/boost generated/ogreal_r130/SoundManager.pypp.cpp
g++ -o build_dir_2.6/ogreal_r130/WavSound.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -DBOOST_PYTHON_NO_PY_SIGNATURES -I/home/yillkid/workspace/Python-ogre/development/python-ogre/generated/ogreal_r130 -I/usr/include -L/usr/lib -L/usr/lib64 -fPIC -I/usr/include/boost -I/usr/include/OGRE -IThirdParty/ogreal -I/usr/include/ogg -I/usr/include/vorbis -I/usr/include -I/usr/include/python2.6 -I/usr/include/boost generated/ogreal_r130/WavSound.pypp.cpp
scons: building terminated because of errors.

08-09 17:49 PythonOgre.BuildModule DEBUG    In file included from /usr/include/OGRE/OgreResourceGroupManager.h:32,
                 from /usr/include/OGRE/OgreResourceManager.h:34,
                 from /usr/include/OGRE/OgreArchiveManager.h:33,
                 from /usr/include/OGRE/Ogre.h:38,
                 from generated/ogreal_r130/OgreALPrereqs.h:39,
                 from generated/ogreal_r130/OgreALException.h:39,
                 from generated/ogreal_r130/OgreALListener.cpp:36:
/usr/include/OGRE/OgreSingleton.h: In constructor ‘Ogre::Singleton<T>::Singleton() [with T = OgreAL::Listener]’:
generated/ogreal_r130/OgreALListener.cpp:49:   instantiated from here
/usr/include/OGRE/OgreSingleton.h:85: error: ‘Ogre::Singleton<OgreAL::Listener>’ is an inaccessible base of ‘OgreAL::Listener’
scons: *** [build_dir_2.6/ogreal_r130/OgreALListener.os] Error 1


Question:

1. Any solution? or Could I bind OpenAL use system ?
2. If not, does any sound play solution suitable for Ubuntu Lucid ?
yillkid
Gnoblar
 
Posts: 5
Kudos: 0
Joined: 20 Jul 2011

Re: Ubuntu Lucid OpenAL binding error

Postby dermont » Tue Aug 09, 2011 12:07 pm

Try:
1. clearing out python-ogre_svn/generated/ogreal_r130
2. delete python-ogre_svn/code_generators/cache/ogreal_r130_cache.xml
3. Edit python-ogre_svn/ThirdParty/ogreal/OgreALListener.h

//class OgreAL_Export Listener : public Ogre::MovableObject, protected Ogre::Singleton<Listener>
class OgreAL_Export Listener : public Ogre::MovableObject, public Ogre::Singleton<Listener>

4. re-run your generate/compile command
dermont
Bugbear
 
Posts: 895
Kudos: 37
Joined: 27 Sep 2005

Re: Ubuntu Lucid OpenAL binding error

Postby yillkid » Wed Aug 10, 2011 7:06 am

it works!

thank you very much.
yillkid
Gnoblar
 
Posts: 5
Kudos: 0
Joined: 20 Jul 2011


Return to Python-Ogre

Who is online

Users browsing this forum: No registered users and 1 guest

cron