Set NDK version for Lime


#1

Because of this, I have to compile for Android with the NDK version r15c. When I try to build for Android, however, it fails with this message:

Warning: Could not deduce NDK version from "/Users/Famille_Pintado/stuff/android-ndk/" - assuming 8
Creating /Users/Famille_Pintado/proj/samsara/build/openfl/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch...
sh: arm-linux-androideabi-g++: command not found
Error: Could not create PCH

How can I explicitly Lime what version of the NDK I’m using?


#2

Try running lime setup android, and it should prompt you for a path to where your Android NDK is located. If that still doesn’t work (and the path is correct), check and see if you have a different value in ~/.hxcpp_config, HXCPP’s values will override Lime’s when performing the C++ compilation step. You can remove or change the value there (if present)


#3

I’ve done the lime setup step and it’s led me here. ~/.hxcpp_config doesn’t exist, but that could be a way. How should I format the value?


#4

Oh, I just noticed this message:

Warning: Could not deduce NDK version from "/Users/Famille_Pintado/stuff/android-ndk/" - assuming 8

Perhaps you should rename the folder to android-ndk-r15c, it might help HXCPP find the right paths inside the NDK


#5

Sorry, it didn’t work. Is there another way?


#6

Did it print the same warning? Did you run lime setup android after renaming the folder?


#7

Yes, but it didn’t work, unfortunately. Maybe I can try something else: do you know whether this issue has been solved yet?