Lexical or Preprocessor issue (Bug #2398)


Added by PS V over 12 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-09-28
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:ios
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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.

http://docs.opencv.org/trunk/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation

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.


log.rtf (13.7 kB) PS V, 2012-09-28 10:09 pm


Associated revisions

Revision 681a8c6e
Added by Roman Donchenko about 11 years ago

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

Also available in: Atom PDF