0 votes

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%] [94mCompiling shared [95m==> [93mplatform\android\os_android.cpp[0m
scons: *** [platform\android\os_android.os] The system cannot find the file specified
scons: building terminated because of errors.

C:\GIT\godot>
asked May 22 in Engine by tkazik (12 points)

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

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")*

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

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.

Btw, you have os_android.os file?

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.

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 How to use this Q&A? before posting your first questions.