2

我正在使用https://github.com/twelve17/openalpr-ios这个库来分析车牌图像并从中获取许可证号。

当我尝试在 mac 中运行 ruby​​ 脚本以生成openaplr.framework时,它给了我错误。

这是我得到的错误。

“/Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/utils.rb:44:in execute':子级返回:pid 587 exit 1 (RuntimeError) from /Volumes/DATA/Project_Stuff/openalpr-ios/lib/ alpr/utils.rb:74:inlog_execute' 来自 /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/package/automake.rb:141:in do_autoconf_build' 来自 /Volumes/DATA/Project_Stuff/openalpr-ios/lib /alpr/package/automake.rb:58:inbuild_arch' 来自 /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/package/base.rb:53:in block in install' 来自 /Volumes/DATA/Project_Stuff/ openalpr-ios/lib/alpr/package/base.rb:52:ineach' 来自 /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/package/base.rb:52:in install' 来自 ./bin/ build_frameworks.rb:53:in

谢谢。

4

1 回答 1

3

我有同样的问题并通过评论行修复它:

#opts[:exit_on_error] = true if !opts.has_key?(:exit_on_error)

在文件 utils.rb 第 24 行。

系统 Mac OSX10.10、xCode7.2.1

于 2016-02-23T21:26:45.827 回答