OpenCV 2.4.13 iOS background_segm.hpp ' list ' file not found

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.