Can't find platform\android\os_android.os

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

Hello,

I’m trying to compile Godot engine downloaded from git, but it says I’m missing platform\android\os_android.os file. What should I do now?

I’ll be glad for any answer.


OS: Windows 10 Enterprise 64bit
Godot version: 3.1 (19-05-21)
Godot modules: none added
Enviroment: x64 NativeTools Command Prompt for VS 2019 (Administrator)
Tried and it worked: compile Godot for Win, compile Godor for Win target release

C:\GIT\godot>scons platform=android target=release
scons: Reading SConscript files ...
Building for Android (armv7) (with NEON)
Using NDK unified headers
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[  3%] e[94mCompiling shared e[95m==> e[93mplatform\android\os_android.cppe[0m
scons: *** [platform\android\os_android.os] The system cannot find the file specified
scons: building terminated because of errors.

C:\GIT\godot>

I’m guessing it either has something to do with lacking the necessary Android sources, or scons needs some sort of bindings for Android.

Ertain | 2019-05-22 17:27

One more thing I forgot mention:
I checked C:\GIT\godot\platform\android folder and there was no os_android.os file, only with .cpp and .h extensions (“wow, such unexpectable”)

tkazik | 2019-05-22 19:07

Ertain
You mentioned Android sources and binding. Did you mean SDK, NDS and setting system variables?

tkazik | 2019-05-22 19:09

Something about the necessary sources for Android (I can’t remember whether it would involve the Android SDK or just a few source files for building the engine). What could also be happening is that, in building the engine, an intermediary file wasn’t built. So this “android.os” file may be built while also building the main components of the engine.

However, I haven’t built the engine in months (let alone on Windows), so this is all just conjecture.

Ertain | 2019-05-23 00:05

Btw, you have os_android.os file?

tkazik | 2019-05-23 09:57

No, I do not, so I can’t tell whether it’s some file which comes with the Android sources, or it’s an intermediary file.

Ertain | 2019-05-23 14:54