Ask Your Question
0

Build OpenCV for iOS 5

asked Dec 1 '12

scravy gravatar image

I've already built OpenCV for iOS myself according to the tutorial in the documentation, but it works on iOS 6 only. The library fails with a runtime error

dyld: Symbol not found: _objc_setProperty_nonatomic

It does not work in both the iOS 5.0, iOS 5.1 simulator and on an iPhone 4 running iOS 5 so I highly suspect that the iOS build scripts build a version for iOS 6 only. Is that so? If (or if not) how can this be fixed?

I'm using XCode 4.5 (which has only Base SDK iOS 6 installed).

Preview: (hide)

Comments

I have very limited experience with Mac, but maybe you need to install the Base SDK iOS 5.0 as well?

Martin Peris gravatar imageMartin Peris (Dec 1 '12)edit
1

Yes, last version is for iOS 6 only. We know about this problem and we are trying to fix it.

1 answer

Sort by » oldest newest most voted
0

answered Dec 3 '12

gary gravatar image

updated Dec 3 '12

Do you absolutely need to build it? Have you tried just downloading the pre-build framework instead?

I too messed around with building it from source before I realized they already have a pre-built version of the framework available for iOS:

http://sourceforge.net/projects/opencvlibrary/files/opencv-ios/2.4.3/opencv2.framework.zip/download

I'm using it with the iOS 6 SDK on my iPhone 4 with iOS 5.1.1 on it.

Preview: (hide)

Question Tools

Stats

Asked: Dec 1 '12

Seen: 1,312 times

Last updated: Dec 03 '12