On Thu, 2018-06-28 at 20:41 +0200, Miro Hrončok wrote:
sergiomb opencv
/builddir/build/BUILD/opencv-3.4.1/modules/python/src2/cv2.cpp:889:34:
error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
char* str = PyString_AsString(obj);
This problem is not about new gcc flags ? or about python rebuild ? now
that I'm reading if I just add const to the code [1] will fix this
build error ?
original code here [2]
[1]
const char* str = PyString_AsString(obj);
[2]
https://github.com/opencv/opencv/blob/master/modules/python/src2/cv2.cp
p#L919
Thanks,
--
Sérgio M. B.