I'm trying to build Godot from source with the instructions [here] (https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_linuxbsd.html) for 64 bit Alpine Linux.
I'm using Godot 4.1.1-stable (from this commit.
After apk add
of packages, when I run scons platform=linuxbsd
I bumped into this error, which on surface looks like the error stems from the Godot repo.
[Initial build] Compiling thirdparty/openxr/src/loader/loader_core.cpp ...
In file included from thirdparty/openxr/src/common/filesystem_utils.cpp:13:
thirdparty/openxr/src/common/platform_utils.hpp: In function ‘char* detail::ImplGetSecureEnv(const char*)’:
thirdparty/openxr/src/common/platform_utils.hpp:55:12: error: ‘secure_getenv’ was not declared in this scope
55 | return secure_getenv(name);
| ^~~~~~~~~~~~~
scons: *** [thirdparty/openxr/src/common/filesystem_utils.linuxbsd.editor.x86_64.o] Error 1
In file included from thirdparty/openxr/src/loader/loader_platform.hpp:17,
from thirdparty/openxr/src/loader/api_layer_interface.hpp:18,
from thirdparty/openxr/src/loader/api_layer_interface.cpp:10:
thirdparty/openxr/src/common/platform_utils.hpp: In function ‘char* detail::ImplGetSecureEnv(const char*)’:
thirdparty/openxr/src/common/platform_utils.hpp:55:12: error: ‘secure_getenv’ was not declared in this scope
55 | return secure_getenv(name);
| ^~~~~~~~~~~~~
In file included from thirdparty/openxr/src/loader/loader_platform.hpp:17,
from thirdparty/openxr/src/loader/api_layer_interface.hpp:18,
from thirdparty/openxr/src/loader/loader_core.cpp:14:
thirdparty/openxr/src/common/platform_utils.hpp: In function ‘char* detail::ImplGetSecureEnv(const char*)’:
thirdparty/openxr/src/common/platform_utils.hpp:55:12: error: ‘secure_getenv’ was not declared in this scope
55 | return secure_getenv(name);
| ^~~~~~~~~~~~~
scons: *** [thirdparty/openxr/src/loader/api_layer_interface.linuxbsd.editor.x86_64.o] Error 1
scons: *** [thirdparty/openxr/src/loader/loader_core.linuxbsd.editor.x86_64.o] Error 1
scons: building terminated because of errors.
[Time elapsed: 00:02:00.140]
Is this a known issue, that resolves with a newer commit or what is the error?
Any help to resolve this would be appreciated.
Thanks!