Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to compile framework #26

Open
TheMrugraj opened this issue Jul 8, 2016 · 6 comments
Open

Not able to compile framework #26

TheMrugraj opened this issue Jul 8, 2016 · 6 comments

Comments

@TheMrugraj
Copy link

TheMrugraj commented Jul 8, 2016

Hello

I tried to run build_frameworks.rb and received following errors

SyntaxError: /Users/pc5/Downloads/DEMO/openalpr-ios/lib/alpr/package/alpr.rb:31: syntax error, unexpected ','
    def initialize(log_file:, logger:,
                             ^
/Users/pc5/Downloads/DEMO/openalpr-ios/lib/alpr/package/alpr.rb:173: syntax error, unexpected keyword_end, expecting end-of-input
  /Users/pc5/Downloads/DEMO/openalpr-ios/lib/alpr/package.rb:1:in `require_relative'
  /Users/pc5/Downloads/DEMO/openalpr-ios/lib/alpr/package.rb:1:in `<top (required)>'
  /Users/pc5/Downloads/DEMO/openalpr-ios/bin/build_frameworks.rb:30:in `require_relative'
  /Users/pc5/Downloads//DEMO/openalpr-ios/bin/build_frameworks.rb:30:in `<top (required)>'

Please suggest solution

Thanks in advance
Mrugraj

@twelve17
Copy link
Owner

twelve17 commented Jul 8, 2016

Hi @mrugrajsinh , what version of ruby are you using?

@TheMrugraj
Copy link
Author

$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin15.0]

@twelve17
Copy link
Owner

twelve17 commented Jul 8, 2016

Can you confirm that is indeed the version the script is running? That error is indicative of a pre 2.1 version of ruby.

@Andrei-Novikov
Copy link

Andrei-Novikov commented Sep 28, 2016

Hello
I tried to run build_frameworks.rb and received following errors

Building openalpr for armv7 from /Users/Navigator/Documents/Projects/test/openalpr-ios/work/openalpr
bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb)
RuntimeError: Child returned: pid 60748 exit 65
/Users/Navigator/Documents/Projects/test/openalpr-ios/lib/alpr/utils.rb:44:in execute' /Users/Navigator/Documents/Projects/test/openalpr-ios/lib/alpr/utils.rb:74:inlog_execute'
/Users/Navigator/Documents/Projects/test/openalpr-ios/lib/alpr/package/alpr.rb:116:in block in build_arch' /Users/Navigator/Documents/Projects/test/openalpr-ios/lib/alpr/package/alpr.rb:115:ineach'
/Users/Navigator/Documents/Projects/test/openalpr-ios/lib/alpr/package/alpr.rb:115:in build_arch' /Users/Navigator/Documents/Projects/test/openalpr-ios/lib/alpr/package/base.rb:53:inblock in install'
/Users/Navigator/Documents/Projects/test/openalpr-ios/lib/alpr/package/base.rb:52:in each' /Users/Navigator/Documents/Projects/test/openalpr-ios/lib/alpr/package/base.rb:52:ininstall'
/Users/Navigator/Documents/Projects/test/openalpr-ios/bin/build_frameworks.rb:84:in `<top (required)>'

ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]
MacOS Sierra, xcode 8.0

@wicheda
Copy link

wicheda commented Nov 21, 2016

@Navigator-Brest just wondering if you ever resolved your issue, I think I have the same problem as you.

@wicheda
Copy link

wicheda commented Nov 21, 2016

@Navigator-Brest After further investigation, I found the issue was outputted in build.log, it related to the code signing being invalid. Anarchid gave some great hints at: #30 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants