Multiple declarations error while I generate ogre code

19 views
Skip to first unread message

Monio

unread,
Apr 16, 2007, 2:03:00 PM4/16/07
to Python Ogre Developers
Hi everyone!

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

Roman Yakovenko

unread,
Apr 16, 2007, 2:15:58 PM4/16/07
to python-ogre...@googlegroups.com

Please provide information about Py++ pygccxml and gccxml.

Thanks

--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/

Monio

unread,
Apr 16, 2007, 3:32:39 PM4/16/07
to Python Ogre Developers
I'm using the gccxml 0.6.0 windows installer version. About the Py++
and pygccxml I'm using the pygccxml SVN version ( the pygccxml_dev
folder for pygccxml and the pypluplus_dev one for Py++).

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:

Roman Yakovenko

unread,
Apr 16, 2007, 3:46:48 PM4/16/07
to python-ogre...@googlegroups.com
On 4/16/07, Monio <abel...@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" 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.

Monio

unread,
Apr 17, 2007, 10:18:11 AM4/17/07
to Python Ogre Developers
Hi Roman!

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.

Roman Yakovenko

unread,
Apr 17, 2007, 1:28:59 PM4/17/07
to python-ogre...@googlegroups.com
n 4/17/07, Monio <abel...@gmail.com> wrote:
>
> Hi Roman!
>
> 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.

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

Monio

unread,
Apr 19, 2007, 12:40:32 PM4/19/07
to Python Ogre Developers
Hi again!

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.

Roman Yakovenko

unread,
Apr 19, 2007, 2:15:39 PM4/19/07
to python-ogre...@googlegroups.com
On 4/19/07, Monio <abel...@gmail.com> wrote:

Hi again!

I paste the execution exit. The error's messages are in Spanish, so I
translate afet each one:


Thanks! If I understand right, my build script failed to compile the source code.
For some reason I didn't checked for error. After this I continued the script as usual. When I tried to remove temporary directory I failed, because someone else uses one of the files\directories. Right?

Monio

unread,
Apr 22, 2007, 9:59:09 AM4/22/07
to Python Ogre Developers
Yes, it's right. The script fails when it try to remove the temporary
folder due to someone else is using it. I alsos think that the process
which is using the temporary directory is some process executed by the
script, because i've no process running in that directory.


On 19 abr, 20:15, "Roman Yakovenko" <roman.yakove...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages