简体   繁体   English

在iOS上使用cv :: minMaxLoc()时发生编译错误

[英]compile error when using cv::minMaxLoc() on iOS

I am using OpenCV on iOS, the project works fine and can detect harris corners but when I try to use the following line I get a compile error: 我在iOS上使用OpenCV,该项目运行正常并且可以检测到harris角落,但是当我尝试使用以下行时,出现编译错误:

cv::minMaxLoc(cornerStrength,&minStrength,&maxStrength);

The error from xcode is: xcode中的错误是:

Undefined symbols for architecture armv7: "___udivmodsi4", referenced from: cv::minMaxIdx(cv::_InputArray const&, double*, double*, int*, int*, cv::_InputArray const&)in OpenCV(stat.o) ld: symbol(s) not found for architecture armv7 collect2: ld returned 1 exit status 架构armv7的未定义符号:“ ___ udivmodsi4”,引用自:OpenCV(stat.o)ld中的cv :: minMaxIdx(cv :: _ InputArray const&,double *,double *,int *,int *,cv :: _ InputArray const&) :找不到架构armv7 collect2的符号:ld返回1退出状态

Any advice much appreciated as I cant find a way past this at the moment. 任何建议都值得赞赏,因为我目前无法找到解决方法。

Cheers, Fraser 干杯,弗雷泽

如果您使用的是LLVM GCC 4.x,请尝试将编译器更改为Apple LLVM 3.x,这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM