2008/12/2 Marcus Lindblom <[EMAIL PROTECTED]>: > Hi all, > > I'm trying to get OpenSG's python-bindings to work on Windows (and > contruibuting that back to the project), and trying to track down an > exception that get's thrown when running it's gen_bindings.py. (see attached > log.txt for output) > > The source for gen_bindings.py is here, for reference: > > https://realityforge.vrsource.org/trac/pyopensg/browser/branches/trunk_update/src/gen_bindings.py > > > From what I can see, the exception is thrown, as can be seen, in > read_gccxml_file in pygccxml/parser/source_reader.py. The generation of the > temp xml file (self.create_xml_file( ffname )) creates an empty file, which > then gets a syntax error when read back. > > As I'm rather new to py++ (being old on c++ and average on python) I don't > really know where to look when hunting for this bug. > > The PyOpenSG-devs have only used linux, and have maybe seen this before, > earlier, but can't recall what and when. They also have used a earlier > py++-version, but I'm using 1.0. I might be shooting myself in the foot with > that, but I hope not.
There were few changes here and there, but it should not be too dificcult to upgrade, The output contains the following command: ""C:\program files\bin\gccxml.exe" /IJ:\3rd\OpenSG\opensg2_trunk\build.win32.cl.9.0\instlinks\include /IC:\Program Files oost oost_1_36_0 -DBOOST_PYTHON_MAX_ARITY=21 -I"." -I"osg_module" -I"J:\3rd\OpenSG\opensg2_trunk\build.win32.cl.9.0\instlinks\include" -I"J:\3rd\OpenSG\opensg2_trunk\build.win32.cl.9.0\instlinks\include\OpenSG" -I"j:\3rd\boost\boost_1_36_0" -I"c:\dev\python26\include" "osg_module\osgmodule_mainheader.h" -fxml="c:\users\marcusl\appdata\local\temp\tmp1e92ik.xml"" Can you run the command, from cmd and check that file was created and contains data. If I remember right, PyOpenSG project uses some tricky configuration to suppress GCCXML warnings and\or errors. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig