Thomas Paviot wrote: > Hi John, > > SWIG parameters are defined in the ./src/wrapper/environment.py sciprt. . . > > python setup.py build -f
Now I get this: j...@toolbench:/backups-650mb/pythonocc-read-only/src$ python setup.py build -f Building pythonOCC-0.5dev for linux2 Checking OCC Standard_Transient.hxx header ... found Checking OpenCASCADE libraries BinLPlugin BinPlugin BinXCAFPlugin FWOSPlugin PTKernel StdLPlugin StdPlugin TKAdvTools TKBin TKBinL TKBinTObj TKBinXCAF TKBO TKBool TKBRep TKCAF TKCDF TKernel TKFeat TKFillet TKG2d TKG3d TKGeomAlgo TKGeomBase TKHLR TKIGES TKLCAF TKMath TKMesh TKMeshVS TKNIS TKOffset TKOpenGl TKPCAF TKPLCAF TKPrim TKPShape TKService TKShapeSchema TKShHealing TKStdLSchema TKStdSchema TKSTEP TKSTEP209 TKSTEPAttr TKSTEPBase TKSTL TKTObj TKTopAlgo TKV2d TKV3d TKVRML TKXCAF TKXCAFSchema TKXDEIGES TKXDESTEP TKXMesh TKXml TKXmlL TKXmlTObj TKXmlXCAF TKXSBase XCAFPlugin XmlLPlugin XmlPlugin XmlXCAFPlugin ... found. Checking salomegeometry GEOMAlgo_Algo.hxx header ... found Checking salomegeometry GEOM library ... found > Linux related options are set up from lines 171 to 173: > > SWIG_OPTS = ['-O','-c++','-DHAVE_LIMITS_H','-DHAVE_CONFIG_H','-DCSFDB',\ > > '-w302,401,314,509,512','-DOCC_CONVERT_SIGNALS','-DLIN','-DLININTEL','-D_GNU_SOURCE=1',\ > '-outdir','%s'%SWIG_OUT_DIR] > > If you want to add a SWIG option, just add 'no-modern','-classic' and > '-nomodernargs' options to the SWIG_OPTS list: > SWIG_OPTS = > ['-O','-c++','-no-modern','-classic','nomodernargs','-DHAVE_LIMITS_H','-DHAVE_CONFIG_H','-DCSFDB',\ > > '-w302,401,314,509,512','-DOCC_CONVERT_SIGNALS','-DLIN','-DLININTEL','-D_GNU_SOURCE=1',\ > '-outdir','%s'%SWIG_OUT_DIR] > > However, you will have to *force* rebuild of the whole pythonocc package > by passing the -f args to the setup.py script: Checking salomesmesh SMESH_Mesh.hxx header ... found Checking boost/shared_ptr.hpp header ... found Checking salomesmesh SMESH library ... found Creating __init__.py script. __init__.py script created. running build running build_py . . . . running build_ext building 'OCC._Standard' extension swigging /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard.i to /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp swig -python -O -c++ -classic -nomodernargs -nofastunpack -DHAVE_LIMITS_H -DHAVE_CONFIG_H -DCSFDB -w302,401,314,509,512 -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -outdir /backups-650mb/pythonocc-read-only/src/build/swig_output_linux2_py26 -o /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard.i g++ -fno-strict-aliasing -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -D__PYTHONOCC_MAXINT__=2147483647 -I/usr/include/opencascade -I/backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin -I/usr/include/python2.6 -c /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp -o build/temp.linux-i686-2.6/backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.o -march=i686 cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:150:20: error: Python.h: No such file or directory /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:781: error: ‘PyObject’ was not declared in this scope /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:781: error: ‘str’ was not declared in this scope /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:782: error: expected ‘,’ or ‘;’ before ‘{’ token /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.cpp:805: error: expected initializer before ‘*’ token _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users