twelve17 / openalpr-ios

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

Problem building tesseract-3.03 framework #25

Open ik2wxx opened 8 years ago

ik2wxx commented 8 years ago

Hello all

I have this error:

_--- Building tesseract for armv7 from /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03 make: * No rule to make target `clean'. Stop. make: * No rule to make targetdistclean'. Stop. bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb) RuntimeError: Child returned: pid 43641 exit 1 /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/utils.rb:44:inexecute' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/utils.rb:74:inlog_execute' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/automake.rb:141:indo_autoconf_build' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/automake.rb:58:inbuild_arch' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:53:inblock in install' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:52:ineach' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:52:ininstall' /Users/roberto/Desktop/Targhe/openalpr-ios-master/bin/buildframeworks.rb:76:in`<top (required)>' ---

while doing "bundle exec ./bin/build_frameworks.rb"

framework is downloaded but looks like it can't find any suitable makefile.

Any help please ?

Tnx Roberto

twelve17 commented 8 years ago

Hi @ik2wxx , can you attach the build log?

ik2wxx commented 8 years ago

Hello First of all, I have to say that every time I start the "bundle exec...." command, the result is different. This is why the issue had another title and then I needed to change it. So now the error is different, I copy here the messages:


options: {} Package opencv2 is already installed. Skipping build. Package leptonica is already installed. Skipping build. Building tesseract for armv7 from /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03 /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing: Unknown --is-lightweight' option Try/Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing --help' for more information configure: WARNING: 'missing' script is too old or missing configure: WARNING: using cross tools not prefixed with host triplet configure: WARNING: Training tools WILL NOT be built because of missing pango library. configure: WARNING: Try to install libpango1.0-dev package. configure: WARNING: Training tools WILL NOT be built because of missing cairo library. configure: WARNING: Try to install libcairo-dev?? package. Building tesseract for armv7s from /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03 /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing: Unknown --is-lightweight' option Try/Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing --help' for more information configure: WARNING: 'missing' script is too old or missing configure: WARNING: using cross tools not prefixed with host triplet configure: WARNING: Training tools WILL NOT be built because of missing pango library. configure: WARNING: Try to install libpango1.0-dev package. configure: WARNING: Training tools WILL NOT be built because of missing cairo library. configure: WARNING: Try to install libcairo-dev?? package. Building tesseract for arm64 from /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03 /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing: Unknown --is-lightweight' option Try/Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing --help' for more information configure: WARNING: 'missing' script is too old or missing configure: WARNING: using cross tools not prefixed with host triplet configure: WARNING: Training tools WILL NOT be built because of missing pango library. configure: WARNING: Try to install libpango1.0-dev package. configure: WARNING: Training tools WILL NOT be built because of missing cairo library. configure: WARNING: Try to install libcairo-dev?? package. Building tesseract for i386 from /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03 /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing: Unknown --is-lightweight' option Try/Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing --help' for more information configure: WARNING: 'missing' script is too old or missing configure: WARNING: Training tools WILL NOT be built because of missing pango library. configure: WARNING: Try to install libpango1.0-dev package. configure: WARNING: Training tools WILL NOT be built because of missing cairo library. configure: WARNING: Try to install libcairo-dev?? package. Building tesseract for x86_64 from /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03 /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing: Unknown --is-lightweight' option Try/Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-3.03/config/missing --help' for more information configure: WARNING: 'missing' script is too old or missing configure: WARNING: Training tools WILL NOT be built because of missing pango library. configure: WARNING: Try to install libpango1.0-dev package. configure: WARNING: Training tools WILL NOT be built because of missing cairo library. configure: WARNING: Try to install libcairo-dev?? package. bundler: failed to load command: ./bin/build_frameworks.rb (./bin/build_frameworks.rb) RuntimeError: Got fatal error during LIPO: fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: archive member /Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-thin-lib/iPhoneOS-armv7/libtesseract_all.a(argz.o) cputype (16777223) and cpusubtype (3) does not match previous archive members cputype (12) and cpusubtype (9) (all members must match)

/Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:217:in block in lipo_libraries' /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/find.rb:49:inblock (2 levels) in find' /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/find.rb:48:in catch' /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/find.rb:48:inblock in find' /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/find.rb:43:in each' /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/find.rb:43:infind' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:193:in lipo_libraries' /Users/roberto/Desktop/Targhe/openalpr-ios-master/lib/alpr/package/base.rb:55:ininstall'

/Users/roberto/Desktop/Targhe/openalpr-ios-master/bin/build_frameworks.rb:76:in `<top (required)>'

Thank you for help Roberto

twelve17 commented 8 years ago

Hmm, this part is strange:

/Users/roberto/Desktop/Targhe/openalpr-ios-master/work/tesseract-thin-lib/iPhoneOS-armv7/libtesseract_all.a(argz.o) cputype (16777223) and cpusubtype (3) does not match previous archive members cputype (12) and cpusubtype (9) (all members must match)

Can you delete the "work" directory and try again?