0 votes

scons platform=android

scons: Reading SConscript files ...
Building for Android, platform android-24 (armv7) (with NEON)
Checking for C header file mntent.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling shared ==> platform\android\osandroid.cpp
[Initial build] Compiling shared ==> platform\android\file
[Initial build] Compiling shared ==> platform\android\audio
[Initial build] Compiling shared ==> platform\android\file
[Initial build] Compiling shared ==> platform\android\dir
[Initial build] Compiling shared ==> platform\android\thread
[Initial build] Compiling shared ==> platform\android\netsocketandroid.cpp
[Initial build] Compiling shared ==> platform\android\audiodriverjandroid.cpp
[Initial build] Compiling shared ==> platform\android\javagodotlibjni.cpp
[Initial build] Compiling shared ==> platform\android\java
[Initial build] Compiling shared ==> platform\android\java
[Initial build] Compiling shared ==> platform\android\java
[Initial build] Compiling shared ==> platform\android\jniutils.cpp
[Initial build] Compiling shared ==> platform\android\android
[Initial build] Compiling shared ==> platform\android\display
b'In file included from platform\android\display
serverandroid.cpp:43:\r\n.\drivers/vulkan/renderingdevicevulkan.h:44:10: fatal error: \'vkmemalloc.h\' file not found\r\n#include "vkmemalloc.h"\r\n ^~~~~~~~~~~~~~~~\r\n1 error generated.\r\n'
scons: *** [platform\android\display
server_android.os] Error 1
scons: building terminated because of errors.

I also tried with platform=windows

scons platform=windows

scons: Reading SConscript files ...
Configuring for Windows: target=debug, bits=default
Found MSVC compiler: amd64
Compiled program architecture will be a 64 bit executable (forcing bits=64).
Missing environment variable: WindowsSdkDir
Missing environment variable: WindowsSdkDir
YASM is necessary for WebM SIMD optimizations.
WebM SIMD optimizations are disabled. Check if your CPU architecture, CPU bits or platform are supported!
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling ==> platform\windows\godotwindows.cpp
!D:\temp\godot\core/typedefs.h(34): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
scons: *** [platform\windows\godot_windows.windows.tools.64.obj] Error 2
scons: building terminated because of errors.

I have installed:
Python 3.8
Visual Studio
Windows SDK 10 (from Visual Studio)

in Engine by (12 points)

1 Answer

0 votes

b'In file included from
fatal error: \'vkmemalloc.h\' file not found\r\n#include
"vkmemalloc.h"\r\n ^~~~~~~~~~~~~~~~\r\n1 error generated.\r\n'

The Android error looks like you try to build the latest Master-Branch with Vulcan support, but you haven't any vulcan-support avaiable.

Windows could be the same problem, try to build the -b 3.2 Branch.
Or you try to use another compiler like the "use_mingw=yes"

by (128 points)
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.