Ask Your Question
0

Motion detection. Undefined symbols for architecture arm64.

asked 2018-05-04 04:39:50 -0600

GurovOk gravatar image

I'll try to make motion detection on iOS (Test project). But when i use methods from video/tracking mobule (cvUpdateMotionHistory) - got compile error:

Undefined symbols for architecture arm64:
  "_cvUpdateMotionHistory", referenced from:
      update_mhi(_IplImage*, _IplImage*, int) in OpenCVWrapper.o
  "_cvCalcMotionGradient", referenced from:
      update_mhi(_IplImage*, _IplImage*, int) in OpenCVWrapper.o
  "_cvSegmentMotion", referenced from:
      update_mhi(_IplImage*, _IplImage*, int) in OpenCVWrapper.o
  "_cvCalcGlobalOrientation", referenced from:
      update_mhi(_IplImage*, _IplImage*, int) in OpenCVWrapper.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What's problem it can be?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2018-05-04 04:47:42 -0600

berak gravatar image

updated 2018-05-04 04:57:24 -0600

please do NOT use opencv's deprecated C-api, ever.

the code got moved to c++, and to opencv_contrib

so indeed, there is no implementation for this any more.

(headers could not be removed due to ABI compliance for some time, but they're gone in current master !)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-05-04 04:39:50 -0600

Seen: 774 times

Last updated: May 04 '18