it failed ....
any idea ?
['TCollection', 'Quantity', 'Viewer', 'TColStd', 'Aspect']
INFO Parsing source file
"G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_src_modular_win32\NIS_Wrapper.hxx"
...
INFO gccxml cmd: ""C:\Program Files\gccxml 0.9\bin\gccxml.exe" -I"."
-I"C:\OpenCASCADE6.3.0\ros\inc"
-I"G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_src
_modular_win32" -I"C:\OpenCASCADE6.3.0\ros\inc" -D"WNT"
-D"__SWIG_GENERATION__" -D"CSFDB" -D"WIN32" -D"_WINDOWS"
"G:\SR\Python_Dev\pythonOCC-wo0.2\s
rc\SWIG_src_modular_win32\NIS_Wrapper.hxx"
-fxml="c:\docume~1\sramag~1.jas\locals~1\temp\tmpzbfliw.xml""
Traceback (most recent call last):
File "setup.py", line 204, in <module>
builder = SWIG_generator.ModularBuilder(module, GENERATE_DOC)
File "G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_generator.py", line
218, in __init__
self.GenerateSWIGSourceFile()
File "G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_generator.py", line
261, in GenerateSWIGSourceFile
self.BuildModule()
File "G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_generator.py", line
864, in BuildModule
include_paths=[self.INC_PATH, environment.SWIG_FILES_PATH_MODULAR,
environment.OCC_INC])
File
"c:\python26\lib\site-packages\pyplusplus\module_builder\builder.py",
line 92, in __init__
, indexing_suite_version)
File
"c:\python26\lib\site-packages\pyplusplus\module_builder\builder.py",
line 146, in __parse_declarations
decls = reader.read_files( files, compilation_mode )
File
"c:\python26\lib\site-packages\pygccxml\parser\project_reader.py", line
225, in read_files
return self.__parse_file_by_file(files)
File
"c:\python26\lib\site-packages\pygccxml\parser\project_reader.py", line
250, in __parse_file_by_file
decls = reader.read_file( header )
File "c:\python26\lib\site-packages\pygccxml\parser\source_reader.py",
line 197, in read_file
return self.read_gccxml_file( source_file )
File "c:\python26\lib\site-packages\pygccxml\parser\source_reader.py",
line 224, in read_gccxml_file
raise error
pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured
while running GCC-XML: In file included from
G:\SR\Python_Dev\pythonOCC-wo0.2\src\
SWIG_src_modular_win32\NIS_Wrapper.hxx:8:
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:40: error: use of enum
'DrawType' without previous declaration
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:40: error: expected
primary-expression before 'unsigned'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:40: error: expected ';'
before 'unsigned'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:85: error: expected ',' or
'...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:85: error: ISO C++ forbids
declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:87: error: expected ',' or
'...' before 'theType1'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:88: error: ISO C++ forbids
declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:88: error: 'void
NIS_Drawer::SetUpdated(int) const' cannot be overloaded
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:85: error: with 'void
NIS_Drawer::SetUpdated(int) const'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:90: error: expected ',' or
'...' before 'theType1'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:92: error: ISO C++ forbids
declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:92: error: 'void
NIS_Drawer::SetUpdated(int) const' cannot be overloaded
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:85: error: with 'void
NIS_Drawer::SetUpdated(int) const'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:136: error: expected ',' or
'...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:137: error: ISO C++ forbids
declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:143: error: expected ',' or
'...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:144: error: ISO C++ forbids
declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:150: error: expected ',' or
'...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:151: error: ISO C++ forbids
declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:153: error: expected ',' or
'...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:154: error: ISO C++ forbids
declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:172: error: expected
unqualified-id before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Drawer.hxx:172: error: expected ',' or
'...' before 'theType'
In file included from
G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_src_modular_win32\NIS_Wrapper.hxx:9:
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveContext.hxx:413: error:
expected unqualified-id before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveContext.hxx:413: error:
expected ',' or '...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveContext.hxx: In member
function 'const TColStd_PackedMapOfInteger&
NIS_InteractiveContext::GetSelected()':
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveContext.hxx:382: error:
'Draw_Hilighted' is not a member of 'NIS_Drawer'
In file included from
G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_src_modular_win32\NIS_Wrapper.hxx:10:
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveObject.hxx: At global scope:
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveObject.hxx:92: error:
'DrawType' in class 'NIS_Drawer' does not name a type
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveObject.hxx:271: error:
'DrawType' in class 'NIS_Drawer' does not name a type
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveObject.hxx: In constructor
'NIS_InteractiveObject::NIS_InteractiveObject()':
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveObject.hxx:70: error: class
'NIS_InteractiveObject' does not have any field named 'myDrawType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveObject.hxx:70: error:
'Draw_Normal' is not a member of 'NIS_Drawer'
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveObject.hxx: In member
function 'void NIS_InteractiveObject::setDrawerUpdate() const':
C:\OpenCASCADE6.3.0\ros\inc\NIS_InteractiveObject.hxx:246: error:
'myDrawType' was not declared in this scope
In file included from
G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_src_modular_win32\NIS_Wrapper.hxx:14:
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx: At global scope:
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx:90: error: expected
',' or '...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx:91: error: ISO C++
forbids declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx:96: error: expected
',' or '...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx:97: error: ISO C++
forbids declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx:103: error: expected
',' or '...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx:104: error: ISO C++
forbids declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx:113: error: expected
',' or '...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_SurfaceDrawer.hxx:114: error: ISO C++
forbids declaration of 'DrawType' with no type
In file included from
G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_src_modular_win32\NIS_Wrapper.hxx:15:
C:\OpenCASCADE6.3.0\ros\inc\NIS_Triangulated.hxx:280: error: expected
unqualified-id before 'theDrawType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_Triangulated.hxx:280: error: expected
',' or '...' before 'theDrawType'
In file included from
G:\SR\Python_Dev\pythonOCC-wo0.2\src\SWIG_src_modular_win32\NIS_Wrapper.hxx:16:
C:\OpenCASCADE6.3.0\ros\inc\NIS_TriangulatedDrawer.hxx:42: error:
expected ',' or '...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_TriangulatedDrawer.hxx:43: error: ISO
C++ forbids declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_TriangulatedDrawer.hxx:48: error:
expected ',' or '...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_TriangulatedDrawer.hxx:49: error: ISO
C++ forbids declaration of 'DrawType' with no type
C:\OpenCASCADE6.3.0\ros\inc\NIS_TriangulatedDrawer.hxx:55: error:
expected ',' or '...' before 'theType'
C:\OpenCASCADE6.3.0\ros\inc\NIS_TriangulatedDrawer.hxx:56: error: ISO
C++ forbids declaration of 'DrawType' with no type
Sébastien Ramage
Service Informatique
sram...@poifindus.com
04 74 06 45 39
Ets JANIN
115, rue de la république
69823 Belleville Cedex
Tel : 04 74 06 45 20
Fax : 04 74 66 11 76
Sébastien Ramage a écrit :
Hi !
So I install Microsoft Visual c++ express 2008 and the last swig
1.3.39 and start the compilation using this :
c:\python26\python setup.py build -cmsvc
And I got an error :
C:\OpenCASCADE6.3.0\ros\inc\Standard_math.hxx(28) : error C2375:
'acosh' : redéfinition ; liaison différente
c:\python26\include\pymath.h(26) : voir la déclaration de 'acosh'
C:\OpenCASCADE6.3.0\ros\inc\Standard_math.hxx(29) : error C2375:
'asinh' : redéfinition ; liaison différente
c:\python26\include\pymath.h(30) : voir la déclaration de 'asinh'
C:\OpenCASCADE6.3.0\ros\inc\Standard_math.hxx(30) : error C2375:
'atanh' : redéfinition ; liaison différente
c:\python26\include\pymath.h(34) : voir la déclaration de 'atanh'
C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(308) : error C3861:
'asinh' : identificateur introuvable
error: command '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.exe"' failed with exit status 2
Maybe I need to regenerate the swig files. I install pygccxml 1.0 and
py++ 1.0 and gccxml 0.9 (found here
http://sourceforge.net/projects/pygccxml/files/ )
and do this :
c:\python26\python setup.py build -cmsvc -generate_swig
it ask me to modify Standard_Real.hxx header file
and after a long time it said
C:\OpenCASCADE6.3.0\ros\inc\TopOpeBRep_tools.hxx:10:34: error:
TopOpeBRepDS_tools.hxx: No such file or directory
so I create a empty file TopOpeBRepDS_tools.hxx and restart
c:\python26\python setup.py build -cmsvc -generate_swig
at this time, it's in progress...
Sébastien Ramage
Service Informatique
sram...@poifindus.com
04 74 06 45 39
Ets JANIN
115, rue de la république
69823 Belleville Cedex
Tel : 04 74 06 45 20
Fax : 04 74 66 11 76
Sébastien Ramage a écrit :
Juste for information, the python 2.6 documentation say that
Microsoft Visual Studio 2008 (version 9.0) is needed not 2003 version.
Sébastien Ramage
Service Informatique
sram...@poifindus.com
04 74 06 45 39
Ets JANIN
115, rue de la république
69823 Belleville Cedex
Tel : 04 74 06 45 20
Fax : 04 74 66 11 76
Sébastien Ramage a écrit :
hum ok,
I will try to compile it tomorrow and if it works (I hope) I will
keep the binary available.
Thank you
Sébastien Ramage
Service Informatique
sram...@poifindus.com
04 74 06 45 39
Ets JANIN
115, rue de la république
69823 Belleville Cedex
Tel : 04 74 06 45 20
Fax : 04 74 66 11 76
Thomas Paviot a écrit :
Hi Sébastien,
The binary pythonOCC distribution for Windows is currently only
available for Python2.5. However, I successfully compiled pythonOCC
under Ubuntu Linux 9.04 with Python2.6. Moving from 2.5 to 2.6 on
Windows is then only a compilation work to achieve, and everything
*should be* fine although it's not yet been tested.
If you want to compile pythonOCC by yourself, you need Microsoft
Visual Studio 2003 or higher, SWIG 1.3.36 or higher, OpenCASCADE
6.3.0 and Pythonof course. Then read the dedicated page on the wiki.
A new release is planned for the next week. Please let me know if
you succeed otherwise I will do it.
Best Regards,
Thomas
2009/7/27 Sébastien Ramage <sram...@poifindus.com
<mailto:sram...@poifindus.com>>
Hi !
I would like to use PythonOCC but I have recently moved to
Python 2.6.
where can I find PythonOCC for Python 2.6 somewhere ?
I'm working under Windows XP.
If it doesn't exists yet, how can I compile PythonOCC with
python 2.6 ?
(for free naturally)
Thank you
--
Sébastien Ramage
Service Informatique
sram...@poifindus.com <mailto:sram...@poifindus.com>
04 74 06 45 39
Ets JANIN
115, rue de la république
69823 Belleville Cedex
Tel : 04 74 06 45 20
Fax : 04 74 66 11 76
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org <mailto:Pythonocc-users@gna.org>
https://mail.gna.org/listinfo/pythonocc-users
------------------------------------------------------------------------
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users
------------------------------------------------------------------------
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users
------------------------------------------------------------------------
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users
------------------------------------------------------------------------
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users