android - windows - building tess-two with ndk -


i working on windows

i want use open source tess-two project image processing in android application - https://github.com/rmtheis/tess-two.

now, according tutorial - http://gaut.am/making-an-ocr-android-app-using-tesseract/ need build tess-two ndk-build.

where right now:

i downloaded ndk , run installer, , have android-ndk-r10d folder - here https://developer.android.com/tools/sdk/ndk/index.html.

also downloaded zip file https://github.com/rmtheis/tess-two extracted folder .

my question -

  1. do need else (besides ndk-build script) in order build tess-two project , import eclipse?

  2. what exact steps?

i read cygwin.. need it?

any appreciated!

to compile tess-two library, you'll need following:

  1. android ndk tools(https://dl.google.com/android/repository/android-ndk-r14-windows-x86_64.zip)
  2. a build of android build tools android.bat working(preferably one: https://dl.google.com/android/repository/tools_r25.2.3-windows.zip)
  3. apache ant(http://mirror.fibergrid.in/apache//ant/binaries/apache-ant-1.10.1-bin.zip)
  4. the tess-two files i.e. zip file downloaded.

you'll need following build tess-two library:

  1. extract downloaded packages folders(try extract them path doesn't have spaces in path, because android ndk goes haywire when happens.)
  2. open advanced system settings option in window appears when right click computer (or pc) icon , select properties.
  3. select environment variables @ bottom right corner of window appears.
  4. add entries apache ant plugin (the bin folder inside folder), android ndk , build tools under path variable inside system variables.
  5. restart system if necessary.
  6. unzip tess-two zip files folder , open folder in windows explorer
  7. while holding down shift button, right click anywhere on blank space inside window. should give option of opening command prompt window inside said folder. choose option bring command prompt window.
  8. enter following commands:

    android update project --path tess-two copy tess-two/local.properties . gradlew assemble 
  9. you're set!


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -