![]() ![]() $NDK/platforms/ each API-level directory, in turn, contains subdirectoriesįor the various CPUs and architectures. ![]() Libraries for native APIs for the respective Android API levels reside under Support available native APIs vary by Android API level. Sysroot, you must must know the Android API level you want to target for native A sysroot is a directoryĬontaining the system headers and libraries for your target. ![]() The next thing you need to do is define your sysroot. A working example is providedīefore anything else, you need to decide which processor architecture your You should consider usingĪ standalone toolchain if you are building an open-source library (forĮxample when invoking a configure script). You've written yourself for such a use case, you should utilize theĮxisting build systems that the NDK supports. Standalone toolchains are not needed for code Note: This information assumes you're familiar with how to compileĪnd link native code. Toolchains, which renders this process unnecessary. As of r19, the NDK's default toolchains are standalone Systems document for instructions on using the NDK toolchains with arbitraryīuild systems. Warning: If using r19 or newer, follow the Use the NDK with other build Have your own build system, and only need the ability to invoke theĬross-compiler in order to add support to Android for it. This flexibility can be useful if you already You can use the toolchains provided with the Android NDK independently or as ![]()
0 Comments
Leave a Reply. |