scriptkid
10-04-2007 20:55:29
Hey guys,
(i also sent this to the mailinglist, but the google groups are not clear to me whether those messages do show up when you are not a member. So sorry if this is a duplicate!)
Yesterday i decided to compile python-ogre myself (win32), because now and then my app crashes and i need to start debugging :/
I ran into a problem though, and i have a question. But first the error while generating Ogre. This is the 'head' btw; Eithort gave this problem as well so i though that this was the cause.. but apparently not.
Traceback (most recent call last):
File "generate_code.py", line 971, in <module> generate_code()
File "generate_code.py", line 887, in generate_code ManualExclude ( mb )
File "generate_code.py", line 92, in ManualExclude ogre_ns.class_('Root').mem_fun('termHandler').exclude()
File "c:\python25\Lib\site-packages\pygccxml\declarations\scopedef.py", line 477, in member_function, recursive=recursive )
File "c:\python25\Lib\site-packages\pygccxml\declarations\scopedef.py", line 327, in _find_single found = matcher_module.matcher.get_single( matcher, decls, False )
File "c:\python25\Lib\site-packages\pygccxml\declarations\matcher.py", line 79, in get_single raise matcher.declaration_not_found_t( decl_matcher )
pygccxml.declarations.matcher.declaration_not_found_t: Unable to find declaration. matcher: [(decl type==member_function_t) and (name==termHandler)]
This is an error like the sample on your 'building from source page' so that's not too scary. However removing the offending line causes another problem, which does not look familiar to me:
Traceback (most recent call last):
File "generate_code.py", line 971, in <module> generate_code()
File "generate_code.py", line 887, in generate_code ManualExclude ( mb )
File "generate_code.py", line 93, in ManualExclude ogre_ns.class_( "StaticGeometry" ).class_("Region").member_functions('getLights').exclude()
File "c:\python25\Lib\site-packages\pygccxml\declarations\scopedef.py", line 491, in member_functions , allow_empty=allow_empty)
File "c:\python25\Lib\site-packages\pygccxml\declarations\scopedef.py", line 347, in _find_multiple raise RuntimeError( "Multi declaration query returned 0 declarations." )
RuntimeError: Multi declaration query returned 0 declarations.
Please note that i have modified PythonOgreConfigNt.py and Environment.py, so that it only creates Ogre, Cegui and OIS. The two latter can be generated fine, so i'm quit confident about having done all the prework well. I have compiled both Ogre and Cegui with RTTI enabled.
Now for the question:
Your PythonOgreConfigNt.py file contains this line:
"pyplusplus_install_dir = r'c:/development/pyplus'"
What is 'pyplus' on your system? I checked out pygccxml and have this line:
pyplusplus_install_dir = r'D:/Projects/Python-Ogre-Dev/pygccxml'
Is that the correct one? Besides, i needed to install both 'pyplusplus_dev' and 'pygccxml_dev' right?
Thanks in advance!
bye,
Patrick.
(i also sent this to the mailinglist, but the google groups are not clear to me whether those messages do show up when you are not a member. So sorry if this is a duplicate!)
Yesterday i decided to compile python-ogre myself (win32), because now and then my app crashes and i need to start debugging :/
I ran into a problem though, and i have a question. But first the error while generating Ogre. This is the 'head' btw; Eithort gave this problem as well so i though that this was the cause.. but apparently not.
Traceback (most recent call last):
File "generate_code.py", line 971, in <module> generate_code()
File "generate_code.py", line 887, in generate_code ManualExclude ( mb )
File "generate_code.py", line 92, in ManualExclude ogre_ns.class_('Root').mem_fun('termHandler').exclude()
File "c:\python25\Lib\site-packages\pygccxml\declarations\scopedef.py", line 477, in member_function, recursive=recursive )
File "c:\python25\Lib\site-packages\pygccxml\declarations\scopedef.py", line 327, in _find_single found = matcher_module.matcher.get_single( matcher, decls, False )
File "c:\python25\Lib\site-packages\pygccxml\declarations\matcher.py", line 79, in get_single raise matcher.declaration_not_found_t( decl_matcher )
pygccxml.declarations.matcher.declaration_not_found_t: Unable to find declaration. matcher: [(decl type==member_function_t) and (name==termHandler)]
This is an error like the sample on your 'building from source page' so that's not too scary. However removing the offending line causes another problem, which does not look familiar to me:
Traceback (most recent call last):
File "generate_code.py", line 971, in <module> generate_code()
File "generate_code.py", line 887, in generate_code ManualExclude ( mb )
File "generate_code.py", line 93, in ManualExclude ogre_ns.class_( "StaticGeometry" ).class_("Region").member_functions('getLights').exclude()
File "c:\python25\Lib\site-packages\pygccxml\declarations\scopedef.py", line 491, in member_functions , allow_empty=allow_empty)
File "c:\python25\Lib\site-packages\pygccxml\declarations\scopedef.py", line 347, in _find_multiple raise RuntimeError( "Multi declaration query returned 0 declarations." )
RuntimeError: Multi declaration query returned 0 declarations.
Please note that i have modified PythonOgreConfigNt.py and Environment.py, so that it only creates Ogre, Cegui and OIS. The two latter can be generated fine, so i'm quit confident about having done all the prework well. I have compiled both Ogre and Cegui with RTTI enabled.
Now for the question:
Your PythonOgreConfigNt.py file contains this line:
"pyplusplus_install_dir = r'c:/development/pyplus'"
What is 'pyplus' on your system? I checked out pygccxml and have this line:
pyplusplus_install_dir = r'D:/Projects/Python-Ogre-Dev/pygccxml'
Is that the correct one? Besides, i needed to install both 'pyplusplus_dev' and 'pygccxml_dev' right?
Thanks in advance!

bye,
Patrick.