Gregor
unread,Dec 11, 2010, 10:06:31 AM12/11/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Ogre Developers
Hey,
a post in the Ogre3D forums advised to ask compiling related questions
here.
I tried compiling Python-Ogre today, step 1-4 from the Wiki worked
well, although I installed a binary of CEGUI.
But step 5 fails with some strange errors (see below).
I think it is strange that the STL files fail...
I use gcc 4.5.0 20100604 and python 2.6.5 on OpenSuSE 11.3 64bit. I
checked out branch v1-6-4 as proposed in the wiki.
Is it possible to build a newer version (trunk), might that resolve
anything?
Regards,
Gregor
12-11 14:36 PythonOgre.BuildModule INFO Building Source code for
ogre
12-11 14:36 PythonOgre.BuildModule DEBUG Spawning 'python
generate_code.py --usesystem' in '/home/gregor/software/python-ogre/
v1-6-4/code_generators/ogre'
12-11 14:37 PythonOgre.BuildModule WARNING Task Failed
12-11 14:37 PythonOgre.BuildModule DEBUG
12-11 14:37 PythonOgre.BuildModule DEBUG ../common_utils/
__init__.py:7: DeprecationWarning: the md5 module is deprecated; use
hashlib instead
import md5
INFO Creating xml file "/home/gregor/software/python-ogre/v1-6-4/
code_generators/cache/ogre_1.7.0RC1_cache.xml" from source file "/home/
gregor/software/python-ogre/v1-6-4/code_generators/ogre/
python_ogre.h" ...
INFO gccxml cmd: /usr/bin/gccxml -I"/home/gregor/software/python-ogre/
v1-6-4" -I"/home/gregor/software/python-ogre/v1-6-4/code_generators/
ogre" -I"/usr/include/boost" -I"/usr/include/OGRE" -I"/usr/include/
python2.6/" -D"OGRE_NONCLIENT_BUILD" -D"OGRE_GCC_VISIBILITY" -
D"__PYTHONOGRE_BUILD_CODE" -D"HAVE_OGRE_BUILDSETTINGS_H" -
D"__GCCXML__" -D"OGRE_VERSION_1.7.0RC1" "/home/gregor/software/python-
ogre/v1-6-4/code_generators/ogre/python_ogre.h" -fxml="/home/gregor/
software/python-ogre/v1-6-4/code_generators/cache/
ogre_1.7.0RC1_cache.xml"
Traceback (most recent call last):
File "generate_code.py", line 1713, in <module>
generate_code()
File "generate_code.py", line 1448, in generate_code
, cflags=environment.ogre.cflags
File "/usr/local/lib/python2.6/site-packages/pyplusplus/
module_builder/boost_python_builder.py", line 95, in __init__
, indexing_suite_version)
File "/usr/local/lib/python2.6/site-packages/pyplusplus/
module_builder/boost_python_builder.py", line 138, in
__parse_declarations
decls = reader.read_files( files, compilation_mode )
File "/usr/local/lib/python2.6/site-packages/pygccxml/parser/
project_reader.py", line 217, in read_files
return self.__parse_file_by_file(files)
File "/usr/local/lib/python2.6/site-packages/pygccxml/parser/
project_reader.py", line 254, in __parse_file_by_file
reader.create_xml_file( header, prj_file.cached_source_file )
File "/usr/local/lib/python2.6/site-packages/pygccxml/parser/
source_reader.py", line 179, in create_xml_file
raise error
pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured
while running GCC-XML: In file included from /usr/include/c++/4.5/
vector:64,
from /home/gregor/software/python-ogre/v1-6-4/
code_generators/ogre/python_ogre.h:7:
/usr/include/c++/4.5/bits/stl_uninitialized.h: In function 'void
std::__uninitialized_construct_range(_ForwardIterator,
_ForwardIterator, _Tp&)':
/usr/include/c++/4.5/bits/stl_uninitialized.h:231: error: a function
call cannot appear in a constant-expression
/usr/include/c++/4.5/bits/stl_uninitialized.h:231: error: template
argument 1 is invalid
/usr/include/c++/4.5/bits/stl_uninitialized.h:232: error: invalid type
in declaration before '(' token
/usr/include/c++/4.5/bits/stl_uninitialized.h:232: error: invalid use
of qualified-name '::__ucr'
In file included from /usr/include/OGRE/OgreStdHeaders.h:64,
from /usr/include/OGRE/OgrePrerequisites.h:315,
from /usr/include/OGRE/Ogre.h:31,
from /home/gregor/software/python-ogre/v1-6-4/
code_generators/ogre/python_ogre_masterlist.h:14,
from /home/gregor/software/python-ogre/v1-6-4/
code_generators/ogre/python_ogre.h:16:
/usr/include/c++/4.5/iomanip: In function 'std::_Resetiosflags
std::resetiosflags(std::_Ios_Fmtflags)':
/usr/include/c++/4.5/iomanip:64: error: expected primary-expression
before '{' token
/usr/include/c++/4.5/iomanip:64: error: expected ';' before '{' token
/usr/include/c++/4.5/iomanip:64: error: expected `;' before '}' token
/usr/include/c++/4.5/iomanip: In function 'std::_Setiosflags
std::setiosflags(std::_Ios_Fmtflags)':
/usr/include/c++/4.5/iomanip:94: error: expected primary-expression
before '{' token
/usr/include/c++/4.5/iomanip:94: error: expected ';' before '{' token
/usr/include/c++/4.5/iomanip:94: error: expected `;' before '}' token
/usr/include/c++/4.5/iomanip: In function 'std::_Setbase
std::setbase(int)':
/usr/include/c++/4.5/iomanip:125: error: expected primary-expression
before '{' token
/usr/include/c++/4.5/iomanip:125: error: expected ';' before '{' token
/usr/include/c++/4.5/iomanip:125: error: expected `;' before '}' token
/usr/include/c++/4.5/iomanip: In function 'std::_Setfill<_CharT>
std::setfill(_CharT)':
/usr/include/c++/4.5/iomanip:163: error: expected primary-expression
before '{' token
/usr/include/c++/4.5/iomanip:163: error: expected ';' before '{' token
/usr/include/c++/4.5/iomanip:163: error: expected `;' before '}' token
/usr/include/c++/4.5/iomanip: In function 'std::_Setprecision
std::setprecision(int)':
/usr/include/c++/4.5/iomanip:193: error: expected primary-expression
before '{' token
/usr/include/c++/4.5/iomanip:193: error: expected ';' before '{' token
/usr/include/c++/4.5/iomanip:193: error: expected `;' before '}' token
/usr/include/c++/4.5/iomanip: In function 'std::_Setw std::setw(int)':
/usr/include/c++/4.5/iomanip:223: error: expected primary-expression
before '{' token
/usr/include/c++/4.5/iomanip:223: error: expected ';' before '{' token
/usr/include/c++/4.5/iomanip:223: error: expected `;' before '}' token
12-11 14:37 PythonOgre.BuildModule INFO Compiling Source code for
ogre
12-11 14:37 PythonOgre.BuildModule DEBUG Spawning 'scons -j1
PROJECTS=ogre' in '/home/gregor/software/python-ogre/v1-6-4'