Hi Marco,

Hmm, I don't really understand why I have this working and you don't. This 
doesn't look like a 64-bit issue, and I think that's the only difference 
between 
us. How did you install OCC? Is it patched, or the original?

When I've used the setup.py script, it hasn't rebuilt the SWIG files by 
default. 
It makes the build much faster, and removes a stage of uncertainty. Could you 
tell us exactly the step you've taken to build?  Mine have been:

1) Clean checkout from SVN (I currently have r158)
2) Edit src/environment.py to set OCC_INC, OCC_LIB (lines 61 and 62)
   OCC_INC=/opt/occ/inc OCC_LIB=/opt/occ/lib in your case I think?
3) python setup.py build
4) su
5) python setup.py install
6) source /usr/local/occ63/env_DRAW.sh
7) python Tools/InteractiveViewer/InteractiveViewer.py

You may need to su before (3) rather than (4). Did you deliberately force 
re-swigging? Are you sure you're not building from a half-built set of source 
files? Did you use a "svn co" or "svn update"? It may be worth deleting your 
local set and doing a fresh checkout. Does $CASROOT point to the right place?

In case you haven't guessed, I'm stabbing in the dark now, I'm not sure what's 
wrong. But it must be something simple.

Arthur


M. Nawijn wrote:
> Hello Thomas,
> 
> I did a fresh checkout and then used the setup.py procedure. At least
> one thing is re-assuring. It fails consistently
> 
> 
> 
> swigging 
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl.i
> to 
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c
> swig -python -modern -fcompact -c++ -DHAVE_LIMITS_H -DHAVE_CONFIG_H
> -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -outdir
> /home/nawijn/scratch/pythonOCC/src/OCC -o
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl.i
> g++ -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC
> -fPIC -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DCSFDB -DOCC_CONVERT_SIGNALS
> -DLIN -DLININTEL -D_GNU_SOURCE=1 -I/opt/occ/inc
> -I/usr/include/python2.5 -c
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c
> -o 
> build/temp.linux-x86_64-2.5/home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.o
> -O0
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c:
> In constructor ‘swig::PyObject_ptr::PyObject_ptr(PyObject*, bool)’:
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c:2958:
> warning: suggest explicit braces to avoid ambiguous ‘else’
> In file included from
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c:3502:
> /opt/occ/inc/Interface_Check.hxx: At global scope:
> /opt/occ/inc/Interface_Check.hxx:184: error: expected unqualified-id
> before ‘)’ token
> In file included from
> /opt/occ/inc/MoniTool_DataMapNodeOfDataMapOfShapeTransient.hxx:34,
>                  from
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c:3576:
> /opt/occ/inc/TopoDS_Shape.hxx:158: error: expected unqualified-id
> before numeric constant
> /opt/occ/inc/TopoDS_Shape.hxx:161: error: expected unqualified-id
> before numeric constant
> In file included from /opt/occ/inc/TopoDS_Shape.lxx:7,
>                  from /opt/occ/inc/TopoDS_Shape.hxx:277,
>                  from
> /opt/occ/inc/MoniTool_DataMapNodeOfDataMapOfShapeTransient.hxx:34,
>                  from
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c:3576:
> /opt/occ/inc/TopoDS_TShape.hxx:119: error: expected unqualified-id
> before numeric constant
> /opt/occ/inc/TopoDS_TShape.hxx:122: error: expected unqualified-id
> before numeric constant
> In file included from /opt/occ/inc/TopoDS_Shape.hxx:277,
>                  from
> /opt/occ/inc/MoniTool_DataMapNodeOfDataMapOfShapeTransient.hxx:34,
>                  from
> /home/nawijn/scratch/pythonOCC/src/SWIG_src_modular_linux_darwin/STEPControl_wrap.c:3576:
> /opt/occ/inc/TopoDS_Shape.lxx:239: error: expected unqualified-id
> before numeric constant
> /opt/occ/inc/TopoDS_Shape.lxx:249: error: expected unqualified-id
> before numeric constant
> /opt/occ/inc/InterfaceGraphic_XWD.hxx:30: warning:
> ‘InterfaceGraphic_swaptest’ defined but not used
> error: command 'g++' failed with exit status 1
> 
> 
> 
> Any suggestions?
> 
> Marco


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

Reply via email to