twelve17 / openalpr-ios

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

Is it possible to have a pre-built framework? #4

Closed yeahdongcn closed 8 years ago

yeahdongcn commented 9 years ago

I came across a few problems when trying to build the framework since last night.

  1. the script name changed and some of the paths are hard coded
  2. couple of warnings when integrating pods
  3. lib search paths changed
  4. runtime_data is missing (I imported the runtime_data folder, is it right?) I didn't know whether I'm doing it right but finally I got the the .framework generated. I'm wondering whether I could get a pre-build framework, then I can get started quickly. Thank you for this detailed integration document.
JeanAzzopardi commented 9 years ago

FYI I had the same problem - I decided to revert the git to an earlier commit, specifically this: https://github.com/twelve17/openalpr-ios/commit/ea83c3d06fbbede7856ca8f1e02d691b2777bfda

I was then able to follow the original instructions and managed to get it built and I could also detect number plates.

yeahdongcn commented 9 years ago

Great, I will try this tomorrow.

fopina commented 9 years ago

After using commit mentioned by LordIllidan everything worked perfectly. The only extra step was to manually download opencv pod as the link used by pod install returned 404.

I simply executed

/usr/bin/curl -f -L -o Pods/OpenCV/file.zip "http://sourceforge.net/projects/opencvlibrary/files/opencv-ios/2.4.9/opencv2.framework.zip" --create-dirs

and only then pod install

steffex commented 9 years ago

@fopina the fix is easy, remove the file called Podfile.lock and change the opencv pod to: pod 'OpenCV', '~> 2.4.9.1'.

this will make pod install work like it should!

twelve17 commented 8 years ago

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.