Ask Your Question
0

Build OpenCV for iOS 5

asked 2012-11-30 22:19:05 -0600

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).

edit retag flag offensive close merge delete

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 ( 2012-12-01 02:04:12 -0600 )edit
1

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

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-12-03 14:57:44 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-12-03 05:03:18 -0600

gary gravatar image

updated 2012-12-03 05:04:23 -0600

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-30 22:19:05 -0600

Seen: 1,198 times

Last updated: Dec 03 '12