fixing compilation for Android
This commit is contained in:
parent
e4303dc96f
commit
9eded52ce5
@ -761,6 +761,8 @@ public class %(jc)s {
|
|||||||
print "Skipped property: [%s]" % name, p
|
print "Skipped property: [%s]" % name, p
|
||||||
|
|
||||||
self.add_class_code_stream(name, classinfo.base)
|
self.add_class_code_stream(name, classinfo.base)
|
||||||
|
if classinfo.base:
|
||||||
|
self.get_imports(name, classinfo.base)
|
||||||
|
|
||||||
|
|
||||||
def add_const(self, decl): # [ "const cname", val, [], [] ]
|
def add_const(self, decl): # [ "const cname", val, [], [] ]
|
||||||
@ -932,7 +934,9 @@ extern "C" {
|
|||||||
j_type = ''
|
j_type = ''
|
||||||
if ctype in type_dict:
|
if ctype in type_dict:
|
||||||
j_type = type_dict[ctype]['j_type']
|
j_type = type_dict[ctype]['j_type']
|
||||||
if j_type in ( "CvType", "Mat", "Point", "Point3", "Range", "Rect", "RotatedRect", "Scalar", "Size", "TermCriteria" ):
|
elif ctype in ("Algorithm"):
|
||||||
|
j_type = ctype
|
||||||
|
if j_type in ( "CvType", "Mat", "Point", "Point3", "Range", "Rect", "RotatedRect", "Scalar", "Size", "TermCriteria", "Algorithm" ):
|
||||||
imports.add("org.opencv.core." + j_type)
|
imports.add("org.opencv.core." + j_type)
|
||||||
if j_type == 'String':
|
if j_type == 'String':
|
||||||
imports.add("java.lang.String")
|
imports.add("java.lang.String")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user