GodotVR / godot_openxr

(Maintenance mode) OpenXR drivers for the Godot Game Engine v3.x
MIT License
279 stars 43 forks source link

Android build issue #61

Closed BastiaanOlij closed 3 years ago

BastiaanOlij commented 3 years ago

I've had this issue with the Quest plugin as well, now happens here too, this is a local issue to my laptop, just capturing some data here to discuss.

First time I run gradlew:

D:\Development\xr_plugins\godot_openxr>gradlew generatePluginBinary

> Task :GodotOpenXR:externalNativeBuildDebug
Build godot_openxr_armeabi-v7a
ninja: Entering directory `D:\Development\xr_plugins\godot_openxr\android\.cxx\cmake\debug\armeabi-v7a'
D:/Development/xr_plugins/godot_openxr/src/openxr/actions/actionset.cpp:99:22: warning: comparison between NULL and non-pointer ('XrSession' (aka 'unsigned long long') and NULL) [-Wnull-arithmetic]
D:/Development/xr_plugins/godot_openxr/src/openxr/OpenXRApi.cpp:2425:14: warning: enumeration values 'XR_SESSION_STATE_UNKNOWN' and 'XR_SESSION_STATE_MAX_ENUM' not explicitly handled in switch [-Wswitch-enum]
D:/Development/xr_plugins/godot_openxr/src/openxr/OpenXRApi.cpp:2386:11: warning: 126 enumeration values not explicitly handled in switch: 'XR_TYPE_UNKNOWN', 'XR_TYPE_API_LAYER_PROPERTIES', 'XR_TYPE_EXTENSION_PROPERTIES'... [-Wswitch-enum]
Build godot_openxr_arm64-v8a
ninja: Entering directory `D:\Development\xr_plugins\godot_openxr\android\.cxx\cmake\debug\arm64-v8a'
D:/Development/xr_plugins/godot_openxr/src/openxr/OpenXRApi.cpp:2425:14: warning: enumeration values 'XR_SESSION_STATE_UNKNOWN' and 'XR_SESSION_STATE_MAX_ENUM' not explicitly handled in switch [-Wswitch-enum]
D:/Development/xr_plugins/godot_openxr/src/openxr/OpenXRApi.cpp:2386:11: warning: 126 enumeration values not explicitly handled in switch: 'XR_TYPE_UNKNOWN', 'XR_TYPE_API_LAYER_PROPERTIES', 'XR_TYPE_EXTENSION_PROPERTIES'... [-Wswitch-enum]

> Task :GodotOpenXR:processDebugManifest
D:\Development\xr_plugins\godot_openxr\android\src\main\AndroidManifest.xml:6:5-10:31 Warning:
        uses-feature#android.hardware.vr.headtracking was tagged at AndroidManifest.xml:6 to replace another declaration but no other declaration present
D:\Development\xr_plugins\godot_openxr\android\src\main\AndroidManifest.xml:14:9-17:36 Warning:
        meta-data#com.samsung.android.vr.application.mode was tagged at AndroidManifest.xml:14 to replace another declaration but no other declaration present
D:\Development\xr_plugins\godot_openxr\android\src\main\AndroidManifest.xml:23:9-26:40 Warning:
        meta-data#com.oculus.supportedDevices was tagged at AndroidManifest.xml:23 to replace another declaration but no other declaration present
D:\Development\xr_plugins\godot_openxr\android\src\main\AndroidManifest.xml:29:9-32:40 Warning:
        meta-data#com.oculus.always_draw_view_root was tagged at AndroidManifest.xml:29 to replace another declaration but no other declaration present

> Task :GodotOpenXR:externalNativeBuildRelease
Build godot_openxr_armeabi-v7a
ninja: Entering directory `D:\Development\xr_plugins\godot_openxr\android\.cxx\cmake\release\armeabi-v7a'
D:/Development/xr_plugins/godot_openxr/src/openxr/actions/actionset.cpp:99:22: warning: comparison between NULL and non-pointer ('XrSession' (aka 'unsigned long long') and NULL) [-Wnull-arithmetic]
D:/Development/xr_plugins/godot_openxr/src/openxr/OpenXRApi.cpp:2425:14: warning: enumeration values 'XR_SESSION_STATE_UNKNOWN' and 'XR_SESSION_STATE_MAX_ENUM' not explicitly handled in switch [-Wswitch-enum]
D:/Development/xr_plugins/godot_openxr/src/openxr/OpenXRApi.cpp:2386:11: warning: 126 enumeration values not explicitly handled in switch: 'XR_TYPE_UNKNOWN', 'XR_TYPE_API_LAYER_PROPERTIES', 'XR_TYPE_EXTENSION_PROPERTIES'... [-Wswitch-enum]
Build godot_openxr_arm64-v8a
ninja: Entering directory `D:\Development\xr_plugins\godot_openxr\android\.cxx\cmake\release\arm64-v8a'
D:/Development/xr_plugins/godot_openxr/src/openxr/OpenXRApi.cpp:2425:14: warning: enumeration values 'XR_SESSION_STATE_UNKNOWN' and 'XR_SESSION_STATE_MAX_ENUM' not explicitly handled in switch [-Wswitch-enum]
D:/Development/xr_plugins/godot_openxr/src/openxr/OpenXRApi.cpp:2386:11: warning: 126 enumeration values not explicitly handled in switch: 'XR_TYPE_UNKNOWN', 'XR_TYPE_API_LAYER_PROPERTIES', 'XR_TYPE_EXTENSION_PROPERTIES'... [-Wswitch-enum]

> Task :GodotOpenXR:processReleaseManifest
D:\Development\xr_plugins\godot_openxr\android\src\main\AndroidManifest.xml:6:5-10:31 Warning:
        uses-feature#android.hardware.vr.headtracking was tagged at AndroidManifest.xml:6 to replace another declaration but no other declaration present
D:\Development\xr_plugins\godot_openxr\android\src\main\AndroidManifest.xml:14:9-17:36 Warning:
        meta-data#com.samsung.android.vr.application.mode was tagged at AndroidManifest.xml:14 to replace another declaration but no other declaration present
D:\Development\xr_plugins\godot_openxr\android\src\main\AndroidManifest.xml:23:9-26:40 Warning:
        meta-data#com.oculus.supportedDevices was tagged at AndroidManifest.xml:23 to replace another declaration but no other declaration present
D:\Development\xr_plugins\godot_openxr\android\src\main\AndroidManifest.xml:29:9-32:40 Warning:
        meta-data#com.oculus.always_draw_view_root was tagged at AndroidManifest.xml:29 to replace another declaration but no other declaration present

BUILD SUCCESSFUL in 10m 4s
54 actionable tasks: 53 executed, 1 up-to-date

Some warnings but all seems ok.

Any time after that:

D:\Development\xr_plugins\godot_openxr>gradlew generatePluginBinary

> Task :GodotOpenXR:externalNativeBuildDebug
Build godot_openxr_armeabi-v7a
ninja: Entering directory `D:\Development\xr_plugins\godot_openxr\android\.cxx\cmake\debug\armeabi-v7a'
Build godot_openxr_arm64-v8a
ninja: Entering directory `D:\Development\xr_plugins\godot_openxr\android\.cxx\cmake\debug\arm64-v8a'

> Task :GodotOpenXR:generateDebugRFile FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':GodotOpenXR:generateDebugRFile' (type 'GenerateLibraryRFileTask').
> File 'D:\Development\xr_plugins\godot_openxr\android\build\intermediates\local_only_symbol_list\debug\R-def.txt' specified for property 'localResourcesFile' does not exist.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
11 actionable tasks: 3 executed, 8 up-to-date

Switching build tools allows me to reset.

BastiaanOlij commented 3 years ago

@m4gr3d could the warnings in the build that succeeds have anything to do with this?

BastiaanOlij commented 3 years ago

This is a local machine problem, time for a big reinstall...