Legoless / OpenCV-Dynamic

OpenCV iOS Dynamic Framework Podspec
http://opencv.org
Other
24 stars 13 forks source link

how can I make a opencv pod use 2.4.10?? #6

Closed Donny2g closed 5 years ago

Donny2g commented 7 years ago

My pod spec like this:

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}', 'podOpenCV/libs/opencv2.framework/Versions/A/Headers/**/*{.h,.hpp}'

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

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

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

#s.public_header_files = 'podOpenCV/libs/opencv2.framework/Versions/A/Headers/**/*{.h,.hpp}'
#s.preserve_paths = 'podOpenCV/libs/opencv2.framework', 'podOpenCV/libs/libjpeg.a'
#s.ios.vendored_libraries = 'podOpenCV/libs/opencv2.framework'
#s.header_dir = 'opencv2'
#s.header_mappings_dir = 'podOpenCV/libs/opencv2.framework/Versions/A/Headers/'

s.frameworks = "QuartzCore", "CoreVideo", "AssetsLibrary", "CoreMedia", "CoreImage", "CoreGraphics", "AVFoundation", "Accelerate", "UIKit", "ImageIO", "Foundation"
s.libraries = "c++", "ObjC", "z"

s.preserve_paths =  'podOpenCV/libs/opencv2.framework', 'podOpenCV/libs/*.a'

s.header_dir = 'opencv2'
s.header_mappings_dir = 'podOpenCV/libs/opencv2.framework/Versions/A/Headers/'

s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '/Users/donny2ghu/Documents/workspace/CosBeauty_Module/podOpenCV/podOpenCV/lib' '/Applications/Xcode.app/Contents/Developer/Library/Frameworks'  '/Users/donny2ghu/Documents/workspace/CosBeauty_Module/podOpenCV/podOpenCV/lib/opencv2' '/Users/donny2ghu/Documents/workspace/CosBeauty_Module/podOpenCV/podOpenCV/lib/opencv2.framework/Versions/A/Headers/'}

end

When I run ,it says "opencv2/core/core_c.h" not found. how can I make a opencv pod use 2.4.10??Please Help me!

Legoless commented 6 years ago

Not sure what are you trying to do, use OpenCV 2.4.10 as a specific version?