10-05-2022 06:17 AM
Hello,
I am working through this hello_xr Sample App (https://developer.oculus.com/documentation/native/android/mobile-build-run-hello-xr-app/) but running into build errors.
About my enviornment:
I am getting stuck at the step where I need to build. When I try building the project, I get a bunch of errors like:
Build command failed.
Error while executing process C:\Users\jackd\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C C:\Git\OpenXR\OpenXR-SDK-Source\src\tests\hello_xr\.cxx\Debug\4q165j76\armeabi-v7a XrApiLayer_api_dump XrApiLayer_core_validation hello_xr}
ninja: Entering directory `C:\Git\OpenXR\OpenXR-SDK-Source\src\tests\hello_xr\.cxx\Debug\4q165j76\armeabi-v7a'
[1/36] Generating C:/Git/OpenXR/OpenXR-SDK-Source/src/tests/hello_xr/.cxx/Debug/4q165j76/armeabi-v7a/include/openxr/openxr_platform.h
FAILED: include/openxr/openxr_platform.h
cmd.exe /C "cd /D C:\Git\OpenXR\OpenXR-SDK-Source\src\tests\hello_xr\.cxx\Debug\4q165j76\armeabi-v7a\include\openxr && C:\Users\jackd\AppData\Local\Microsoft\WindowsApps\python3.exe C:/Git/OpenXR/OpenXR-SDK-Source/include/openxr/../../specification/scripts/genxr.py -registry C:/Git/OpenXR/OpenXR-SDK-Source/include/openxr/../../specification/registry/xr.xml -o C:/Git/OpenXR/OpenXR-SDK-Source/src/tests/hello_xr/.cxx/Debug/4q165j76/armeabi-v7a/include/openxr openxr_platform.h"
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
[2/36] Generating C:/Git/OpenXR/OpenXR-SDK-Source/src/tests/hello_xr/.cxx/Debug/4q165j76/armeabi-v7a/include/openxr/openxr.h
FAILED: include/openxr/openxr.h
When trying to debug, I saw online that people suggest turning off App Execution Aliases for python. After doing this, the error messages change to:
Build command failed.
Error while executing process C:\Users\jackd\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C C:\Git\OpenXR\OpenXR-SDK-Source\src\tests\hello_xr\.cxx\Debug\4q165j76\armeabi-v7a XrApiLayer_api_dump XrApiLayer_core_validation hello_xr}
ninja: Entering directory `C:\Git\OpenXR\OpenXR-SDK-Source\src\tests\hello_xr\.cxx\Debug\4q165j76\armeabi-v7a'
[1/36] Generating C:/Git/OpenXR/OpenXR-SDK-Source/src/tests/hello_xr/.cxx/Debug/4q165j76/armeabi-v7a/include/openxr/openxr_reflection.h
FAILED: include/openxr/openxr_reflection.h
cmd.exe /C "cd /D C:\Git\OpenXR\OpenXR-SDK-Source\src\tests\hello_xr\.cxx\Debug\4q165j76\armeabi-v7a\include\openxr && C:\Users\jackd\AppData\Local\Microsoft\WindowsApps\python3.exe C:/Git/OpenXR/OpenXR-SDK-Source/include/openxr/../../specification/scripts/genxr.py -registry C:/Git/OpenXR/OpenXR-SDK-Source/include/openxr/../../specification/registry/xr.xml -o C:/Git/OpenXR/OpenXR-SDK-Source/src/tests/hello_xr/.cxx/Debug/4q165j76/armeabi-v7a/include/openxr openxr_reflection.h"
'C:\Users\jackd\AppData\Local\Microsoft\WindowsApps\python3.exe' is not recognized as an internal or external command,
operable program or batch file.
Can anyone help me debug this error message?
Solved! Go to Solution.
10-05-2022 05:55 PM
Fixed! I had to clone a fresh copy of the OpenXR-SDK-Source repo.
Solution was provided here: https://github.com/KhronosGroup/OpenXR-SDK-Source/issues/338
10-05-2022 05:55 PM
Fixed! I had to clone a fresh copy of the OpenXR-SDK-Source repo.
Solution was provided here: https://github.com/KhronosGroup/OpenXR-SDK-Source/issues/338
02-26-2023 10:19 PM