Menu

#1214 error: too few arguments to function 'PyObject* Swig_python:

closed-invalid
python (260)
5
2012-08-16
2011-12-18
Anonymous
No

Compiling freecad-0.11.4422 succeeds with swig-1.3.40 but fails with swig-2.0.4. The error message follows; the full build log is attached. Please indicate what other information would be useful.

Note that this installation of swig-2.0.4 already includes the patch of svn-commit 12814, otherwise compiling pivy (dependency of freecad) would be impossible with swig-2.

(FreeCAD still fails at the linking stage, but that is a different issue not related to swig.)

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -DHAVE_SWIG=1 -D_OCC64 -g -D_DEBUG -D_REENTRANT -Wall -I../../src -I../../src -I/usr/include/python2.7 -I/usr/include -I/usr/include -I/usr/include/qt4 -I/usr/include/qt4/QtCore -march=native -O2 -pipe -ggdb -fpermissive -Wno-deprecated -frtti -c swigpyrun.cpp -fPIC -DPIC -o .libs/libFreeCADBase_la-swigpyrun.o
In file included from swigpyrun.cpp:30:0:
swigpyrun.inl: In function 'int Swig_python::createSWIGPointerObj_T(const char*, void*, PyObject**, int)':
swigpyrun.inl:35:55: warning: invalid conversion from 'void*' to 'PyObject* {aka _object*}' [-fpermissive]
swigpyrun.inl:35:55: warning: invalid conversion from 'int' to 'Swig_python::swig_type_info*' [-fpermissive]
swigpyrun.inl:35:55: error: too few arguments to function 'PyObject* Swig_python::SWIG_Python_NewPointerObj(PyObject*, void*, Swig_python::swig_type_info*, int)'
./swigpyrun.h:2536:1: note: declared here
make[4]: *** [libFreeCADBase_la-swigpyrun.lo] Fehler 1

Discussion

  • William Fulton

    William Fulton - 2012-08-16
    • assigned_to: nobody --> wsfulton
    • status: open --> closed-invalid
     
  • William Fulton

    William Fulton - 2012-08-16

    It looks like you are using an old swigpyrun.h You need to update swigpyrun.h each time you upgrade SWIG, which is easy, see http://www.swig.org/Doc2.0/Modules.html#Modules_external_run_time. Please re-open if not resolved.

     

Log in to post a comment.