Ask Your Question

dlim's profile - activity

2012-12-26 00:10:35 -0600 asked a question opencv 2.4.9 Linker errors while working on IOS

I am new to both opencv and ios development. I was trying to make a simple project in the Tutorial. (http://docs.opencv.org/trunk/doc/tutorials/ios/video_processing/video_processing.html#opencviosvideoprocessing)

I have followed the installation instruction and the video processing tutorial. I have changed the viewController .m file to .mm file, imported all the frameworks shown on the tutorial.

However following error appears

Undefined symbols for architecture armv7: "_CMSampleBufferGetImageBuffer", referenced from: -[CvVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_ios_video_camera.o) "_CMTimeMake", referenced from: -[CvVideoCamera createVideoDataOutput] in opencv2(cap_ios_video_camera.o) "_CMSampleBufferGetPresentationTimeStamp", referenced from: -[CvVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] in opencv2(cap_ios_video_camera.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

How can I fix this?