Ask Your Question
2

Link error with openCV in Xcode 6.1 (from cocoapods)

asked 2015-02-03 10:14:07 -0600

eidole gravatar image

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,

edit retag flag offensive close merge delete

Comments

found a solution yet?

MrJre gravatar imageMrJre ( 2015-02-26 09:10:41 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-04-14 01:46:10 -0600

eidole gravatar image

updated 2015-04-14 02:11:14 -0600

Yes and no, I compiled opencv myself from source (3.0.0 beta). The library has been installed in /usr/local/ and works now. The cocoa pods version seems broken.

edit flag offensive delete link more

Comments

it seems that the cocoa pods version has a dependency on another JPEG library than the one installed or not on your system. Building it from scratch will make it disable JPEG support or use the correct library that is installed on your system.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-04-14 03:44:36 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-03 10:14:07 -0600

Seen: 897 times

Last updated: Apr 14 '15