ios - 添加 OpenCV-Dynamic cocoapod 的问题

标签 ios opencv terminal cocoapods

我正在尝试将框架 OpenCV-Dynamic 添加到我的 Xcode 项目中。我无法手动安装它,因为它是另一个 cocoapod 的依赖项。当我运行 pod install 时,我收到一条巨大的错误消息。

这是它的第一部分:

  [!] /bin/bash -c 
set -e
git submodule init
git submodule update
python opencv/platforms/ios/build_framework.py ios --dynamic
cp -a ./ios/opencv2.framework ./opencv2.framework

Submodule path 'opencv': checked out 'a8aff6f64330a0ab2c9d71033412af892dd9b710'

-- Setting up iPhoneOS toolchain for IOS_ARCH='armv7;armv7s;arm64'
-- iPhoneOS toolchain loaded
-- Setting up iPhoneOS toolchain for IOS_ARCH='armv7;armv7s;arm64'
-- iPhoneOS toolchain loaded
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- The C compiler identification is AppleClang 9.0.0.9000039
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - failed
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Failed
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Failed
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Failed
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Failed
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Failed
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Failed
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Failed
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Failed
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Failed
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Failed
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Failed
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Failed
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Failed

我不知道出了什么问题。我已经运行了 Xcode-select --install 并安装了工具。

可能是什么问题?

最佳答案

您是否按照说明安装了 cmake?

“为了正确构建 pod,请通过运行 cmake 命令确保 cmake 在命令行中可用。您可以使用 Homebrew 安装它:

-> brew 安装 cmake

关于ios - 添加 OpenCV-Dynamic cocoapod 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48264817/

相关文章:

ios - 适用于 ios 的带视差背景的水平滚动

ios - 自调整单元格对我不起作用

OpenCV 图像加载问题

linux - 根据输入视频分辨率使用 ffmpeg 自动调整视频大小

c++ - 错误 : linker command failed with exit code 1 (use -v to see invocation) : on Macbook

ios - 即使设置了高度,UIScrollView 也无法正常工作

ios - iOS 共享扩展上的 Firebase Analytics

ios - 转换大 yml 数据

python - 适用于 Windows .NET 或 python 的视频编辑器桌面应用程序

c - ncurses 和 C- 在 ncurses 窗口中显示 'df' 命令的输出