Could not find install_name_tool 错误

CMake Error at /usr/local/Cellar/cmake/3.21.1/share/cmake/Modules/CMakeFindBinUtils.cmake:217 (message):
  Could not find install_name_tool, please check your installation.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.21.1/share/cmake/Modules/CMakeDetermineASMCompiler.cmake:197 (include)
  3rdparty/libpng/CMakeLists.txt:7 (project)

在编译OpneCv 3.4.2 的 ios framework 过程中发生的这个错误,属于opencv和cmake的一个bug。

原因:

OpenCv提供的 build_framework.py 脚本指定了 target device的版本最低到6.0

只编译 armv8和 x86的情况下,会使用高版本device才支持的neon指令集。neon引入后在cmake预编译过程会去加载 CMakeFindBinUtils.cmake,从而导致这个error。

解决:

修改 build_framework.py 将target device限制在9.0及以上版本

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值