在我的私人窗格中找不到"opencv2/opencv.hpp"文件 [英] 'opencv2/opencv.hpp' file not found in my private pod

查看:517
本文介绍了在我的私人窗格中找不到"opencv2/opencv.hpp"文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个私有容器,其中包含opencv和其他一些算法cpp文件.但是现在我遇到了一个问题,据说找不到'opencv2/opencv.hpp'文件. 我的podspec文件如下:

I'm making a private pod which include opencv and some other algorithm cpp files.But now I get a problem, it is said 'opencv2/opencv.hpp' file not found. My podspec file is like:

    #
    # Be sure to run `pod lib lint podOpenCV.podspec' to ensure this is a
    # valid spec before submitting.
    #
    # Any lines starting with a # are optional, but their use is encouraged
    # To learn more about a Podspec see                 http://guides.cocoapods.org/syntax/podspec.html
    #

    Pod::Spec.new do |s|
      s.name             = 'podOpenCV'
      s.version          = '0.1.0'
      s.summary          = 'A short description of podOpenCV.'

    # This description is used to generate tags and improve search results.
    #   * Think: What does it do? Why did you write it? What is the focus?
    #   * Try to keep it short, snappy and to the point.
    #   * Write the description between the DESC delimiters below.
    #   * Finally, don't worry about the indent, CocoaPods strips it!

      s.description      = <<-DESC
     TODO: Add long description of the pod here.
                   DESC

      s.homepage         = 'https://github.com/hudundun90@gmail.com/podOpenCV'
      # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
      s.license          = { :type => 'MIT', :file => 'LICENSE' }
      s.author           = { 'hudundun90@gmail.com' => 'hudun1@qq.com' }
      s.source           = { :git => 'https://github.com/hudundun90@gmail.com/podOpenCV.git', :tag => s.version.to_s }
      # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

      s.ios.deployment_target = '8.0'
      s.ios.vendored_libraries = 'podOpenCV/libs/*.a'
      s.ios.vendored_frameworks = 'podOpenCV/libs/opencv2.framework'

    s.source_files = 'podOpenCV/Classes/**/*{.h,.m,.cpp,.mm}'

      # s.resource_bundles = {
      #   'podOpenCV' => ['podOpenCV/Assets/*.png']
      # }

      # s.public_header_files = 'Pod/Classes/**/*.h'
      # s.frameworks = 'UIKit', 'MapKit'
      # s.dependency 'AFNetworking', '~> 2.3'

    s.frameworks = 'Accelerate', 'AssetsLibrary', 'AVFoundation', 'CoreGraphics', 'CoreImage', 'CoreMedia', 'CoreVideo', 'Foundation', 'QuartzCore', 'UIKit', 'OpenGLES'

    s.prefix_header_file = 'podOpenCV/Classes/podOpenCV.pch'

    s.libraries = 'sqlite3', 'z', 'c++', 'stdc++'

    s.xcconfig = {
    'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
    'CLANG_CXX_LIBRARY' => 'libc++'
    }

    end

这是我的原始地图.

任何帮助都会很棒.

推荐答案

您可以转到 https://cocoapods.org/并搜索"uses:opencv".这将向您展示其他依赖于OpenCV的库.从结果中,您可以检查每个库的"See Podspec"链接(在右下方),并查看它们的操作方式.例如这里是CaptchaFace的podspec.

You can go to https://cocoapods.org/ and search for "uses:opencv". That will show you other libraries that depend on OpenCV. From the results, you can check the "See Podspec" link of each library (at the bottom right) and see how they do it. For example here is CaptchaFace's podspec.

我希望能有所帮助!

这篇关于在我的私人窗格中找不到"opencv2/opencv.hpp"文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆