Problems when building Phython-Ogre from source

Martins1

06-01-2007 14:39:29

Hello,

I am running generate_code.py for Ogre and I get an error:

INFO: file "VectorStringPairs.pypp.cpp" - updated( 0.000956 seconds )

ERROR: Failed to write code for class "vector<std::pair<int, Ogre::CompositorIns
tance::RenderSystemOperation*>, std::allocator<std::pair<int, Ogre::CompositorIn
stance::RenderSystemOperation*> > >" into file.
> May be the class name is too long?. Error: [Errno 2] No such file
> or directory: u'G:/Ogre/Python-Ogre\\generated\\ogre_CVS\\vector_less_
> std_scope_pair_less_int_comma__Ogre_scope_CompositorInstance_scope_Ren
> derSystemOperation_ptr__grate__comma__std_scope_allocator_less_std_sco
> pe_pair_less_int_comma__Ogre_scope_CompositorInstance_scope_RenderSyst
> emOperation_ptr__grate___grate___grate_.pypp.hpp''
Traceback (most recent call last):
File "generate_code.py", line 506, in <module>
generate_code()
File "generate_code.py", line 498, in generate_code
mb.split_module(environment.ogre.generated_dir, huge_classes)
File "g:\pyhton\Lib\site-packages\pyplusplus\module_builder\builder.py", line
323, in split_module
written_files = file_writers.write_class_multiple_files( self.code_creator,
dir_name, huge_classes )
File "g:\pyhton\Lib\site-packages\pyplusplus\file_writers\__init__.py", line 4
9, in write_class_multiple_files
mfs.write()
File "g:\pyhton\Lib\site-packages\pyplusplus\file_writers\multiple_files.py",
line 355, in write
map( self.split_class, class_creators )
File "g:\pyhton\Lib\site-packages\pyplusplus\file_writers\multiple_files.py",
line 254, in split_class
self.split_class_impl( class_creator )
File "g:\pyhton\Lib\site-packages\pyplusplus\file_writers\class_multiple_files
.py", line 194, in split_class_impl
return super( class_multiple_files_t, self ).split_class_impl( class_creator
)
File "g:\pyhton\Lib\site-packages\pyplusplus\file_writers\multiple_files.py",
line 230, in split_class_impl
, self.create_function_code( function_name ) ) )
File "g:\pyhton\Lib\site-packages\pyplusplus\file_writers\multiple_files.py",
line 49, in write_file
writer.writer_t.write_file( fpath, content )
File "g:\pyhton\Lib\site-packages\pyplusplus\file_writers\writer.py", line 93,
in write_file
f = file( fpath, 'w+b' )
IOError: [Errno 2] No such file or directory: u'G:/Ogre/Python-Ogre\\generated\\
ogre_CVS\\vector_less_std_scope_pair_less_int_comma__Ogre_scope_CompositorInstan
ce_scope_RenderSystemOperation_ptr__grate__comma__std_scope_allocator_less_std_s
cope_pair_less_int_comma__Ogre_scope_CompositorInstance_scope_RenderSystemOperat
ion_ptr__grate___grate___grate_.pypp.hpp'


Can you suggest how to fix it?

andy

07-01-2007 00:18:23

The problem is related to class aliases not being recognised..

However could you please repost this on the Python-Ogre mailing list as this is where we are dealing with source compilation issues..

http://groups.google.com/group/python-ogre-developers or
mailto://python-ogre-developers@googlegroups.com

Cheers

Andy