DRAFT [thud] opencv_3.2: Patch "invalid conversion from 'const char*' to 'char*'" error

XXX When building with [thud], gcc has -fpermissive.
This commit is contained in:
Herb Kuta 2019-06-12 11:31:18 -07:00
parent 9f87b05f9a
commit 240fdfdd3e
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff --git modules/python/src2/cv2.cpp modules/python/src2/cv2.cpp
index e69e933375..11adc342cb 100644
--- a/modules/python/src2/cv2.cpp
+++ b/modules/python/src2/cv2.cpp
@@ -727,7 +727,7 @@ bool pyopencv_to(PyObject* obj, String& value, const char* name)
(void)name;
if(!obj || obj == Py_None)
return true;
- char* str = PyString_AsString(obj);
+ const char* str = PyString_AsString(obj);
if(!str)
return false;
value = String(str);

View File

@ -32,6 +32,7 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \
file://0001-Make-opencv-ts-create-share-library-intead-of-static.patch \
file://0001-To-fix-errors-as-following.patch \
file://0001-tracking-make-opencv_dnn-dependancy-optional.patch;patchdir=../contrib/ \
file://fixmissingconst.patch \
"
PV = "3.2+git${SRCPV}"