twelve17 / openalpr-ios

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

Missing openalpr.framework while executing "bundle exec ./bin/build_frameworks.rb". #13

Closed ektapadaliya closed 8 years ago

ektapadaliya commented 8 years ago

cant't find openalpr.framework while executing "bundle exec ./bin/build_frameworks.rb". please help me how to get this framework?

twelve17 commented 8 years ago

Is it in the output directory? If not, can you provide the build.log?

ektapadaliya commented 8 years ago

I run "bundle exec ./bin/build_frameworks.rb" command and got (leptonica, opencv, tesseract) frameworks but not able to get openalpr.framework.

This is the error i m getting. "/Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/utils.rb:44:in execute': Child returned: pid 587 exit 1 (RuntimeError) from /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/utils.rb:74:inlog_execute' from /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/package/automake.rb:141:in do_autoconf_build' from /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/package/automake.rb:58:inbuild_arch' from /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/package/base.rb:53:in block in install' from /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/package/base.rb:52:ineach' from /Volumes/DATA/Project_Stuff/openalpr-ios/lib/alpr/package/base.rb:52:in install' from ./bin/build_frameworks.rb:53:in

'"

I am using xcode 7.0 and above.

I m attaching bulid.log file please help me out.

build.log.zip

DaidoujiChen commented 8 years ago

Here got the same issue OSX 10.10.5 ruby 2.1.2p95 Xcode 7.1.1

twelve17 commented 8 years ago

@EMakadiya @DaidoujiChen can you see if you have autoconf installed? I thought it was included with the Xcode CLI tools, but it seems it was removed long ago.

DaidoujiChen commented 8 years ago

Try on tomorrow :)

DaidoujiChen commented 8 years ago

Hello @twelve17,

I have autoconf.

autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

2015-12-09 10 07 01

twelve17 commented 8 years ago

Hi @DaidoujiChen,

Thanks for the reply. I'm at a loss at what it could be. Can you try to manually go to your /Volumes/DATA/Project_Stuff/openalpr-ios/work (or wherever it is in your machine--I'm using @EMakadiya 's examples) and do the automake command command by hand? e.g.

SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk' \

CXX='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++' \ CC='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc' \ LD='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld' \ AS='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as' \ AR='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar' \ NM='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm' \ RANLIB='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib' \ LDFLAGS='-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/ -L/Volumes/DATA/Project_Stuff/openalpr-ios/work/leptonica-thin-lib/iPhoneOS-armv7' \ CFLAGS='-arch armv7 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -miphoneos-version-min=9.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/ -I/Volumes/DATA/Project_Stuff/openalpr-ios/output/leptonica.framework/Headers' \ CPPFLAGS='-arch armv7 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -miphoneos-version-min=9.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/ -I/Volumes/DATA/Project_Stuff/openalpr-ios/output/leptonica.framework/Headers' \ CXXFLAGS='-arch armv7 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -miphoneos-version-min=9.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/ -I/Volumes/DATA/Project_Stuff/openalpr-ios/output/leptonica.framework/Headers' \ PATH='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Users/c104/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bin:/Users/c104/.rbenv/versions/2.1.2/bin:/usr/local/Cellar/rbenv/0.4.0/libexec:/Users/c104/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' \ BUILD_HOST_NAME='arm-apple-darwin7' \ LIBLEPT_HEADERSDIR='/Volumes/DATA/Project_Stuff/openalpr-ios/output/leptonica.framework/Headers' bash autogen.sh

DaidoujiChen commented 8 years ago

Hello @twelve17,

Sorry, it's my mistake...

/Users/chilun_chen/Desktop/SourceCode/openalpr-ios-master/lib/alpr/utils.rb:44:in `execute': Child returned: pid 15806 exit 127 (RuntimeError)
    from /Users/chilun_chen/Desktop/SourceCode/openalpr-ios-master/lib/alpr/utils.rb:74:in `log_execute'
    from /Users/chilun_chen/Desktop/SourceCode/openalpr-ios-master/lib/alpr/package/alpr.rb:112:in `build_arch'
    from /Users/chilun_chen/Desktop/SourceCode/openalpr-ios-master/lib/alpr/package/base.rb:53:in `block in install'
    from /Users/chilun_chen/Desktop/SourceCode/openalpr-ios-master/lib/alpr/package/base.rb:52:in `each'
    from /Users/chilun_chen/Desktop/SourceCode/openalpr-ios-master/lib/alpr/package/base.rb:52:in `install'
    from ./bin/build_frameworks.rb:61:in `<main>'

My fail message very simlar with @EMakadiya But the root cause just I am not install cmake ... thanks for your support

ektapadaliya commented 8 years ago

Hello @twelve17,

I also have autoconf.

Can you please guide me how to run automake command?

I tried but getting following error.

Making all in lib /bin/sh: /Applications/Xcode: No such file or directory make: *\ [all-recursive] Error 1

screen shot 2015-12-09 at 10 03 55 am

ektapadaliya commented 8 years ago

Hi @DaidoujiChen,

Is your problem solved?

DaidoujiChen commented 8 years ago

Hello @EMakadiya,

Yes, I solved.

ektapadaliya commented 8 years ago

Hi @DaidoujiChen,

can you please help me. how to run automake command?

DaidoujiChen commented 8 years ago

Hello @EMakadiya,

I am just missing cmake.

ektapadaliya commented 8 years ago

@DaidoujiChen

then how to solve this cmake issue?

DaidoujiChen commented 8 years ago

Hello @EMakadiya,

requirements in project readme.

ektapadaliya commented 8 years ago

@DaidoujiChen

I did all the things but still facing issue.

ektapadaliya commented 8 years ago

hi @DaidoujiChen,@twelve17,

Thanks for your support now i am able to run code. :+1: I just update the ruby version :dancer:

twelve17 commented 8 years ago

Great, thanks. I'll add some version and dependency checking to the script. :)

twelve17 commented 8 years ago

@EMakadiya Out of curiosity, what version of ruby did you have that was giving you the broken behavior?

DaidoujiChen commented 8 years ago

:+1:

ektapadaliya commented 8 years ago

@twelve17 old git version = 2.2.0 new git version = 2.6.4

I thought this "rvm reinstall 2.2.0 --disable-binary" command helped me.