Lexical or Preprocessor issue (Bug #2398)
Description
Hi Open CV Team,
Following very amazing library Open CV, but I feel difficult to integrate open cv in iOS as I followed everything wrote up in the documentation, still no success of successfully linking open cv with xcode.
I added opencv2.framework into the xcode, I trapped into two issues.
1. When I compile the xcode project to IOS Devices, link error throws out me lexical or preprocessor issue ext/atomicity.h not found.
2. When I use the code " cv::Mat cvMat(rows, cols, CV_8UC1); ", throws me a lot of errors, please see attached files.
Kindly guess it out and show me some light to travel.
Associated revisions
Merge pull request #2398 from nghiaho12:integral_doc
History
Updated by Vadim Pisarevsky over 12 years ago
Download sample ios apps from http://code.opencv.org/svn/gsoc2012/ios/trunk/; try to build them. If they build fine, try to place #include "opencv2/opencv.hpp" in exactly the same way as in those applications. We tried multiple locations for such include and only few of them worked fine. Also, do not forget to change type of your source files to Objective C++ (and the source files containing OpenCV calls are better to be have .mm extension).
Also, try the latest OpenCV from git repository, not OpenCV 2.4.2
If the above does not help, please, reopen the ticket and provide more information about your build environment (iOS SDK version, Xcode version, MacOSX version).
- Category set to ios
- Status changed from Open to Cancelled
- Assignee set to Vadim Pisarevsky
- Target version set to 2.4.3
Updated by Bjørn Egil Hansen over 12 years ago
Hi,
Try setting "libstdc++ (GNU C++ standard library)" for the C++ Standard Library build setting for your target:- In Project navigator, click project node
- In settings window, click your target and select build settings tab
- Search for C++ Standard Library and change the setting
Cheers,
Bjørn Egil