Coming from the c/c++ cross compiling world I found that NIM might be quite helpful. I am currently re-porting the NIST fingerprint library from C# to C (another approach by another group was not 100% convincing).
What might be helpful for other projects is the configure/autoconf/libtool environment I use. I ported it from my other x-compiling stuff so I can use it for other projects later. It can pull the full NIM/NIMBLE environment from GitHub or just using a local environment (I found that NIM on Debian/Sarge was incomplete). You find my current approach on http://github.com/mjfh/libAFIS.
Forget about my NIM application code there (I am still learning) but look at the README or .travis.yaml to see how to use it. My goals for the toolchain are:
Thanks for providing NIM.