Linux compile help plz

siavashm

19-04-2008 19:28:25

Hi,
After 7 days of trying i am posting this for getting help..
followed http://wiki.python-ogre.org/index.php/LinuxBuildV2 and reached step 5 with following problem :
" i had to download and compile boost 1.34.1 by my self in path root/usr/..."
anyway it workd and i am in step 5 killed myself and cant compile it, my log file :

04-18 22:47 PythonOgre.BuildModule INFO Building Source code for ois
04-18 22:47 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/home/siavash/development/python-ogre/code_generators/ois'
04-18 22:47 PythonOgre.BuildModule INFO Compiling Source code for ois
04-18 22:47 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ois' in '/home/siavash/development/python-ogre'
04-18 22:47 PythonOgre.BuildModule WARNING Task Failed
04-18 22:47 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
Building ois
WARNING: Over-Writing /home/siavash/development/python-ogre/generated/ois_1.1/SConscript as it already exists
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.5/ois_1.1/AxisVector.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OIS -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ois_1.1/AxisVector.pypp.cpp
scons: building terminated because of errors.

04-18 22:47 PythonOgre.BuildModule DEBUG generated/ois_1.1/AxisVector.pypp.cpp:6:59: error: boost/python/suite/indexing/container_suite.hpp: No such file or directory
generated/ois_1.1/AxisVector.pypp.cpp:7:50: error: boost/python/suite/indexing/vector.hpp: No such file or directory
In file included from generated/ois_1.1/AxisVector.pypp.cpp:8:
generated/ois_1.1/_Axis__value_traits.pypp.hpp:9: error: ‘value_traits’ is not a template
generated/ois_1.1/_Axis__value_traits.pypp.hpp:9: error: explicit specialization of non-template ‘boost::python::indexing::value_traits’
generated/ois_1.1/AxisVector.pypp.cpp: In function ‘void register_AxisVector_class()’:
generated/ois_1.1/AxisVector.pypp.cpp:19: error: ‘vector_suite’ is not a member of ‘boost::python::indexing’
generated/ois_1.1/AxisVector.pypp.cpp:19: error: expected primary-expression before ‘>’ token
generated/ois_1.1/AxisVector.pypp.cpp:19: error: expected primary-expression before ‘)’ token
scons: *** [build_dir_2.5/ois_1.1/AxisVector.pypp.os] Error 1

04-18 22:47 PythonOgre.BuildModule INFO Building Source code for ogre
04-18 22:47 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/home/siavash/development/python-ogre/code_generators/ogre'
04-18 22:50 PythonOgre.BuildModule INFO Compiling Source code for ogre
04-18 22:50 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ogre' in '/home/siavash/development/python-ogre'
04-18 22:55 PythonOgre.BuildModule WARNING Task Failed
04-18 22:55 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
Building ogre
WARNING: Over-Writing /home/siavash/development/python-ogre/generated/ogre_1.4/SConscript as it already exists
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.5/ogre_1.4/AliasTextureIterator.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AliasTextureIterator.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AlignedAllocatorVector40.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AlignedAllocatorVector40.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AlignedMemory.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AlignedMemory.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimableObject.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimableObject.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimableValue.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimableValue.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/Animation.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/Animation.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimationControllerFunction.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimationControllerFunction.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimationIterator.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimationIterator.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimationState.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimationState.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimationStateControllerValue.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimationStateControllerValue.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimationStateIterator.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimationStateIterator.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimationStateSet.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimationStateSet.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnimationTrack.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnimationTrack.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/Any.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/Any.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AnyNumeric.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AnyNumeric.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/Archive.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/Archive.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/ArchiveFactory.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/ArchiveFactory.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/ArchiveFactoryObj.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/ArchiveFactoryObj.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/ArchiveManager.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/ArchiveManager.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AutoConstantIterator.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AutoConstantIterator.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AutoParamDataSource.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AutoParamDataSource.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AxisAlignedBox.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AxisAlignedBox.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/AxisAlignedBoxSceneQuery.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AxisAlignedBoxSceneQuery.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/Billboard.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/Billboard.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BillboardChain.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BillboardChain.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BillboardChainFactory.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BillboardChainFactory.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BillboardParticleRenderer.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BillboardParticleRenderer.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BillboardParticleRendererFactory.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BillboardParticleRendererFactory.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BillboardSet.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BillboardSet.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BillboardSetFactory.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BillboardSetFactory.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/Bone.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/Bone.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BoneAssignmentIterator.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BoneAssignmentIterator.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BoneIterator.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BoneIterator.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BorderPanelOverlayElement.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BorderPanelOverlayElement.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BorderPanelOverlayElementFactory.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BorderPanelOverlayElementFactory.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BorderRenderable.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BorderRenderable.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/Box.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/Box.pypp.cpp
g++ -o build_dir_2.5/ogre_1.4/BufferUsageList.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -fPIC -I/home/siavash/development/root/usr/include/boost-1_34_1 -I/home/siavash/development/root/usr/include/OGRE -I/usr/include/python2.5 -I/home/siavash/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/BufferUsageList.pypp.cpp
scons: building terminated because of errors.

04-18 22:55 PythonOgre.BuildModule DEBUG generated/ogre_1.4/BufferUsageList.pypp.cpp:5:59: error: boost/python/suite/indexing/container_suite.hpp: No such file or directory
generated/ogre_1.4/BufferUsageList.pypp.cpp:6:50: error: boost/python/suite/indexing/vector.hpp: No such file or directory
generated/ogre_1.4/BufferUsageList.pypp.cpp: In function ‘void register_BufferUsageList_class()’:
generated/ogre_1.4/BufferUsageList.pypp.cpp:17: error: ‘bp::indexing’ has not been declared
generated/ogre_1.4/BufferUsageList.pypp.cpp:17: error: expected primary-expression before ‘>’ token
generated/ogre_1.4/BufferUsageList.pypp.cpp:17: error: expected primary-expression before ‘)’ token
scons: *** [build_dir_2.5/ogre_1.4/BufferUsageList.pypp.os] Error 1


Please can anybody help me??? :cry:

Game_Ender

19-04-2008 20:48:18

It looks like you didn't patch boost 1.34. Did you patch it before you built it?

siavashm

20-04-2008 13:26:02

thx for replay
patch it? how :P

andy

21-04-2008 00:02:57

Why did you try to use your own version of Boost?? It should have installed and built as part of the Python-Ogre process

ie python python-ogre/BuildPython.py -r -b boost

The standard boost libraries do not have the necessary Python support and hence are patched and updated as part of the build process.

Regards
Andy

conkhikho

03-05-2008 19:50:53

Why did you try to use your own version of Boost?? It should have installed and built as part of the Python-Ogre process

ie python python-ogre/BuildPython.py -r -b boost

The standard boost libraries do not have the necessary Python support and hence are patched and updated as part of the build process.

Regards
Andy


I had the same problem with his because i also used the unpatched version of boost. In fact, there's no other way, because when I tried python python-ogre/BuildPython.py -r -b boost, although it seems that there's no error, there's in fact Segmentation Fault when make is executed.

How do you patch boost manually?