NDK, Using C in android environment

NDK build

android.mk

application.mk

Or cmake.txt

there are tool to package the C code to shared library so that it can be used in android environment

https://developer.android.com/ndk/guides/ndk-build.html

This video is about how to use the Dlib with OpenCV, OpenCV for receiving image from phone camera and then pass it to Dlib format to detect by HOG for ex.

In order to use ndk-build in ubuntu

add the NDK tool to environment path by

export PATH=$PATH:/home/tony/Android/Sdk/ndk-bundle

and check that added link if it was added or not

echo $PATH

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s