gccxml "line too long" error ...

13 views
Skip to first unread message

futnuh

unread,
Jun 21, 2007, 1:33:37 AM6/21/07
to Python Ogre Developers
In building our custom wrapper, I'm seeing an error with gccxml

INFO gccxml cmd: ""C:\Packages\python-ogre\gccxml\bin\release
\gccxml.exe" -I"." -I"C:\cygwin\home\darran\trunk\projects\0709-ANUGA
\newviewer\include" -I"C:\cygwin\home\darran\trunk\projects\0709-ANUGA
\python-ogre\generated\anuga" -I"c:/Packages/python-ogre/ogrenew/
OgreMain/include" -D"OGRE_NONCLIENT_BUILD" -D"OGRE_GCC_VISIBILITY"
"anuga_include_all.h" -fxml="C:\cygwin\home\darran\trunk\projects\0709-
ANUGA\python-ogre\generated\anuga\anuga_include_all.h.xml""
[...]
pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured
while running GCC-XML: Could not determine GCCXML_EXECUTABLE setting.

Contrary to what it says above, I've verified that the actual problem
is that "The input line is too long". This is true when the above
command is entered manually at the DOS prompt or returned to pygccxml
via its call to os.popen4(cmd)[1].readline().

Any ideas on how to get around this?

Roman Yakovenko

unread,
Jun 21, 2007, 1:47:39 AM6/21/07
to python-ogre...@googlegroups.com

Yes. It looks like your command line is really long. There are few
solutions to the problem:

1. I am going to modify pygccxml to use Win32 API, to use short paths,
when it builds command line. This will take some time to implement and
test.

2. To move your project upper

3. To create new drive, which points to some directory, for example
C:\cygwin\home\darran\trunk\projects\0709-ANUGA . In this case you
will have to modify configuration files only.

HTH

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

futnuh

unread,
Jun 21, 2007, 3:49:40 AM6/21/07
to Python Ogre Developers

Thanks Roman, I moved things up in the tree and the "line too long"
error disappeared.

A gccxml question though, if I am trying to generate a VC8 wrapper, is
it necessary to use a gccxml binary compiled under VC8? My initial
thought was "surely no" since you're only using gccxml to create a
parsable tree, not to generate actual C++ code. And then I started to
wonder ...


Roman Yakovenko

unread,
Jun 21, 2007, 3:55:26 AM6/21/07
to python-ogre...@googlegroups.com
On 6/21/07, futnuh <dar...@edmstudio.com> wrote:
>
>
> Thanks Roman, I moved things up in the tree and the "line too long"
> error disappeared.

Good

> A gccxml question though, if I am trying to generate a VC8 wrapper, is
> it necessary to use a gccxml binary compiled under VC8? My initial
> thought was "surely no" since you're only using gccxml to create a
> parsable tree, not to generate actual C++ code. And then I started to
> wonder ...

Definitely not. In our case it is even not important how gccxml is
configured( to work against MSVC 7.1 headers or MSVC 8.0 ). both of
them should be fine.

Reply all
Reply to author
Forward
0 new messages