Building for android fails


#1

Path to NDK is good, as most of compiling proceeds just fine. However somewhere near the end, I get this:

arm-linux-androideabi-g++: error: D:\Programs\android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9/libgcc.a: No such file or directory
Error: error running arm-linux-androideabi-g++ -olibApplicationMain-debug-v7.so -frtti -nostdlib -std=c++11 -Wl,-shared,-Bsymbolic -Wl,--no-undefined -Wl,-z,noexecstack --sysroot=D:\Programs\android-ndk-r12b/platforms/android-9/arch-arm -LD:\Programs\android-ndk-r12b/platforms/android-9/arch-arm/usr/lib @obj/android-debug-v7/all_objs D:\Programs\android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/libgnustl_static.a D:\Programs\android-ndk-r12b/platforms/android-9/arch-arm/usr/lib/crtbegin_so.o D:\Programs\android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9/libgcc.a D:\Programs\android-ndk-r12b/platforms/android-9/arch-arm/usr/lib/libc.so D:\Programs\android-ndk-r12b/platforms/android-9/arch-arm/usr/lib/libm.so -llog -ldl`

I checked, and it seems something changed. There is no

D:\Programs\android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9

but there is

D:\Programs\android-ndk-r12b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\lib\gcc\arm-linux-androideabi\4.9.x

(no more 4.9 folder, just 4.9.x)

Any ideas?

NDK downloaded today.


#2

I think I found it. For future reference, update your hxcpp

(Even though I googled, it didn’t show me this issue)

Monkeypatch until hxcpp updates binary version - just copy the folder and rename it to “4.9”. Doesn’t throw any errors, game starts just fine.