May252013
In the previous post, I showed how you can compile FreeImage for Android. In this post, I'll demonstrate how you can include the resulting FreeImage library in your project.
Add the following to your Android.mk file:
As its name suggests, $(TARGET_ARCH_ABI)
will resolve to the target ABI (e.g. armeabi-v7a). The static library should be placed in the first path above, and the FreeImage.h header in the second.
Then, add to your main module.
Be aware that if your main module is composed of only C code, you'll have to include an empty C++ file, otherwise the STL won't be linked in to your build.