Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods OpenCV 2.4.10 Linker Error

Tags:

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.

like image 638
Sebastian Cichosz Avatar asked Feb 04 '15 21:02

Sebastian Cichosz


1 Answers

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' 
like image 122
Zeeshan Avatar answered Sep 21 '22 13:09

Zeeshan