Is there a way to compile the library OpenALPR (https://github.com/openalpr/openalpr) for Android using NDK (ndk-build)?
This is a guide to compile the library for android :
Tutorial for compiling OpenALPR for Android devices
[Step 0]
[Step 1]
[Step 2]
[Step 3]
Download and install the Android CMake project (https://code.google.com/p/android-cmake/) You should end up with a toolchain for generating android projects. If you got to choose which compiler to use, I recommend the gcc4.6 as I did not achieve compiling OpenALPR with a toolchain pointing to the gcc4.8 compiler...
Make a symbolic link to android-toolchain folder inside /opt (ie : sudo ln -s PATH_TO_ANDROID_TOOLCHAIN /opt/android-toolchain). (The android-toolchain folder is generated during the deployment of Android CMake project !)
[Step 4]
Go to the src directory and edit the CMakeLists.txt file :
Then comment the section for generating alprd (or just remove it) :
Compile the alprd library on Unix-based OS
IF (NOT WIN32) ADD_EXECUTABLE( alprd daemon.cpp videobuffer.cpp daemon/beanstalk.c daemon/beanstalk.cc daemon/uuid.cpp )
TARGET_LINK_LIBRARIES(alprd openalpr support uuid curl log4cplus ${OpenCV_LIBS} ${Tesseract_LIBS} ) ENDIF()
Open CMake
There should not be any error but some warnings... it's ok
[Step 5]
Everything should compile smoothly. You can find the alpr library in the openalpr-master/src/libs/armeabi-v7a
That's all, let me know your successes and failures, i'll try to help you as best as possible