« Return to Thread: cvs python wrapper compilation error

Re: cvs python wrapper compilation error

by Nils Hasler-2 :: Rate this Message:

Reply to Author | View in Thread

hi pat,

On Saturday 17 May 2008 09:06, puredata@... wrote:
> _cv.cpp: In function 'int SWIG_Python_ConvertFunctionPtr(PyObject*, void**,
> swig_type_info*)':
> _cv.cpp:2051: error: invalid conversion from 'const char*' to 'char*'
> _cv.cpp: In function 'void SWIG_Python_FixMethods(PyMethodDef*,
> swig_const_info*, swig_type_info**, swig_type_info**)':
> _cv.cpp:107187: error: invalid conversion from 'const char*' to 'char*'
> make[4]: *** [_cv_la-_cv.lo] Error 1

a guy was complaining about something like this a few days ago on IRC. i think
for him rerunning swig solved the problem.

that is you need to

./configure --with-swig

in addition to whatever other options you used. you may have to

make clean

after the configure before make runs smoothly again.

cheers,
nils

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opencvlibrary-devel mailing list
Opencvlibrary-devel@...
https://lists.sourceforge.net/lists/listinfo/opencvlibrary-devel

 « Return to Thread: cvs python wrapper compilation error