Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while compiling iOS app with openCV framework on real device

With latest open cv framework i am unable to compile code on IOS device. i am facing following error.

Undefined symbols for architecture arm64: "_png_init_filter_functions_neon", referenced from: _png_read_filter_row in opencv2(pngrutil.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Same app is able to compile for simulator but not for ios devices. Can any one tell me why i am facing this problem. Thanks in advance.

like image 297
shahzaib Avatar asked Feb 11 '16 11:02

shahzaib


Video Answer


1 Answers

I had fixed this problem.The core of this problem is that we recompile some content in libpng,maybe it exits in other ios framework.Then it makes a conflict.Opncv 3.1 has 3rdparty in it's code.What you should do is find the lines 117-121 in libpng's pngpriv.h.Then just follow Iphone - device - linker error.

like image 65
MLB Avatar answered Sep 28 '22 13:09

MLB