twelve17 / openalpr-ios

Xcode Framework for the openalpr library
GNU General Public License v3.0
116 stars 35 forks source link

OpenCV can't install needs some extra $(inherited) #6

Closed nissaba closed 8 years ago

nissaba commented 9 years ago

Tried to get this to work, but I keep getting this error:

[!] The openalpr-xcode [Debug] target overrides the HEADER_SEARCH_PATHS build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The openalpr-xcode [Release] target overrides the HEADER_SEARCH_PATHS build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation

I added the $(inherited) to the "Other linker flags" as suggested by some people but still no hope. the project does have the "$(inherited)" set in the header search paths..

nissaba commented 9 years ago

post adding the "$(inherited)" I am getting some pod install trouble
ended up using the following pod file


platform :ios, '7.0'

source 'https://github.com/CocoaPods/Specs.git'

target "openalpr-xcode" do pod 'OpenCV' end


AS I was getting that the include for opencv where nowhere to be found.

now all I am getting is

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lstdc++ error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lstdc++ is not an object file (not allowed in a library)

this was happening because the pod installed asked to set the $(inherited). once installed you need to remove it.

twelve17 commented 8 years ago

Hi @nissaba -- thanks for your feedback, and sorry for the delay.

For v2 of this project, I have replaced the old instructions and bash scripts with a Ruby script to build the OpenALPR and dependency Frameworks, as well as the OpenALPR Xcode project. A sample app is included. These changes have been pushed to the master branch, and the old version has been moved to branch 1_0. Feel free to check out this new script and see if it works for you. I will no longer be working on or supporting the 1_0 codebase.