I am trying to cross-compile an API that we developed in Windows which is our only dev environment at the moment. The API has few third party dependencies which are as well Windows based .libs and .dlls. In Windows, when I use the API libraries we compile it statically and generate .libs and include and link them for the apps I want to create using the API.
Now I have a situation where I want to use these libraries in a very basic Android App, and the idea is to use Android NDK with CMake. I understand the API needs to be cross compiled for ARM, but its quite dizzying because most of the options/tutorials available are Linux based. [Complete Noob on Android here]
I found LLVM with Clang and some python tools that come with NDK to be useful for cross-compiling on Windows. I was able to compile a file using these and I got an a.out file. But that was just a single CPP file, whereas I need to compile several files together into a .a file (static lib) which I can then include in my CMake in NDK. So I need the equivalents for .libs on windows. (ObjGL.lib -> ObjGL.a, Shape.lib -> Shape.a etc)
My question is should I try to build something like a makefile to get a .a file or what is the best way to do this from Windows itself? Any pointers/links would be appreciated. TIA!
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/e39eb252-d200-4dbc-97d7-c7ced1ef8f0d%40googlegroups.com.
I am trying to cross-compile an API that we developed in Windows which is our only dev environment at the moment. The API has few third party dependencies which are as well Windows based .libs and .dlls. In Windows, when I use the API libraries we compile it statically and generate .libs and include and link them for the apps I want to create using the API.
Now I have a situation where I want to use these libraries in a very basic Android App, and the idea is to use Android NDK with CMake. I understand the API needs to be cross compiled for ARM, but its quite dizzying because most of the options/tutorials available are Linux based. [Complete Noob on Android here]
I found LLVM with Clang and some python tools that come with NDK to be useful for cross-compiling on Windows. I was able to compile a file using these and I got an a.out file. But that was just a single CPP file, whereas I need to compile several files together into a .a file (static lib) which I can then include in my CMake in NDK. So I need the equivalents for .libs on windows. (ObjGL.lib -> ObjGL.a, Shape.lib -> Shape.a etc)
My question is should I try to build something like a makefile to get a .a file or what is the best way to do this from Windows itself? Any pointers/links would be appreciated. Thanks in advance!
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAPwkQFGy%3DsPsqRUtPbRPXKV_D3r1i%2BWJ1DktfTueK8ehNpKguw%40mail.gmail.com.