Building additional modules in python-ogre

brunomfs

17-03-2008 17:03:09

Hello everybody,
i followed the wiki guide - http://wiki.python-ogre.org/index.php/LinuxBuildV2 - and everything was fine with the main Ogre library python-ogre wrapping.

However, when installing the additional modules, i've had problems with OgreNewt:
the SConscript file that supposed to be on ~/development/ogreaddons/ogrenewt/OgreNewt_main is actually on ~/development/ogreaddons/ogrenewt, so i had to move the file to the aforementioned directory.

Also, when installing the ofusion addon, i had errors and didn't resolve them.
Everything goes ok with
python/python-ogre/BuildModule.py -g ofusion

Then, with
python/python-ogre/BuildModule.py -c ofusion

i get the following (taken from the log.out)

03-17 11:53 PythonOgre.BuildModule INFO Compiling Source code for ofusion
03-17 11:53 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ofusion' in '/home/bruno/development/python-ogre'
03-17 11:55 PythonOgre.BuildModule WARNING Task Failed
03-17 11:55 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
Building ofusion
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.5/ofusion_1.0/LightList.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/bruno/development/root/usr/include/boost-1_34_1 -IThirdParty/ofusion -I/home/bruno/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/bruno/development/root/usr/include/boost-1_34_1 generated/ofusion_1.0/LightList.pypp.cpp
g++ -o build_dir_2.5/ofusion_1.0/OSMScene.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/bruno/development/root/usr/include/boost-1_34_1 -IThirdParty/ofusion -I/home/bruno/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/bruno/development/root/usr/include/boost-1_34_1 generated/ofusion_1.0/OSMScene.pypp.cpp
g++ -o build_dir_2.5/ofusion_1.0/OSMSceneCallbacks.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/bruno/development/root/usr/include/boost-1_34_1 -IThirdParty/ofusion -I/home/bruno/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/bruno/development/root/usr/include/boost-1_34_1 generated/ofusion_1.0/OSMSceneCallbacks.pypp.cpp
g++ -o build_dir_2.5/ofusion_1.0/OgreOSMScene.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/bruno/development/root/usr/include/boost-1_34_1 -IThirdParty/ofusion -I/home/bruno/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/bruno/development/root/usr/include/boost-1_34_1 generated/ofusion_1.0/OgreOSMScene.cpp
scons: building terminated because of errors.

03-17 11:55 PythonOgre.BuildModule DEBUG In file included from generated/ofusion_1.0/OgreOSMScene.h:28,
from generated/ofusion_1.0/LightList.pypp.cpp:6:
generated/ofusion_1.0/IOSMSceneCallbacks.h:63:7: warning: no newline at end of file
In file included from generated/ofusion_1.0/OgreOSMScene.h:29,
from generated/ofusion_1.0/LightList.pypp.cpp:6:
generated/ofusion_1.0/OSMAnimSerializer.h:31:32: warning: no newline at end of file
In file included from generated/ofusion_1.0/LightList.pypp.cpp:6:
generated/ofusion_1.0/OgreOSMScene.h:108:7: warning: no newline at end of file
In file included from generated/ofusion_1.0/OgreOSMScene.h:28,
from generated/ofusion_1.0/OSMScene.pypp.cpp:4:
generated/ofusion_1.0/IOSMSceneCallbacks.h:63:7: warning: no newline at end of file
In file included from generated/ofusion_1.0/OgreOSMScene.h:29,
from generated/ofusion_1.0/OSMScene.pypp.cpp:4:
generated/ofusion_1.0/OSMAnimSerializer.h:31:32: warning: no newline at end of file
In file included from generated/ofusion_1.0/OSMScene.pypp.cpp:4:
generated/ofusion_1.0/OgreOSMScene.h:108:7: warning: no newline at end of file
In file included from generated/ofusion_1.0/OgreOSMScene.h:28,
from generated/ofusion_1.0/OSMSceneCallbacks.pypp.cpp:4:
generated/ofusion_1.0/IOSMSceneCallbacks.h:63:7: warning: no newline at end of file
In file included from generated/ofusion_1.0/OgreOSMScene.h:29,
from generated/ofusion_1.0/OSMSceneCallbacks.pypp.cpp:4:
generated/ofusion_1.0/OSMAnimSerializer.h:31:32: warning: no newline at end of file
In file included from generated/ofusion_1.0/OSMSceneCallbacks.pypp.cpp:4:
generated/ofusion_1.0/OgreOSMScene.h:108:7: warning: no newline at end of file
In file included from generated/ofusion_1.0/OgreOSMScene.h:28,
from generated/ofusion_1.0/OgreOSMScene.cpp:19:
generated/ofusion_1.0/IOSMSceneCallbacks.h:63:7: warning: no newline at end of file
In file included from generated/ofusion_1.0/OgreOSMScene.h:29,
from generated/ofusion_1.0/OgreOSMScene.cpp:19:
generated/ofusion_1.0/OSMAnimSerializer.h:31:32: warning: no newline at end of file
In file included from generated/ofusion_1.0/OgreOSMScene.cpp:19:
generated/ofusion_1.0/OgreOSMScene.h:108:7: warning: no newline at end of file
generated/ofusion_1.0/OgreOSMScene.cpp: In member function ‘bool OSMScene::createScene(Ogre::SceneNode*)’:
generated/ofusion_1.0/OgreOSMScene.cpp:176: error: ‘FALSE’ was not declared in this scope
generated/ofusion_1.0/OgreOSMScene.cpp: In member function ‘Ogre::SceneNode* OSMScene::createSceneManager(TiXmlElement*, bool&)’:
generated/ofusion_1.0/OgreOSMScene.cpp:604: error: ‘TRUE’ was not declared in this scope
scons: *** [build_dir_2.5/ofusion_1.0/OgreOSMScene.os] Error 1


Any help would be appreciated.