From 1e646c125794b072c9c65cae9021b0b1251e710c Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Fri, 20 Sep 2024 21:24:26 +0200 Subject: [PATCH] Fix "Oculus SDK not found or older than 1.0" when uploading to Oculus store --- build.gradle | 4 ++-- client/CMakeLists.txt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index ac3e9fda..25c79cc2 100644 --- a/build.gradle +++ b/build.gradle @@ -65,10 +65,10 @@ android { // for Vulkan, need at least 24 // for AImage_getHardwareBuffer, API 26 minSdkVersion 29 - compileSdkVersion 29 + compileSdkVersion 32 targetSdkVersion 32 // for Oculus Store - versionName = "1.0" + versionName = "0.19" versionCode = 1 externalNativeBuild { diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index e02562ff..5202f193 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -27,7 +27,8 @@ if(ANDROID) find_library(AAUDIO_LIBRARY NAMES aaudio REQUIRED) target_link_libraries(wivrn ${ANDROID_LIBRARY} ${MEDIA_LIBRARY} ${AAUDIO_LIBRARY}) - set(DYNAMIC_LOADER OFF) + # The OpenXR loader must be dynamically loaded or the Oculus store will refuse it with "Oculus SDK not found or older than 1.0" + set(DYNAMIC_LOADER ON) FetchContent_MakeAvailable(openxr_loader) target_link_libraries(wivrn openxr_loader)