I've got some problems in the ogre code generation.When I execute the
generate_code.py script I have got the following errors:
1. At all ogre includes where are an assert statement i've got an
error like this:
c:/Development/Ogrenew/OgreMain/include/OgreVector2.h: In member
function `Real
Ogre::Vector2::operator[](unsigned int) const':
c:/Developmet/Ogrenew/OgreMain/include/OgreVector2.h:90: error:
invalid
conversion from `void*' to `const char*'
I comment all these lines and I can generate the xml file
2. After generate the xml file, i've got errors like the sample on
the python-ogre.org building from source page. So I remove the
offending lines and go on. These offending lines make reference to
UTFString, std::pair and std::vector classes.
3. After these two errors i've got the following one, and i don't know
what to do to go on:
Traceback (most recent call last):
File "generate_code.py", line 1005, in <module>
generate_code()
File "generate_code.py", line 975, in generate_code
mb.build_code_creator (module_name='_ogre_' , doc_extractor=
extractor )
File "C:\Python25\lib\site-packages\pyplusplus\module_builder
\builder.py", line 247, in build_code_creator
self.__code_creator = creator.create()
File "C:\Python25\lib\site-packages\pyplusplus\module_creator
\creator.py", line 324, in create
declarations.apply_visitor( self, decl )
File "C:\Python25\Lib\site-packages\pygccxml\declarations
\algorithm.py", line 275, in apply_visitor
getattr( visitor, fname )()
File "C:\Python25\lib\site-packages\pyplusplus\module_creator
\creator.py", line 554, in visit_class
copy_constr = self.curr_decl.constructor( lambda c:
c.is_copy_constructor, recursive=False )
File "C:\Python25\Lib\site-packages\pygccxml\declarations
\scopedef.py", line 504, in constructor
, 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 81, in get_single
raise matcher.multiple_declarations_found_t( decl_matcher )
pygccxml.declarations.matcher.multiple_declarations_found_t: Multiple
declarations has been found. matcher: [<function <lambda> at
0x20276F30>]
Could anybody help me?
Thanks in advance!
P.S. I'm using the Ogre 1.4 SDk Source release
To install both, pygccxml and Py++, I ran the setup.py script with
install as argument.
Thanks!
On 16 abr, 20:15, "Roman Yakovenko" <roman.yakove...@gmail.com> wrote:
I guess you didn't see the message in bold on this page(
http://gccxml.org/HTML/Download.html )
I suggest you to download "gccxml_installer.zip" from
http://language-binding.net/pygccxml/download.html#gcc-xml and install it.
This is also single-click setup. Let me know if this helped you.
Thank you very much for your help! I've just achieve to generate the
ogre code!
I was installed gccxml from the source provided by your installer and
all work fine.
I had got an only issue, because your installer script throws an
compilation error. To solve this, I had to uncompress the gcc-xml.zip
package provided by your installer, execute the CMake and, finally,
generate the VS2003 solution generated by CMake.
Thanks!
On 16 abr, 21:46, "Roman Yakovenko" <roman.yakove...@gmail.com> wrote:
> On 4/16/07, Monio <abela...@gmail.com> wrote:
>
>
>
> > I'm using the gccxml 0.6.0 windows installer version.
>
> I guess you didn't see the message in bold on this page(http://gccxml.org/HTML/Download.html)
>
> I suggest you to download "gccxml_installer.zip" fromhttp://language-binding.net/pygccxml/download.html#gcc-xmland install it.
I am glad it works fine to you now. Can you spend some time and
reproduce the error. I'd like to fix it.
Thanks
I paste the execution exit. The error's messages are in Spanish, so I
translate afet each one:
[ 6%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/
strerror.obj
strerror.c
c:\Documents and Settings\Administrador\Configuraci¢n local\Temp
\tmpouzlpx\gccxml-cvs\GCC\libiberty\strerror.c(474) : error C2372:
'_sys_errlist' : nueva definici¢n; distintos tipos de direccionamiento
indirecto
Translation:
'_sys_errlist': New definition of different indirect addressing types
C:\Archivos de programa\Microsoft Visual Studio .NET
2003\Vc7\include\stdlib.h(193) : vea la declaraci¢n de '_sys_errlist'
Translation:
see the '_sys_errlist' declaration
c:\Documents and Settings\Administrador\Configuraci¢n local\Temp
\tmpouzlpx\gccxml-cvs\GCC\libiberty\strerror.c(556) : error C2106:
'=' : el operando izquierdo debe ser valor L
Translation:
'=' : Left operand must be a l-value
c:\Documents and Settings\Administrador\Configuraci¢n local\Temp
\tmpouzlpx\gccxml-cvs\GCC\libiberty\strerror.c(701) : error C2373:
'strerrno' : nueva definici¢n; modificadores de tipo distintos
Translation:
strerrno: New definition; differents type modifiers
c:\Documents and Settings\Administrador\Configuracin local\Temp
\tmpouzlpx\gccxml-cvs\GCC\include\libiberty.h(174) : vea la declaraci
Translation:
see the declaration...
NMAKE : fatal error U1077: 'C:\ARCHIV~1\MICROS~1.NET\Vc7\bin\cl.exe' :
código devuelto '0x2'
English Explanation:
This is the error code returned by cl
Stop.
NMAKE : fatal error U1077: '"C:\Archivos de programa\Microsoft Visual
Studio .NET 2003\Vc7\bin\nmake.exe"' : código devuelto '0x2'
English Explanation:
This is the error code returned by nmake
Stop.
NMAKE : fatal error U1077: '"C:\Archivos de programa\Microsoft Visual
Studio .NET 2003\Vc7\bin\nmake.exe"' : código devuelto '0x2'
English Explanation:
This is the error code returned by nmake, too.
Stop.
executing command: "C:\Archivos de programa\Microsoft Visual
Studio .NET 2003\Vc7\bin\nmake.exe" /A all - done(2)
copying GCC_XML files to the install directory
copying GCC_XML files to the install directory - done
removing GCC_XML build directory
removing GCC_XML build directory - done
removing temporal directory "c:\docume~1\admini~1\config~1\temp
\tmpouzlpx"
Traceback (most recent call last):
File "C:\Documents and Settings\Administrador\Escritorio
\gccxml_installer\install_gccxml.py", line 94, in <module>
shutil.rmtree( working_dir )
File "C:\Python25\lib\shutil.py", line 169, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python25\lib\shutil.py", line 178, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "C:\Python25\lib\shutil.py", line 176, in rmtree
os.rmdir(path)
WindowsError: [Error 13] El proceso no tiene acceso al archivo porque
está siendo utilizado por otro proceso: 'c:\\docume~1\\admini~1\
\config~1\\temp\\tmpouzlpx\\gccxml-cvs-build'
Tranlation of the [Error 13]:
The process have not access to the file, because it's being used by
another process.
I hope these errors messages can help you to fix the problem.
Hi again!
I paste the execution exit. The error's messages are in Spanish, so I
translate afet each one:
On 19 abr, 20:15, "Roman Yakovenko" <roman.yakove...@gmail.com> wrote: