iOS 导入OpenCV报错解决

1.exposure_compensate.hpp:66:12: Expected identifier
同样的报错在blender里,

在源代码处把NO改为 NO_EXPOSURE_COMPENSATOR 或 NO_EXPOSURE_COMPENSATOR = 0
改为enum { NO_EXPOSURE_COMPENSATOR = 0, GAIN, GAIN_BLOCKS };

2.'opencv2/highgui/cap_ios.h' file not found

cap_ios.h在3.2.0版中已经移到videoio文件夹下,把文件包含改为#import 

你可能感兴趣的:(iOS 导入OpenCV报错解决)