Ubuntu Lucid OpenAL binding error

yillkid

09-08-2011 10:54:20

Hi all.

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


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


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 ?

dermont

09-08-2011 12:07:34

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

yillkid

10-08-2011 07:06:02

it works!

thank you very much.