Problems trying to build android export templates

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cypher31

I have been trying to tackle this problem for a couple hours now and just cannot seem to figure out the issue.

I was able to build godot from source, the android release apk, and android debug apk yesterday without any really big issues. However something must have gone wrong in the apk builds because they would immediately crash when exported to my device.

I updated my sdk manager tools using Android Studio before trying to build the apk files again. When I went to run the files this time though I started getting the error below.

G:\Godot Source\source\godot 2.1.4>scons platform=android target=release
scons: Reading SConscript files ...
Godot Android!!!!! (armv7) (with neon)
Could not read source prop file 'G:\Android\sdk\ndk-bundle\source.properties'
Using NDK deprecated headers
scons: done reading SConscript files.
scons: Building targets ...
[  2%] e[94mCompiling shared e[95m==> e[93mplatform\android\os_android.cppe[0m
=====
b"In file included from platform\\android\\os_android.cpp:30:\r\nIn file included from platform\\android/os_android.h:33:\r\nIn file included from .\\drivers/unix/os_unix.h:39:\r\nIn file included from .\\drivers/unix/ip_unix.h:33:\r\nIn file included from core\\io/ip.h:33:\r\nIn file included from core\\io/ip_address.h:33:\r\nIn file included from core\\ustring.h:33:\r\nIn file included from core/array.h:33:\r\nIn file included from core/typedefs.h:38:\r\nplatform\\android\\platform_config.h:30:10: fatal error: 'alloca.h' file not found\r\n#include <alloca.h>\r\n         ^~~~~~~~~~\r\n1 error generated.\r\n"
=====
scons: *** [platform\android\os_android.os] Error 1
scons: building terminated because of errors.

Any help with this issue would be appreciated. I may just end up starting fresh and trying again if I can’t solve this. I am sure I mucked something up while building/installing the tools.

Some extra info:

I am on Windows 10
Compiled godot 2.1.5

your NDK version?

volzhs | 2018-04-11 08:26

I have NDK version 16.1.4.

cypher31 | 2018-04-11 13:15

Did you find a solution to your problem?
Stewart

StewartNJohnston | 2018-10-17 10:33

I had this issue ( except I didn’t have that barf about alloca.h ). In my case I had set the path to the ndk wrong. Your probably didn’t make such a silly mistake.

juliancienfuegos | 2018-10-20 07:29