haidong-li / FaceComparison

This project include face-deteciton face-landmarks face-align and face-recgnition; It is a relatively complete project!人脸识别、人脸比对、人脸对齐、人脸特征,iPad项目
52 stars 9 forks source link

Undefined symbols for architecture arm64: #4

Open yazhouZhang opened 5 years ago

yazhouZhang commented 5 years ago

Undefined symbols for architecture arm64: "cv::String::deallocate()", referenced from: cv::String::~String() in HDFaceDetection(HDFaceDetection.o) cv::String::operator=(cv::String const&) in HDFaceDetection(HDFaceDetection.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

demo下载后,提示没有opencv2.framwwork。 然后去官网下载了个iOS 的版本,然后运行就出这个错误了 lipo -info opencv2 Architectures in the fat file: opencv2 are: armv7 armv7s i386 x86_64 arm64

lipo -info HDFaceDetection Architectures in the fat file: HDFaceDetection are: armv7 arm64 是opencv2.framework问题,还是你的HDFaceDetection问题,看起来和你封装库有关

haidong-li commented 5 years ago

Undefined symbols for architecture arm64: "cv::String::deallocate()", referenced from: cv::String::~String() in HDFaceDetection(HDFaceDetection.o) cv::String::operator=(cv::String const&) in HDFaceDetection(HDFaceDetection.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

demo下载后,提示没有opencv2.framwwork。 然后去官网下载了个iOS 的版本,然后运行就出这个错误了 lipo -info opencv2 Architectures in the fat file: opencv2 are: armv7 armv7s i386 x86_64 arm64

lipo -info HDFaceDetection Architectures in the fat file: HDFaceDetection are: armv7 arm64 是opencv2.framework问题,还是你的HDFaceDetection问题,看起来和你封装库有关

你找个release 版本的,是opencv 的问题,我用的3.3.0