Ask Your Question
0

opencv 2.4.9 Linker errors while working on IOS

asked 2012-12-26 00:10:35 -0600

dlim gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-12-27 15:10:31 -0600

prasad1250 gravatar image

Heyyy,

Instead of using CvVideoCamera you can make use of AVFoundationFramework+Opencv to achieve the same goal.

Please find the code in the below link.

https://github.com/aptogo/FaceTracker

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-12-26 00:10:35 -0600

Seen: 734 times

Last updated: Dec 27 '12