Recently downloaded the latest version of the OPENCV framework.
Import into the project, compile. And then there's a problem.
/OPENCV2.FRAMEWORK/HEADERS/VIDEO/BACKGROUND_SEGM.HPP:'list' File not found
The list in the #include does not have .....
Google took a lap and didn't find a good solution.
And then I had a good memory of it. List seems to be a standard library for C + +.
And then just try it a little bit.
#ifdef __cplusplus #endif
Then the compilation is passed. I'm going to laugh a while.
Specific code Changes
#ifndef __opencv_background_segm_hpp__ #define __opencv_background_segm_hpp__"opencv2/core/core.hpp" <list>namespace cv{... } #endif #endif
Finally, remember to add the Libc++.tdb file to the project.
(Add Libc++.dylib If it's an older version)
Well, compile through. It's time to do a project.
OpenCV 2.4.13 iOS background_segm.hpp ' list ' file not found