0 votes

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%] [94mCompiling shared [95m==> [93mplatform\android\os_android.cpp[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

in Engine by (12 points)

your NDK version?

I have NDK version 16.1.4.

Did you find a solution to your problem?

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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.