Hi John,

I'm not sure the -classic and/or -nomodernargs can be safely used with SWIG
and python2.6.

Thomas

2010/5/18 John Griessen <j...@industromatic.com>

> John Griessen wrote:
> > I'm still unable to compile with python2.6, but python2.5 goes right past
> this problem.
>
> Any ideas?
>
> With python2.6 doing
> python setup.py build -f
> I get this:
> .
> > .
> > .
> > 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
>
> When I use python2.5  all the references to Python.h and PyObject are
> found.
>
> For instance:  after many many lines of compile output:
>
> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/TColStd_wrap.cpp:
> In function ‘PyObject*
> _wrap_new_Handle_TColStd_HArray1OfExtendedString(PyObject*, PyObject*)’:
>
> PyObject is found and used though with python2.6 it is not found and errors
> out.
>
>
>
> John
>
>
>
> _______________________________________________
> 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

Reply via email to