>Hello all,
>
>I still did not find the problem, but what I did found out is that the
>"AdvApp2Var_Wrapper.hxx" is the only header file giving me a problem
>at the moment. I will disable this module for the moment and see if I
>can build pythonOCC without any further problem.
>
>One more thing. If I isolate the following to statements in a single
>file (called test.hxx in my case):
>#include "/opt/occ/inc/AdvApp2Var_ApproxF2var.hxx"
>#include "/opt/occ/inc/AdvApp2Var_ApproxAFunc2Var.hxx"
>
>I get the error mentioned in my previous posts. However if I swap the
>two lines, thus
>
>#include "/opt/occ/inc/AdvApp2Var_ApproxAFunc2Var.hxx"
>#include "/opt/occ/inc/AdvApp2Var_ApproxF2var.hxx"
>
>It compiles without a problem. Neat huh...
>
>This is not the solution, because more header files in
>"AdvApp2Var_Wrapper.hxx" give the same problem and I am tired (and
>refuse to) check all the combinations of orderings.
>
>Stay tuned..
>
>Marco

Hello Marco,

It's not very surprising that the AdvApp2Var related code doesn't compile on 
your system. As you know, pythonOCC SWIG files are generated by a python script 
named 'SWIG_generator.py'. This generator uses pygccxml 
(http://www.language-binding.net/pygccxml/pygccxml.html) to parse OCC header 
files and create the wrapper. The generator behaviour is quite different on 
Windows on Linux.

On my Linux Ubuntu 8.04 system, this generator fails to parse AdvApp2Var_* 
headers and to generate the AdvApp2Var.i SWIG file. However, this file is part 
of the /SWIG_src_modular_linux_darwin'. How is it possible? The answer: I just 
copied/pasted the Windows AdvApp2Var.i file to this directory! And the 
compilation works on Ubuntu 8.04 (in a sense, it's a miracle, that's why I'm 
not surprised by the issue you mention).

I already noticed that the order of the #include is important (why?), on both 
Windows and Linux. I thus had to check many different combinations, for each 
OCC module to wrap. That was a very long and boring work.

I'll have a look on that point... Thanks for the feedback,

Cheers,

Thomas

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to