I'm trying to build a simple project using OpenCV 2.4.10 but I get a bunch of errors like this:
Undefined symbols for architecture x86_64: "_jpeg_free_large", referenced from: _free_pool in opencv2(jmemmgr.o) "_jpeg_free_small", referenced from: _free_pool in opencv2(jmemmgr.o) _self_destruct in opencv2(jmemmgr.o)
Here is ViewController.m
#import "ViewController.h" #import <opencv2/opencv.hpp> @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; cv::Mat greyMat; }
Podfile
platform :ios, '8.1' pod 'OpenCV', '2.4.10'
Project builds just fine when I use version 2.4.9.1 or 2.4.9.
I was also able to build this project with framework file downloaded from URL which I found in podspec 2.4.10.
Bug 4052 is still unsolved for 2.4.10 and there is no pod for 2.4.11 so you have to use 2.4.9 which IMO is stable.
If your using pods
pod 'OpenCV', '2.4.9'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With