- error: ‘::hypot’ has not been declared
在文件opencv/opencv/sources/modules/python/src2/cv2.cpp中添加头文件:
#include <math.H>
- error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
在文件opencv/opencv/sources/modules/python/src2/cv2.cpp的
char* str = PyString_AsString(obj);
改为:
char* str