Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Link error with openCV in Xcode 6.1 (from cocoapods)

Hi there-

I can't compile an empty project with openCV using CocoaPods. I've installed openCV 2.4.10 with CocoaPods, then try to build and run the empty project. But I get link errors:

(null): "_jpeg_free_large", referenced from:
(null): _free_pool in opencv2(jmemmgr.o)
(null): "_jpeg_free_small", referenced from:
(null): _free_pool in opencv2(jmemmgr.o)
(null): _self_destruct in opencv2(jmemmgr.o)
(null): "_jpeg_get_large", referenced from:
(null): _alloc_large in opencv2(jmemmgr.o)
(null): _alloc_barray in opencv2(jmemmgr.o)
(null): "_jpeg_get_small", referenced from:
(null): _jinit_memory_mgr in opencv2(jmemmgr.o)
(null): _alloc_small in opencv2(jmemmgr.o)
(null): "_jpeg_mem_available", referenced from:
(null): _realize_virt_arrays in opencv2(jmemmgr.o)
(null): "_jpeg_mem_init", referenced from:
(null): _jinit_memory_mgr in opencv2(jmemmgr.o)
(null): "_jpeg_mem_term", referenced from:
(null): _jinit_memory_mgr in opencv2(jmemmgr.o)
(null): _self_destruct in opencv2(jmemmgr.o)
(null): "_jpeg_open_backing_store", referenced from:
(null): _realize_virt_arrays in opencv2(jmemmgr.o)
(null): Symbol(s) not found for architecture x86_64
(null): Linker command failed with exit code 1 (use -v to see invocation)

Does anybody know what to do? Which library is missing?

Cheers,