Re: [ctypes-users] Problems with ctypes code generation (h2xml & xml2py)
Brought to you by:
theller
From: Thomas H. <th...@py...> - 2005-07-12 09:28:15
|
"Kuner Martin" <mar...@th...> writes: > All files related to the code generattion are in one directory, and > from that dir I started the tools h2xml and xml2py. There´s another > strange behaviour: I have to copy the header file to be analyzed into > the systems "temp" directory otherwise I´ll get an error message > during the h2xml process (see below). > > D:\Projects\1.i60\ctype>h2xml.py win32atapi.h -o win32atapi.xml -c > finding definitions ... > running: gccxml --preprocess -dM d:\temp\tmprm4rns.cpp > running: gccxml --preprocess -dM d:\temp\tmpsld_qv.cpp > d:/temp/tmpsld_qv.cpp:1:24: win32atapi.h: No such file or directory > 0 found > filtering definitions ... > 0 values, 0 aliases > finding definitions types ... > running: gccxml d:\temp\tmpayd53r.cpp -fxml=d:\temp\tmprv315z.xml > Compiler errors on these source lines: > '#include "win32atapi.h"' win32atapi.h: No such file or directory > CompilerError: gccxml returned 1 > D:\Projects\1.i60\ctype> > > So all files are in one dir, and I call the xml2py.py script from that directory. > Do I need the actions you proposed additionaly ? The current directory is in the search path, afaik, so I think you don't need to take these actions. For this error: > '#include "win32atapi.h"' win32atapi.h: No such file or directory gccxml by default searches include files in the C compiler's include directory. To find include files in the current directory, you must add '-I .' to the command line: h2xml.py -I. win32atapi.h -o win32atapi.xml -c plus the -l option for the dll. Thomas |