termux-ndk icon indicating copy to clipboard operation
termux-ndk copied to clipboard

[Question] - Building with Android IDE

Open anonimo82 opened this issue 3 years ago • 5 comments

Hello everyone. I'm planning to add NDK support to Android IDE

  • https://github.com/itsaky/AndroidIDE
  • https://androidide.com/ Which would then use it through Termux.

I noticed a .zip download available in the releases, but I didn't try to download it yet, as I wonder how will I install it then. So, what will I need to do to install NDK support in Android IDE? Please, point me to a guide or something.

Thanks for any help.

anonimo82 avatar May 17 '22 05:05 anonimo82

termux-ndk does not depend on termux, it can be installed separately

How to integrate the ndk? the gradle plugin will automatically help us execute the cmake command to compile the native code, we only need to set the ndk in build.gradle, which is the same as you use android studio

lzhiyong avatar May 17 '22 13:05 lzhiyong

Sorry, I didn't understand. I have a Termux instance inside Android IDE, and I need to install NDK support in it. How can I do?

anonimo82 avatar May 17 '22 14:05 anonimo82

First you should understand how to use the command line to compile the app, the IDE just wraps the command line calls.

ndk is called by gradle, not manually, we only need to specify its path in local.properties or specify its version in build.gradle

see https://github.com/Lzhiyong/termux-ndk/tree/master/build-app

lzhiyong avatar May 18 '22 01:05 lzhiyong

Uhm, okay. But generally speaking, what do I need to do in order to have the NDK executable in path? Note I'm almost new to this, even if I built something with Android Studio (from command line too, but only with gradlew script) and I really don't know how to invoke the NDK compiler or so. TBH, I'd just need to be able to build Godot generated projects from Android IDE, and I'm not 101% sure I'll need NDK. Please, see here:

  • https://github.com/godotengine/godot-proposals/discussions/4324
  • https://github.com/itsaky/AndroidIDE/issues/148

Thanks =)

anonimo82 avatar May 19 '22 04:05 anonimo82

There is already an AndroidIDE ndk tutorials installation. Refer to the link below: https://youtu.be/4aINwOglkuY

arcans1998 avatar Jun 22 '22 13:06 arcans1998